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 abstract class AbstractLoadCompiledKotlinTest extends TestCaseWithTmpdir {
public void doTest(@NotNull String ktFileName) throws Exception { 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 ktFile = new File(ktFileName);
File txtFile = new File(ktFileName.replaceFirst("\\.kt$", ".txt")); File txtFile = new File(ktFileName.replaceFirst("\\.kt$", ".txt"));
AnalyzeExhaust exhaust = compileKotlinToDirAndGetAnalyzeExhaust(ktFile, tmpdir, getTestRootDisposable(), AnalyzeExhaust exhaust = compileKotlinToDirAndGetAnalyzeExhaust(ktFile, tmpdir, getTestRootDisposable(),
@@ -72,7 +64,7 @@ public abstract class AbstractLoadCompiledKotlinTest extends TestCaseWithTmpdir
validateAndCompareDescriptors(packageFromSource, packageFromBinary, validateAndCompareDescriptors(packageFromSource, packageFromBinary,
RecursiveDescriptorComparator.DONT_INCLUDE_METHODS_OF_OBJECT RecursiveDescriptorComparator.DONT_INCLUDE_METHODS_OF_OBJECT
.checkPrimaryConstructors(true) .checkPrimaryConstructors(true)
.checkPropertyAccessors(includeAccessors), .checkPropertyAccessors(true),
txtFile); txtFile);
} }
File diff suppressed because it is too large Load Diff
@@ -193,7 +193,7 @@ public class GenerateTests {
"compiler/tests/", "compiler/tests/",
"LoadCompiledKotlinTestGenerated", "LoadCompiledKotlinTestGenerated",
AbstractLoadCompiledKotlinTest.class, AbstractLoadCompiledKotlinTest.class,
testModel("compiler/testData/loadKotlin", "doTestWithAccessors") testModel("compiler/testData/loadKotlin", "doTest")
); );
generateTest( generateTest(