Ejemplo n.º 1
0
 protected TestClassFilter getClassFilter(final JUnitConfiguration.Data data)
     throws CantRunException {
   Module module = myConfiguration.getConfigurationModule().getModule();
   if (myConfiguration.getPersistentData().getScope() == TestSearchScope.WHOLE_PROJECT) {
     module = null;
   }
   final TestClassFilter classFilter = TestClassFilter.create(getSourceScope(), module);
   return classFilter.intersectionWith(filterScope(data));
 }
Ejemplo n.º 2
0
 public MySearchForTestsTask(
     TestClassFilter classFilter,
     boolean[] junit4,
     THashSet<PsiClass> classes,
     FindCallback callback) {
   super(
       classFilter.getProject(), ExecutionBundle.message("seaching.test.progress.title"), true);
   myClassFilter = classFilter;
   myJunit4 = junit4;
   myClasses = classes;
   myCallback = callback;
 }