Generate @NotNull annotations on delegated functions
This commit is contained in:
@@ -16,24 +16,45 @@
|
||||
|
||||
package org.jetbrains.jet.asJava;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.test.InnerTestClasses;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
import org.jetbrains.jet.asJava.AbstractKotlinLightClassTest;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses")
|
||||
@InnerTestClasses({KotlinLightClassTestGenerated.NullabilityAnnotations.class})
|
||||
@InnerTestClasses({KotlinLightClassTestGenerated.Delegation.class, KotlinLightClassTestGenerated.NullabilityAnnotations.class})
|
||||
public class KotlinLightClassTestGenerated extends AbstractKotlinLightClassTest {
|
||||
public void testAllFilesPresentInLightClasses() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/asJava/lightClasses"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/delegation")
|
||||
public static class Delegation extends AbstractKotlinLightClassTest {
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/asJava/lightClasses/delegation"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("Function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
doTest("compiler/testData/asJava/lightClasses/delegation/Function.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Property.kt")
|
||||
public void testProperty() throws Exception {
|
||||
doTest("compiler/testData/asJava/lightClasses/delegation/Property.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/nullabilityAnnotations")
|
||||
public static class NullabilityAnnotations extends AbstractKotlinLightClassTest {
|
||||
public void testAllFilesPresentInNullabilityAnnotations() throws Exception {
|
||||
@@ -105,6 +126,7 @@ public class KotlinLightClassTestGenerated extends AbstractKotlinLightClassTest
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite("KotlinLightClassTestGenerated");
|
||||
suite.addTestSuite(KotlinLightClassTestGenerated.class);
|
||||
suite.addTestSuite(Delegation.class);
|
||||
suite.addTestSuite(NullabilityAnnotations.class);
|
||||
return suite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user