test_class.file: dependencies/api/src/test/java/org/jboss/forge/addon/dependencies/collection/DependencyNodeUtilTest.java
test_class.identifier: DependencyNodeUtilTest
test_case.body: @Test
     public void testPreorderIterator()
     {
        DependencyNodeBuilder root = DependencyNodeBuilder.create(null, DependencyBuilder
                 .create("org.jboss.forge.addon:example1:2.0.0-SNAPSHOT"));
        DependencyNodeBuilder childOne = DependencyNodeBuilder.create(root,
                 DependencyBuilder.create("org.jboss.forge.addon:example1-child-one:2.0.0-SNAPSHOT"));
        DependencyNodeBuilder childTwo = DependencyNodeBuilder.create(root,
                 DependencyBuilder.create("org.jboss.forge.addon:example1-child-two:2.0.0-SNAPSHOT"));
  
        DependencyNodeBuilder childOneGrandChildOne = DependencyNodeBuilder.create(childOne,
                 DependencyBuilder.create("org.jboss.forge.addon:example1-child-one-grandchild-one:2.0.0-SNAPSHOT"));
  
        DependencyNodeBuilder childOneGrandChildTwo = DependencyNodeBuilder.create(childOne,
                 DependencyBuilder.create("org.jboss.forge.addon:example1-child-one-grandchild-two:2.0.0-SNAPSHOT"));
        childOne.getChildren().add(childOneGrandChildOne);
        childOne.getChildren().add(childOneGrandChildTwo);
  
        root.getChildren().add(childOne);
        root.getChildren().add(childTwo);
  
        // Execute SUT
        Iterator<DependencyNode> iterator = DependencyNodeUtil.preorderIterator(root);
  
        // Check SUT outcome
        Assert.assertTrue("Iterator is empty", iterator.hasNext());
        Assert.assertEquals(root, iterator.next());
  
        Assert.assertTrue("Iterator is empty", iterator.hasNext());
        Assert.assertEquals(childOne, iterator.next());
  
        Assert.assertTrue("Iterator is empty", iterator.hasNext());
        Assert.assertEquals(childOneGrandChildOne, iterator.next());
  
        Assert.assertTrue("Iterator is empty", iterator.hasNext());
        Assert.assertEquals(childOneGrandChildTwo, iterator.next());
  
        Assert.assertTrue("Iterator is empty", iterator.hasNext());
        Assert.assertEquals(childTwo, iterator.next());
  
        Assert.assertFalse("Iterator is not empty", iterator.hasNext());
     }
test_case.class_method_signature: DependencyNodeUtilTest.testPreorderIterator()
test_case.full_signature: @Test public void testPreorderIterator()
test_case.identifier: testPreorderIterator
test_case.invocations: create create create create create create create create create create add getChildren add getChildren add getChildren add getChildren preorderIterator assertTrue hasNext assertEquals next assertTrue hasNext assertEquals next assertTrue hasNext assertEquals next assertTrue hasNext assertEquals next assertTrue hasNext assertEquals next assertFalse hasNext
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPreorderIterator()
focal_class.declarator: FORGE_ADDON_CLASSIFIER = "forge-addon"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORGE_ADDON_CLASSIFIER = "forge-addon";
focal_class.type: String
focal_class.var_name: FORGE_ADDON_CLASSIFIER
focal_class.file: dependencies/api/src/main/java/org/jboss/forge/addon/dependencies/collection/DependencyNodeUtil.java
focal_class.identifier: DependencyNodeUtil
focal_class.class_method_signature: DependencyNodeUtil.DependencyNodeUtil()
focal_class.full_signature: private  DependencyNodeUtil()
focal_class.identifier: DependencyNodeUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  DependencyNodeUtil()
focal_class.class_method_signature: DependencyNodeUtil.selectFirst(Iterator<T> nodeIterator, Predicate<T> filter)
focal_class.full_signature: public static T selectFirst(Iterator<T> nodeIterator, Predicate<T> filter)
focal_class.identifier: selectFirst
focal_class.modifiers: public static
focal_class.parameters: (Iterator<T> nodeIterator, Predicate<T> filter)
focal_class.return: T
focal_class.signature: T selectFirst(Iterator<T> nodeIterator, Predicate<T> filter)
focal_class.class_method_signature: DependencyNodeUtil.select(Iterator<T> iterator, Predicate<T> filter)
focal_class.full_signature: public static List<T> select(Iterator<T> iterator, Predicate<T> filter)
focal_class.identifier: select
focal_class.modifiers: public static
focal_class.parameters: (Iterator<T> iterator, Predicate<T> filter)
focal_class.return: List<T>
focal_class.signature: List<T> select(Iterator<T> iterator, Predicate<T> filter)
focal_class.class_method_signature: DependencyNodeUtil.select(DependencyNode node, Predicate<DependencyNode> filter)
focal_class.full_signature: public static List<DependencyNode> select(DependencyNode node, Predicate<DependencyNode> filter)
focal_class.identifier: select
focal_class.modifiers: public static
focal_class.parameters: (DependencyNode node, Predicate<DependencyNode> filter)
focal_class.return: List<DependencyNode>
focal_class.signature: List<DependencyNode> select(DependencyNode node, Predicate<DependencyNode> filter)
focal_class.class_method_signature: DependencyNodeUtil.selectInternal(DependencyNode root, Predicate<DependencyNode> filter,
              List<DependencyNode> collector)
focal_class.full_signature: private static void selectInternal(DependencyNode root, Predicate<DependencyNode> filter,
              List<DependencyNode> collector)
focal_class.identifier: selectInternal
focal_class.modifiers: private static
focal_class.parameters: (DependencyNode root, Predicate<DependencyNode> filter,
              List<DependencyNode> collector)
focal_class.return: void
focal_class.signature: void selectInternal(DependencyNode root, Predicate<DependencyNode> filter,
              List<DependencyNode> collector)
focal_class.class_method_signature: DependencyNodeUtil.prettyPrint(DependencyNode root)
focal_class.full_signature: public static CharSequence prettyPrint(DependencyNode root)
focal_class.identifier: prettyPrint
focal_class.modifiers: public static
focal_class.parameters: (DependencyNode root)
focal_class.return: CharSequence
focal_class.signature: CharSequence prettyPrint(DependencyNode root)
focal_class.class_method_signature: DependencyNodeUtil.prettyPrint(DependencyNode root, Predicate<DependencyNode> filter)
focal_class.full_signature: public static String prettyPrint(DependencyNode root, Predicate<DependencyNode> filter)
focal_class.identifier: prettyPrint
focal_class.modifiers: public static
focal_class.parameters: (DependencyNode root, Predicate<DependencyNode> filter)
focal_class.return: String
focal_class.signature: String prettyPrint(DependencyNode root, Predicate<DependencyNode> filter)
focal_class.class_method_signature: DependencyNodeUtil.prettyPrint(DependencyNode node, Predicate<DependencyNode> filter, StringBuilder builder,
              int depth)
focal_class.full_signature: private static void prettyPrint(DependencyNode node, Predicate<DependencyNode> filter, StringBuilder builder,
              int depth)
focal_class.identifier: prettyPrint
focal_class.modifiers: private static
focal_class.parameters: (DependencyNode node, Predicate<DependencyNode> filter, StringBuilder builder,
              int depth)
focal_class.return: void
focal_class.signature: void prettyPrint(DependencyNode node, Predicate<DependencyNode> filter, StringBuilder builder,
              int depth)
focal_class.class_method_signature: DependencyNodeUtil.depthFirstIterator(DependencyNode dependencyNode)
focal_class.full_signature: public static Iterator<DependencyNode> depthFirstIterator(DependencyNode dependencyNode)
focal_class.identifier: depthFirstIterator
focal_class.modifiers: public static
focal_class.parameters: (DependencyNode dependencyNode)
focal_class.return: Iterator<DependencyNode>
focal_class.signature: Iterator<DependencyNode> depthFirstIterator(DependencyNode dependencyNode)
focal_class.class_method_signature: DependencyNodeUtil.breadthFirstIterator(DependencyNode dependencyNode)
focal_class.full_signature: public static Iterator<DependencyNode> breadthFirstIterator(DependencyNode dependencyNode)
focal_class.identifier: breadthFirstIterator
focal_class.modifiers: public static
focal_class.parameters: (DependencyNode dependencyNode)
focal_class.return: Iterator<DependencyNode>
focal_class.signature: Iterator<DependencyNode> breadthFirstIterator(DependencyNode dependencyNode)
focal_class.class_method_signature: DependencyNodeUtil.preorderIterator(DependencyNode dependencyNode)
focal_class.full_signature: public static Iterator<DependencyNode> preorderIterator(DependencyNode dependencyNode)
focal_class.identifier: preorderIterator
focal_class.modifiers: public static
focal_class.parameters: (DependencyNode dependencyNode)
focal_class.return: Iterator<DependencyNode>
focal_class.signature: Iterator<DependencyNode> preorderIterator(DependencyNode dependencyNode)
focal_class.class_method_signature: DependencyNodeUtil.isForgeAddon(Coordinate coordinate)
focal_class.full_signature: public static boolean isForgeAddon(Coordinate coordinate)
focal_class.identifier: isForgeAddon
focal_class.modifiers: public static
focal_class.parameters: (Coordinate coordinate)
focal_class.return: boolean
focal_class.signature: boolean isForgeAddon(Coordinate coordinate)
focal_method.body: public static Iterator<DependencyNode> preorderIterator(DependencyNode dependencyNode)
     {
        return new PreorderFirstIterator(dependencyNode);
     }
focal_method.class_method_signature: DependencyNodeUtil.preorderIterator(DependencyNode dependencyNode)
focal_method.full_signature: public static Iterator<DependencyNode> preorderIterator(DependencyNode dependencyNode)
focal_method.identifier: preorderIterator
focal_method.modifiers: public static
focal_method.parameters: (DependencyNode dependencyNode)
focal_method.return: Iterator<DependencyNode>
focal_method.signature: Iterator<DependencyNode> preorderIterator(DependencyNode dependencyNode)