Check Retention annotation writing annotations in bytecode

This commit is contained in:
Natalia.Ukhorskaya
2013-07-25 15:34:40 +04:00
parent 1066fc7f2a
commit 09b163069f
5 changed files with 53 additions and 9 deletions
@@ -37,6 +37,21 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/bytecodeText"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("annotationRetentionPolicyClass.kt")
public void testAnnotationRetentionPolicyClass() throws Exception {
doTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyClass.kt");
}
@TestMetadata("annotationRetentionPolicyRuntime.kt")
public void testAnnotationRetentionPolicyRuntime() throws Exception {
doTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyRuntime.kt");
}
@TestMetadata("annotationRetentionPolicySource.kt")
public void testAnnotationRetentionPolicySource() throws Exception {
doTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicySource.kt");
}
@TestMetadata("componentEvaluatesOnlyOnce.kt")
public void testComponentEvaluatesOnlyOnce() throws Exception {
doTest("compiler/testData/codegen/bytecodeText/componentEvaluatesOnlyOnce.kt");