Minor. Removed unused test method.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+242
-242
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user