assertion
authorAnna Kozlova <anna.kozlova@jetbrains.com>
Thu, 12 May 2011 09:29:16 +0000 (13:29 +0400)
committerAnna Kozlova <anna.kozlova@jetbrains.com>
Thu, 12 May 2011 09:29:16 +0000 (13:29 +0400)
plugins/junit/src/com/intellij/execution/junit/TestDirectory.java

index 9292631300f588b1ebb749cb31e9af7fc8f83bb9..9f616cf59249f58d0394ae5ef400389c9cbc0c3f 100644 (file)
@@ -17,10 +17,7 @@ package com.intellij.execution.junit;
 
 import com.intellij.execution.CantRunException;
 import com.intellij.execution.ExecutionBundle;
-import com.intellij.execution.configurations.ConfigurationPerRunnerSettings;
-import com.intellij.execution.configurations.RunnerSettings;
-import com.intellij.execution.configurations.RuntimeConfigurationException;
-import com.intellij.execution.configurations.RuntimeConfigurationWarning;
+import com.intellij.execution.configurations.*;
 import com.intellij.execution.testframework.SourceScope;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.module.ModuleUtil;
@@ -93,7 +90,7 @@ class TestDirectory extends TestPackage {
     }
     final String dirName = myConfiguration.getPersistentData().getDirName();
     if (dirName == null || dirName.isEmpty()) {
-      throw new RuntimeConfigurationWarning("Directory is not specified");
+      throw new RuntimeConfigurationError("Directory is not specified");
     }
     final VirtualFile file = LocalFileSystem.getInstance().findFileByPath(FileUtil.toSystemIndependentName(dirName));
     if (file == null) {
@@ -101,7 +98,7 @@ class TestDirectory extends TestPackage {
     }
     final Module module = myConfiguration.getConfigurationModule().getModule();
     if (module == null) {
-      throw new RuntimeConfigurationWarning("Module to choose classpath from is not specified");
+      throw new RuntimeConfigurationError("Module to choose classpath from is not specified");
     }
   }