PredefinedTask { public static PredefinedTask createSimple(String displayName, String taskName) { Name name = new Name(taskName, false); return new PredefinedTask(displayName, Arrays.asList(name), Collections.<String>emptyList(), Collections.<String>emptyList(), false); } PredefinedTask(
            String displayName,
            List<Name> taskNames,
            List<String> arguments,
            List<String> jvmArguments,
            boolean nonBlocking); boolean isNonBlocking(); String getDisplayName(); List<Name> getTaskNames(); List<String> getArguments(); List<String> getJvmArguments(); static PredefinedTask createSimple(String displayName, String taskName); GradleCommandTemplate toCommandTemplate(String displayName); GradleCommandTemplate toCommandTemplate(); boolean isTasksExistsIfRequired(NbGradleProject project, Lookup actionContext); boolean isTasksExistsIfRequired(NbGradleProject project, StringResolver taskNameResolver); boolean isTasksExistsIfRequired(NbGradleMultiProjectDef project, StringResolver taskNameResolver); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testCreateSimple() { String displayName = "DISPLAY-NAME"; String taskName = "TASK-NAME"; PredefinedTask task = PredefinedTask.createSimple(displayName, taskName); assertEquals(displayName, task.getDisplayName()); assertEqualNames(createTaskNames(false, taskName), task.getTaskNames()); assertEquals(Collections.emptyList(), task.getArguments()); assertEquals(Collections.emptyList(), task.getJvmArguments()); assertFalse(task.isNonBlocking()); }