Rename: Implement automatic renamer for test classes

#KT-8512 Fixed
This commit is contained in:
Alexey Sedunov
2016-05-27 20:30:43 +03:00
parent 42b71ae90c
commit 188531017a
13 changed files with 157 additions and 10 deletions
@@ -0,0 +1,10 @@
package test;
import org.junit.Test;
public class JBazBarNewFooTest {
@Test
void testFoo() {
}
}
@@ -0,0 +1,7 @@
package test;
import junit.framework.TestCase;
public class JFooBarNewBazTestCase extends TestCase {
}
@@ -0,0 +1,16 @@
package test
import junit.framework.TestCase
import org.junit.Test
class BarNew {
}
class FooBarNewBazTestCase : TestCase() {
}
class BazBarNewFooTest {
@Test fun testFoo() {}
}
@@ -0,0 +1,7 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/test.kt",
"newName": "BarNew",
"withRuntime": "true",
"libraries": ["JUnit@lib/junit-4.12.jar"]
}
@@ -0,0 +1,10 @@
package test;
import org.junit.Test;
public class JBazBarFooTest {
@Test
void testFoo() {
}
}
@@ -0,0 +1,7 @@
package test;
import junit.framework.TestCase;
public class JFooBarBazTestCase extends TestCase {
}
@@ -0,0 +1,16 @@
package test
import junit.framework.TestCase
import org.junit.Test
class /*rename*/Bar {
}
class FooBarBazTestCase : TestCase() {
}
class BazBarFooTest {
@Test fun testFoo() {}
}