Cleanup (wrong annotation)

This commit is contained in:
Roman Shevchenko
2017-02-17 18:11:32 +01:00
parent 2a11a71de6
commit e8e0c39a44
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@ import com.intellij.psi.search.GlobalSearchScope
import com.intellij.refactoring.rename.RenameProcessor
import com.intellij.testFramework.fixtures.LightJava9ModulesCodeInsightFixtureTestCase
import com.intellij.testFramework.fixtures.MultiModuleJava9ProjectDescriptor.ModuleDescriptor.M2
import org.junit.Test
class ModuleRenameTest : LightJava9ModulesCodeInsightFixtureTestCase() {
override fun setUp() {
@@ -28,7 +27,7 @@ class ModuleRenameTest : LightJava9ModulesCodeInsightFixtureTestCase() {
addFile("module-info.java", "module M2 { }", M2)
}
@Test fun testRename() {
fun testRename() {
myFixture.configureByText("module-info.java", "module M { requires M2; }")
val module = JavaFileManager.SERVICE.getInstance(project).findModules("M2", GlobalSearchScope.allScope(project)).first()
RenameProcessor(project, module, "M2.bis", false, false).run()