equals generation for data classes
This commit is contained in:
@@ -26,7 +26,7 @@ import java.io.File;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.codegen.AbstractDataClassCodegenTest}. DO NOT MODIFY MANUALLY */
|
||||
@TestMetadata("compiler/testData/codegen/dataClasses")
|
||||
@InnerTestClasses({DataClassCodegenTestGenerated.Hashcode.class, DataClassCodegenTestGenerated.Tostring.class})
|
||||
@InnerTestClasses({DataClassCodegenTestGenerated.Equals.class, DataClassCodegenTestGenerated.Hashcode.class, DataClassCodegenTestGenerated.Tostring.class})
|
||||
public class DataClassCodegenTestGenerated extends AbstractDataClassCodegenTest {
|
||||
public void testAllFilesPresentInDataClasses() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.codegen.AbstractDataClassCodegenTest", new File("compiler/testData/codegen/dataClasses"), "kt", true);
|
||||
@@ -82,6 +82,39 @@ public class DataClassCodegenTestGenerated extends AbstractDataClassCodegenTest
|
||||
blackBoxFileByFullPath("compiler/testData/codegen/dataClasses/unitComponent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/dataClasses/equals")
|
||||
public static class Equals extends AbstractDataClassCodegenTest {
|
||||
public void testAllFilesPresentInEquals() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.codegen.AbstractDataClassCodegenTest", new File("compiler/testData/codegen/dataClasses/equals"), "kt", true);
|
||||
}
|
||||
|
||||
@TestMetadata("genericarray.kt")
|
||||
public void testGenericarray() throws Exception {
|
||||
blackBoxFileByFullPath("compiler/testData/codegen/dataClasses/equals/genericarray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("instanceof.kt")
|
||||
public void testInstanceof() throws Exception {
|
||||
blackBoxFileByFullPath("compiler/testData/codegen/dataClasses/equals/instanceof.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intarray.kt")
|
||||
public void testIntarray() throws Exception {
|
||||
blackBoxFileByFullPath("compiler/testData/codegen/dataClasses/equals/intarray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullother.kt")
|
||||
public void testNullother() throws Exception {
|
||||
blackBoxFileByFullPath("compiler/testData/codegen/dataClasses/equals/nullother.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sameinstance.kt")
|
||||
public void testSameinstance() throws Exception {
|
||||
blackBoxFileByFullPath("compiler/testData/codegen/dataClasses/equals/sameinstance.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/dataClasses/hashcode")
|
||||
public static class Hashcode extends AbstractDataClassCodegenTest {
|
||||
public void testAllFilesPresentInHashcode() throws Exception {
|
||||
@@ -181,6 +214,7 @@ public class DataClassCodegenTestGenerated extends AbstractDataClassCodegenTest
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite("DataClassCodegenTestGenerated");
|
||||
suite.addTestSuite(DataClassCodegenTestGenerated.class);
|
||||
suite.addTestSuite(Equals.class);
|
||||
suite.addTestSuite(Hashcode.class);
|
||||
suite.addTestSuite(Tostring.class);
|
||||
return suite;
|
||||
|
||||
Reference in New Issue
Block a user