mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
fix test under windows
GitOrigin-RevId: db6e3a9ddff542e90f31504f2d6a4ed1d85e6815
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0d2b3a17e0
commit
136a460f36
@@ -7,6 +7,7 @@ import com.intellij.openapi.projectRoots.Sdk
|
||||
import com.intellij.openapi.roots.*
|
||||
import com.intellij.openapi.roots.libraries.Library
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.openapi.vfs.impl.jar.JarFileSystemImpl
|
||||
import com.intellij.roots.ModuleRootManagerTestCase.assertRoots
|
||||
import com.intellij.testFramework.ApplicationRule
|
||||
import com.intellij.testFramework.PsiTestUtil
|
||||
@@ -14,10 +15,7 @@ import com.intellij.testFramework.UsefulTestCase.*
|
||||
import com.intellij.testFramework.rules.ProjectModelRule
|
||||
import com.intellij.util.ArrayUtilRt
|
||||
import org.jetbrains.jps.model.java.JavaSourceRootType
|
||||
import org.junit.Before
|
||||
import org.junit.ClassRule
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.*
|
||||
|
||||
class OrderEnumeratorTest {
|
||||
companion object {
|
||||
@@ -53,6 +51,11 @@ class OrderEnumeratorTest {
|
||||
ModuleRootModificationUtil.setModuleSdk(module, sdk)
|
||||
}
|
||||
|
||||
@After
|
||||
fun tearDown() {
|
||||
JarFileSystemImpl.cleanupForNextTest() // WTF, won't let delete jar otherwise
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testLibrary() {
|
||||
ModuleRootModificationUtil.addDependency(module, library)
|
||||
|
||||
Reference in New Issue
Block a user