@Test @SuppressWarnings("unchecked") public void testNoParentDefinition() { when(connectionContext.getSource()).thenReturn(Optional.of(nodeA)); when(connectionContext.getTarget()).thenReturn(Optional.of(nodeC)); when(ruleExtension.getTypeArguments()).thenReturn(new Class[]{}); final RuleViolations violations = tested.evaluate(ruleExtension, connectionContext); assertNotNull(violations); assertViolations(violations, true); }
@Override public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { return evaluateConnection(rule, context); }
ConnectorParentsMatchConnectionHandler extends AbstractParentsMatchHandler<ConnectorParentsMatchConnectionHandler, GraphConnectionContext> { @Override public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { return evaluateConnection(rule, context); } }
ConnectorParentsMatchConnectionHandler extends AbstractParentsMatchHandler<ConnectorParentsMatchConnectionHandler, GraphConnectionContext> { @Override public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { return evaluateConnection(rule, context); } protected  ConnectorParentsMatchConnectionHandler(); @Inject  ConnectorParentsMatchConnectionHandler(final DefinitionManager definitionManager); }
ConnectorParentsMatchConnectionHandler extends AbstractParentsMatchHandler<ConnectorParentsMatchConnectionHandler, GraphConnectionContext> { @Override public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { return evaluateConnection(rule, context); } protected  ConnectorParentsMatchConnectionHandler(); @Inject  ConnectorParentsMatchConnectionHandler(final DefinitionManager definitionManager); @Override Class<ConnectorParentsMatchConnectionHandler> getExtensionType(); @Override Class<GraphConnectionContext> getContextType(); @Override boolean accepts(final RuleExtension rule,
                           final GraphConnectionContext context); @Override RuleViolations evaluate(final RuleExtension rule,
                                   final GraphConnectionContext context); }
ConnectorParentsMatchConnectionHandler extends AbstractParentsMatchHandler<ConnectorParentsMatchConnectionHandler, GraphConnectionContext> { @Override public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { return evaluateConnection(rule, context); } protected  ConnectorParentsMatchConnectionHandler(); @Inject  ConnectorParentsMatchConnectionHandler(final DefinitionManager definitionManager); @Override Class<ConnectorParentsMatchConnectionHandler> getExtensionType(); @Override Class<GraphConnectionContext> getContextType(); @Override boolean accepts(final RuleExtension rule,
                           final GraphConnectionContext context); @Override RuleViolations evaluate(final RuleExtension rule,
                                   final GraphConnectionContext context);  }