mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: Make sure the project is disposed after the test (IDEA-169200)
This commit is contained in:
+1
-3
@@ -17,10 +17,8 @@ package com.intellij.java.codeInspection
|
||||
|
||||
import com.intellij.codeInspection.java19modules.Java9ModuleEntryPoint
|
||||
import com.intellij.codeInspection.visibility.VisibilityInspection
|
||||
import com.intellij.openapi.Disposable
|
||||
import com.intellij.openapi.application.ex.PathManagerEx
|
||||
import com.intellij.testFramework.LightProjectDescriptor
|
||||
import com.intellij.testFramework.enableInspectionTool
|
||||
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
|
||||
|
||||
class Java9AccessCanBeTightenedTest : LightCodeInsightFixtureTestCase() {
|
||||
@@ -35,7 +33,7 @@ class Java9AccessCanBeTightenedTest : LightCodeInsightFixtureTestCase() {
|
||||
super.setUp()
|
||||
inspection = createGlobalTool()
|
||||
|
||||
enableInspectionTool(project, inspection.sharedLocalInspectionTool!!, Disposable { })
|
||||
myFixture.enableInspections(inspection.sharedLocalInspectionTool!!)
|
||||
}
|
||||
|
||||
fun testPublicClass() = doTestClass()
|
||||
|
||||
Reference in New Issue
Block a user