fix jvm class names
authorAnna Kozlova <anna.kozlova@jetbrains.com>
Thu, 26 Jan 2012 14:42:09 +0000 (18:42 +0400)
committerAnna Kozlova <anna.kozlova@jetbrains.com>
Thu, 26 Jan 2012 15:25:47 +0000 (19:25 +0400)
java/execution/openapi/src/com/intellij/execution/JavaExecutionUtil.java
plugins/junit/src/com/intellij/execution/junit/JUnitConfiguration.java
plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGConfiguration.java

index 5097256ac559ee984b722000bb0d8f5eec76aaa4..987a6c8a62b5a9c1c252f6671e64fa1f7f7d3474 100644 (file)
@@ -110,8 +110,7 @@ public class JavaExecutionUtil {
     if (containingClass != null) {
       final String parentName = getRuntimeQualifiedName(containingClass);
       return parentName + "$" + aClass.getName();
-    }
-    else {
+    } else {
       return aClass.getQualifiedName();
     }
   }
index 082bc604d7d7d51226ff32a03e19a47d67bbf946..469d4b64ed03b62012cc72c1c9a5f70cd10930ab 100644 (file)
@@ -365,7 +365,7 @@ public class JUnitConfiguration extends ModuleBasedConfiguration<JavaRunConfigur
   public void bePatternConfiguration(List<PsiClass> classes, PsiMethod method) {
     Set<String> patterns = new HashSet<String>();
     for (PsiClass pattern : classes) {
-      patterns.add(pattern.getQualifiedName());
+      patterns.add(JavaExecutionUtil.getRuntimeQualifiedName(pattern));
     }
     myData.setPatterns(patterns);
     myData.METHOD_NAME = method.getName();
index 4564aa0b66a3ad9ea177dd3ce5f30fcafbb4ddc0..9021ecea90b2f8fce9be0769a628713428e94716 100644 (file)
@@ -261,7 +261,7 @@ public class TestNGConfiguration extends ModuleBasedConfiguration<JavaRunConfigu
   public void bePatternConfiguration(List<PsiClass> classes, PsiMethod method) {
     Set<String> patterns = new HashSet<String>();
     for (PsiClass pattern : classes) {
-      patterns.add(pattern.getQualifiedName());
+      patterns.add(JavaExecutionUtil.getRuntimeQualifiedName(pattern));
     }
     data.setPatterns(patterns);
     data.METHOD_NAME = method.getName();