This commit is contained in:
Sergey Ignatov
2014-06-04 11:34:03 +04:00
parent 4ffddd7405
commit 0b6b37c1c9
2 changed files with 3 additions and 2 deletions
@@ -23,6 +23,7 @@ import com.intellij.openapi.util.text.StringUtil;
import com.intellij.testFramework.UsefulTestCase;
import com.intellij.util.containers.hash.HashMap;
import com.intellij.util.io.TestFileSystemBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jps.api.CanceledStatus;
import org.jetbrains.jps.builders.impl.BuildDataPathsImpl;
@@ -67,7 +68,7 @@ import static org.jetbrains.jps.builders.CompileScopeTestBuilder.make;
*/
public abstract class JpsBuildTestCase extends UsefulTestCase {
private File myProjectDir;
protected JpsProject myProject;
@NotNull protected JpsProject myProject;
protected JpsModel myModel;
private JpsSdk<JpsDummyElement> myJdk;
protected File myDataStorageRoot;
@@ -72,7 +72,7 @@ public class ModuleClasspathTest(): JpsBuildTestCase() {
}
private fun createChunk(moduleName: String): ModuleChunk {
val module = myProject!!.getModules().firstOrNull { it.getName() == moduleName }
val module = myProject.getModules().firstOrNull { it.getName() == moduleName }
return ModuleChunk(setOf(ModuleBuildTarget(module!!, JavaModuleBuildTargetType.PRODUCTION)))
}