Better memory cleanup in tests

This commit is contained in:
Andrey Breslav
2014-04-28 13:56:35 +04:00
parent 68c77e6384
commit 4f1061c337
2 changed files with 17 additions and 10 deletions
@@ -38,12 +38,8 @@ public abstract class CompletionHandlerTestBase() : JetLightCodeInsightFixtureTe
protected abstract val completionType : CompletionType
protected abstract val testDataRelativePath: String
protected var fixture: JavaCodeInsightTestFixture by Delegates.notNull<JavaCodeInsightTestFixture>()
protected override fun setUp() {
super.setUp()
fixture = myFixture
}
protected val fixture: JavaCodeInsightTestFixture
get() = myFixture
protected fun doTest() : Unit = doTest(2, null, null, null, '\n')