コード例 #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));
 }
コード例 #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;
 }