@Test public void testBasicSingleLevelSplit() { List<GradleTaskID> taskIDs = toTaskIDs( "", "compileGroovy", "compileJava", "compileTestJava", "compileTestGroovy", "build", "buildSubA", "buildSubB"); List<GradleTaskTree> nodes = GradleTaskTree.createTaskTree(7, taskIDs); assertEquals("Node count", 3, nodes.size()); assertLeaf(nodes.get(0), ""); assertTasks(nodes.get(1), "compile", "compileGroovy", "compileJava", "compileTestJava", "compileTestGroovy"); assertTasks(nodes.get(2), "build", "build", "buildSubA", "buildSubB"); }
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);  }