@Test @SuppressWarnings("unchecked") public void testMatchParentTypeAsParentNodeBean() { ParentTypesMatcher tested = new ParentTypesMatcher(() -> graphTestHandler.getDefinitionManager(), GraphUtils::getParent, new Class[]{TestingGraphInstances.ParentNodeBean.class}); assertTrue(tested.matcher().test(graph.startNode, graph.intermNode)); assertTrue(tested.matcher().test(graph.intermNode, graph.endNode)); assertTrue(tested.matcher().test(graph.startNode, graph.endNode)); assertTrue(tested.matcher().test(graph.endNode, graph.nodeA)); assertTrue(tested.matcher().test(graph.intermNode, graph.nodeA)); assertTrue(tested.matcher().test(graph.startNode, graph.nodeA)); }
public BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher() { return this::match; }
ParentTypesMatcher { public BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher() { return this::match; } }
ParentTypesMatcher { public BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher() { return this::match; } ParentTypesMatcher(final Supplier<DefinitionManager> definitionManagerSupplier,
                              final Function<Node, Element> parentSupplier,
                              final Class<?>[] types); }
ParentTypesMatcher { public BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher() { return this::match; } ParentTypesMatcher(final Supplier<DefinitionManager> definitionManagerSupplier,
                              final Function<Node, Element> parentSupplier,
                              final Class<?>[] types); BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher(); }
ParentTypesMatcher { public BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher() { return this::match; } ParentTypesMatcher(final Supplier<DefinitionManager> definitionManagerSupplier,
                              final Function<Node, Element> parentSupplier,
                              final Class<?>[] types); BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> matcher();  }