testng: allow test class browsing for in_whole_project scope (IDEA-140532)

This commit is contained in:
Anna Kozlova
2015-05-21 14:11:29 +02:00
parent 0f9d0086a8
commit cba1170546
@@ -78,7 +78,7 @@ public class TestClassBrowser extends BrowseModuleValueActionListener
editor.applyEditorTo(config);
GlobalSearchScope scope = getSearchScope(config.getModules());
if (scope == null) {
throw new MessageInfoException(new MessagesEx.MessageInfo(getProject(), "No classes found in project", "Can't Browse Tests"));
scope = GlobalSearchScope.allScope(getProject());
}
return new TestClassFilter(scope, getProject(), false);
}