Add bytecodeText test for annotation with default value

It checks that no value is emitted if argument is not specified
This commit is contained in:
Denis Zharkov
2015-04-15 21:06:58 +03:00
parent 97e4a899cf
commit b2a2e4ae92
2 changed files with 11 additions and 0 deletions
@@ -41,6 +41,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("annotationDefaultValue.kt")
public void testAnnotationDefaultValue() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/annotationDefaultValue.kt");
doTest(fileName);
}
@TestMetadata("annotationRetentionPolicyClass.kt")
public void testAnnotationRetentionPolicyClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyClass.kt");