diff --git a/src/test/kotlin/com/github/soheilabadifard/kotlincommentssentimentanalysis/MyPluginTest.kt b/src/test/kotlin/com/github/soheilabadifard/kotlincommentssentimentanalysis/MyPluginTest.kt deleted file mode 100644 index b151ac7..0000000 --- a/src/test/kotlin/com/github/soheilabadifard/kotlincommentssentimentanalysis/MyPluginTest.kt +++ /dev/null @@ -1,39 +0,0 @@ -package com.github.soheilabadifard.kotlincommentssentimentanalysis - -import com.intellij.ide.highlighter.XmlFileType -import com.intellij.openapi.components.service -import com.intellij.psi.xml.XmlFile -import com.intellij.testFramework.TestDataPath -import com.intellij.testFramework.fixtures.BasePlatformTestCase -import com.intellij.util.PsiErrorElementUtil -import com.github.soheilabadifard.kotlincommentssentimentanalysis.services.MyProjectService - -@TestDataPath("\$CONTENT_ROOT/src/test/testData") -class MyPluginTest : BasePlatformTestCase() { - - fun testXMLFile() { - val psiFile = myFixture.configureByText(XmlFileType.INSTANCE, "bar") - val xmlFile = assertInstanceOf(psiFile, XmlFile::class.java) - - assertFalse(PsiErrorElementUtil.hasErrors(project, xmlFile.virtualFile)) - - assertNotNull(xmlFile.rootTag) - - xmlFile.rootTag?.let { - assertEquals("foo", it.name) - assertEquals("bar", it.value.text) - } - } - - fun testRename() { - myFixture.testRename("foo.xml", "foo_after.xml", "a2") - } - - fun testProjectService() { - val projectService = project.service() - - assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber()) - } - - override fun getTestDataPath() = "src/test/testData/rename" -}