void () { assertModules("project", "project.main", "project.test"); assertContentRoots("project", getProjectPath()); assertNoExcludePatterns("project", "build.gradle"); if (isGradleNewerOrSameAs("4.0")) { assertModuleOutputs("project.main", getProjectPath() + "/build/classes/java/main", getProjectPath() + "/build/resources/main"); assertModuleOutput("project.main", getProjectPath() + "/build/classes/java/main", ""); assertModuleOutputs("project.test", getProjectPath() + "/build/classes/java/test", getProjectPath() + "/build/resources/test"); assertModuleOutput("project.test", "", getProjectPath() + "/build/classes/java/test"); } else { assertModuleOutputs("project.main", getProjectPath() + "/build/classes/main", getProjectPath() + "/build/resources/main"); assertModuleOutput("project.main", getProjectPath() + "/build/classes/main", ""); assertModuleOutputs("project.test", getProjectPath() + "/build/classes/test", getProjectPath() + "/build/resources/test"); assertModuleOutput("project.test", "", getProjectPath() + "/build/classes/test"); } }