@Test public void testUnderscoreSeparated() { List<GradleTaskID> taskIDs = toTaskIDs( "TASK_A", "TASK_B", "TASK_C", "TASK_D", "TASK_E", "OTHER_A", "OTHER_B", "OTHER_C"); List<GradleTaskTree> nodes = GradleTaskTree.createTaskTree(5, taskIDs); assertEquals("Node count", 2, nodes.size()); assertTasks(nodes.get(0), "TASK", "TASK_A", "TASK_B", "TASK_C", "TASK_D", "TASK_E"); assertTasks(nodes.get(1), "OTHER", "OTHER_A", "OTHER_B", "OTHER_C"); }
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);  }