[workspace model] Ignore not applicable tests

GitOrigin-RevId: b4c19a053a228604671c917e90ebfae14f4766cd
This commit is contained in:
Mikhail Mazurkevich
2020-03-26 19:31:23 +00:00
committed by intellij-monorepo-bot
parent 68bc6b5659
commit 1fd50efc61
@@ -24,6 +24,7 @@ import com.intellij.openapi.projectRoots.SdkModificator;
import com.intellij.openapi.roots.OrderRootType;
import com.intellij.openapi.roots.libraries.Library;
import com.intellij.openapi.roots.libraries.LibraryTablesRegistrar;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.intellij.project.IntelliJProjectConfiguration;
@@ -142,11 +143,7 @@ public abstract class ModuleRootManagerTestCase extends JavaModuleTestCase {
return IntelliJProjectConfiguration.getJarFromSingleJarProjectLibrary("ASM");
}
protected boolean underWorkspaceModel() {
return ModuleManager.getInstance(myProject).getClass().getName() == "com.intellij.workspace.legacyBridge.intellij.LegacyBridgeModuleManagerComponent";
}
protected void ignoreTestUnderWorkspaceModel() {
Assume.assumeFalse("Not applicable to workspace model", underWorkspaceModel());
protected static void ignoreTestUnderWorkspaceModel() {
Assume.assumeFalse("Not applicable to workspace model", Registry.is("ide.new.project.model"));
}
}