Minor. Removed unused test method.

This commit is contained in:
Evgeny Gerashchenko
2013-11-28 19:54:19 +04:00
parent d198c202e3
commit 00f0ad2eda
3 changed files with 244 additions and 252 deletions
@@ -41,14 +41,6 @@ import static org.jetbrains.jet.test.util.RecursiveDescriptorComparator.validate
public abstract class AbstractLoadCompiledKotlinTest extends TestCaseWithTmpdir {
public void doTest(@NotNull String ktFileName) throws Exception {
doTest(ktFileName, false);
}
public void doTestWithAccessors(@NotNull String ktFileName) throws Exception {
doTest(ktFileName, true);
}
private void doTest(@NotNull String ktFileName, boolean includeAccessors) throws Exception {
File ktFile = new File(ktFileName);
File txtFile = new File(ktFileName.replaceFirst("\\.kt$", ".txt"));
AnalyzeExhaust exhaust = compileKotlinToDirAndGetAnalyzeExhaust(ktFile, tmpdir, getTestRootDisposable(),
@@ -72,7 +64,7 @@ public abstract class AbstractLoadCompiledKotlinTest extends TestCaseWithTmpdir
validateAndCompareDescriptors(packageFromSource, packageFromBinary,
RecursiveDescriptorComparator.DONT_INCLUDE_METHODS_OF_OBJECT
.checkPrimaryConstructors(true)
.checkPropertyAccessors(includeAccessors),
.checkPropertyAccessors(true),
txtFile);
}
File diff suppressed because it is too large Load Diff
@@ -193,7 +193,7 @@ public class GenerateTests {
"compiler/tests/",
"LoadCompiledKotlinTestGenerated",
AbstractLoadCompiledKotlinTest.class,
testModel("compiler/testData/loadKotlin", "doTestWithAccessors")
testModel("compiler/testData/loadKotlin", "doTest")
);
generateTest(