Search in sources :

Example 1 with DependencyFilter

use of de.strullerbaumann.visualee.dependency.boundary.DependencyFilter in project visualee by Thomas-S-B.

the class GraphCreatorTest method testBuildJSONLinks.

@Test
public void testBuildJSONLinks() {
    TestDataProvider.createSampleDependencies();
    JsonArray links = GraphCreator.buildJSONLinks(null).build();
    assertEquals(12, links.size());
    DependencyFilter filter = new DependencyFilter().addType(DependencyType.PRODUCES).addType(DependencyType.INSTANCE).setDirectlyConnected(true);
    links = GraphCreator.buildJSONLinks(filter).build();
    assertEquals(8, links.size());
}
Also used : JsonArray(javax.json.JsonArray) DependencyFilter(de.strullerbaumann.visualee.dependency.boundary.DependencyFilter) Test(org.junit.Test)

Aggregations

DependencyFilter (de.strullerbaumann.visualee.dependency.boundary.DependencyFilter)1 JsonArray (javax.json.JsonArray)1 Test (org.junit.Test)1