From 2b2d4c0f553bfd5079af092a55f2137ed87a6472 Mon Sep 17 00:00:00 2001 From: Pavel Dolgov Date: Tue, 4 Jul 2017 16:29:42 +0300 Subject: [PATCH] Java: Make sure the project is disposed after the test (IDEA-169200) --- .../java/codeInspection/Java9AccessCanBeTightenedTest.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/java/codeInspection/Java9AccessCanBeTightenedTest.kt b/java/java-tests/testSrc/com/intellij/java/codeInspection/Java9AccessCanBeTightenedTest.kt index 910df812f30b..1bb281a2464d 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInspection/Java9AccessCanBeTightenedTest.kt +++ b/java/java-tests/testSrc/com/intellij/java/codeInspection/Java9AccessCanBeTightenedTest.kt @@ -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()