@Test(timeout = 10000) public void testNoInfiniteLoop1() { List<GradleTaskID> taskIDs = toTaskIDs("A"); List<GradleTaskTree> nodes = GradleTaskTree.createTaskTree(0, taskIDs); assertEquals("Node count", 1, nodes.size()); assertLeaf(nodes.get(0), "A"); }
public static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks) { return createTaskTree(DEFAULT_TASK_LIMIT, tasks); }
GradleTaskTree { public static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks) { return createTaskTree(DEFAULT_TASK_LIMIT, tasks); } }
GradleTaskTree { public static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks) { return createTaskTree(DEFAULT_TASK_LIMIT, tasks); } GradleTaskTree(GradleTaskID taskID);  GradleTaskTree(String caption, List<GradleTaskTree> children); private  GradleTaskTree(
            String caption,
            GradleTaskID taskID,
            List<GradleTaskTree> children); }
GradleTaskTree { public static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks) { return createTaskTree(DEFAULT_TASK_LIMIT, tasks); } GradleTaskTree(GradleTaskID taskID);  GradleTaskTree(String caption, List<GradleTaskTree> children); private  GradleTaskTree(
            String caption,
            GradleTaskID taskID,
            List<GradleTaskTree> children); String getCaption(); @Nullable GradleTaskID getTaskID(); List<GradleTaskTree> getChildren(); static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks); static List<GradleTaskTree> createTaskTree(
            int taskLimit,
            Collection<GradleTaskID> taskIDs); }
GradleTaskTree { public static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks) { return createTaskTree(DEFAULT_TASK_LIMIT, tasks); } GradleTaskTree(GradleTaskID taskID);  GradleTaskTree(String caption, List<GradleTaskTree> children); private  GradleTaskTree(
            String caption,
            GradleTaskID taskID,
            List<GradleTaskTree> children); String getCaption(); @Nullable GradleTaskID getTaskID(); List<GradleTaskTree> getChildren(); static List<GradleTaskTree> createTaskTree(Collection<GradleTaskID> tasks); static List<GradleTaskTree> createTaskTree(
            int taskLimit,
            Collection<GradleTaskID> taskIDs);  }