@Test @SuppressWarnings("unchecked") public void testValidateEmptyViewConnectorNodes() { final RuleSet ruleSet = graphTestHandler.ruleSet; final Graph<DefinitionSet, Node> graph = graphTestHandler.graph; final TestingGraphInstanceBuilder.TestGraph1 testGraph1 = TestingGraphInstanceBuilder.newGraph1(graphTestHandler); graphTestHandler.removeTargetConnection(testGraph1.edge2); tested.validate(graph, ruleSet, ruleViolations -> { assertEquals(1, ruleViolations.size()); final RuleViolation violation = ruleViolations.iterator().next(); assertNotNull(violation); assertTrue(violation instanceof EmptyConnectionViolation); EmptyConnectionViolation v = (EmptyConnectionViolation) violation; final Optional<Object[]> arguments = v.getArguments(); assertTrue(arguments.isPresent()); assertEquals(testGraph1.edge2.getUUID(), arguments.get()[0]); assertEquals(testGraph1.intermNode.getUUID(), arguments.get()[1]); assertNull(arguments.get()[2]); }); }
@Override @SuppressWarnings("unchecked") public void validate(final Graph graph, final Consumer<Collection<RuleViolation>> callback) { validate(graph, null, callback); }
GraphValidatorImpl implements GraphValidator<Graph, RuleViolation> { @Override @SuppressWarnings("unchecked") public void validate(final Graph graph, final Consumer<Collection<RuleViolation>> callback) { validate(graph, null, callback); } }
GraphValidatorImpl implements GraphValidator<Graph, RuleViolation> { @Override @SuppressWarnings("unchecked") public void validate(final Graph graph, final Consumer<Collection<RuleViolation>> callback) { validate(graph, null, callback); } protected  GraphValidatorImpl(); @Inject  GraphValidatorImpl(final DefinitionManager definitionManager,
                              final RuleManager ruleManager,
                              final TreeWalkTraverseProcessor treeWalkTraverseProcessor); }
GraphValidatorImpl implements GraphValidator<Graph, RuleViolation> { @Override @SuppressWarnings("unchecked") public void validate(final Graph graph, final Consumer<Collection<RuleViolation>> callback) { validate(graph, null, callback); } protected  GraphValidatorImpl(); @Inject  GraphValidatorImpl(final DefinitionManager definitionManager,
                              final RuleManager ruleManager,
                              final TreeWalkTraverseProcessor treeWalkTraverseProcessor); @Override @SuppressWarnings("unchecked") void validate(final Graph graph,
                         final Consumer<Collection<RuleViolation>> callback); @Override void validate(final Graph graph,
                         final RuleSet ruleSet,
                         final Consumer<Collection<RuleViolation>> callback); }
GraphValidatorImpl implements GraphValidator<Graph, RuleViolation> { @Override @SuppressWarnings("unchecked") public void validate(final Graph graph, final Consumer<Collection<RuleViolation>> callback) { validate(graph, null, callback); } protected  GraphValidatorImpl(); @Inject  GraphValidatorImpl(final DefinitionManager definitionManager,
                              final RuleManager ruleManager,
                              final TreeWalkTraverseProcessor treeWalkTraverseProcessor); @Override @SuppressWarnings("unchecked") void validate(final Graph graph,
                         final Consumer<Collection<RuleViolation>> callback); @Override void validate(final Graph graph,
                         final RuleSet ruleSet,
                         final Consumer<Collection<RuleViolation>> callback);  }