Set up tests for postfix templates properly

If there are some other completion-like tests before these ones
it may lead to the situation when some value is already written by
`previouslySuggestedExpressions`, so it should be cleared in setUp
This commit is contained in:
Denis Zharkov
2016-10-04 10:40:32 +03:00
parent df680305ba
commit aca05003a9
@@ -28,6 +28,12 @@ abstract class AbstractPostfixTemplateProviderTest : KotlinLightCodeInsightFixtu
override fun getProjectDescriptor() = KotlinWithJdkAndRuntimeLightProjectDescriptor.INSTANCE
override fun getTestDataPath() = KotlinTestUtils.getHomeDirectory()
override fun setUp() {
super.setUp()
KtPostfixTemplateProvider.previouslySuggestedExpressions = emptyList()
}
protected fun doTest(fileName: String) {
myFixture.configureByFile(fileName)