Generators sit in the abstract test classes
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ public abstract class AbstractLazyResolveDescriptorRendererTest extends Abstract
|
||||
extension,
|
||||
"doTest")
|
||||
),
|
||||
LazyResolveTestGenerator.class
|
||||
AbstractLazyResolveDescriptorRendererTest.class
|
||||
).generateAndSave();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ public abstract class AbstractLazyResolveNamespaceComparingTest extends Abstract
|
||||
extension,
|
||||
"doTest")
|
||||
),
|
||||
LazyResolveTestGenerator.class
|
||||
AbstractLazyResolveNamespaceComparingTest.class
|
||||
).generateAndSave();
|
||||
}
|
||||
}
|
||||
|
||||
+4
-7
@@ -15,22 +15,19 @@
|
||||
*/
|
||||
package org.jetbrains.jet.lang.resolve.lazy;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import java.io.File;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
|
||||
import org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveDescriptorRendererTest;
|
||||
import java.io.File;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator}. DO NOT MODIFY MANUALLY */
|
||||
/** This class is generated by {@link org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveDescriptorRendererTest}. DO NOT MODIFY MANUALLY */
|
||||
public class LazyResolveDescriptorRendererTestGenerated extends AbstractLazyResolveDescriptorRendererTest {
|
||||
@TestMetadata("compiler/testData/renderer")
|
||||
public static class Renderer extends AbstractLazyResolveDescriptorRendererTest {
|
||||
public void testAllFilesPresentInRenderer() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/renderer"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveDescriptorRendererTest", new File("compiler/testData/renderer"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("Classes.kt")
|
||||
@@ -78,7 +75,7 @@ public class LazyResolveDescriptorRendererTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/lazyResolve/descriptorRenderer")
|
||||
public static class DescriptorRenderer extends AbstractLazyResolveDescriptorRendererTest {
|
||||
public void testAllFilesPresentInDescriptorRenderer() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/lazyResolve/descriptorRenderer"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveDescriptorRendererTest", new File("compiler/testData/lazyResolve/descriptorRenderer"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObject.kt")
|
||||
|
||||
+27
-24
@@ -15,25 +15,28 @@
|
||||
*/
|
||||
package org.jetbrains.jet.lang.resolve.lazy;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import java.io.File;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
|
||||
import java.io.File;
|
||||
import org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator}. DO NOT MODIFY MANUALLY */
|
||||
/** This class is generated by {@link org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest}. DO NOT MODIFY MANUALLY */
|
||||
public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyResolveNamespaceComparingTest {
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass")
|
||||
public static class ReadKotlinBinaryClass extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInReadKotlinBinaryClass() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/class")
|
||||
public static class Class extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInClass() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/class"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/class"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("Class.kt")
|
||||
@@ -141,7 +144,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/classFun")
|
||||
public static class ClassFun extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInClassFun() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/classFun"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/classFun"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ClassInParamUsedInFun.kt")
|
||||
@@ -179,7 +182,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/classObject")
|
||||
public static class ClassObject extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInClassObject() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/classObject"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/classObject"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObjectDeclaresVal.kt")
|
||||
@@ -212,7 +215,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/constructor")
|
||||
public static class Constructor extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInConstructor() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/constructor"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/constructor"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("Constructor0.kt")
|
||||
@@ -265,13 +268,13 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/fun")
|
||||
public static class Fun extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInFun() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/fun"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/fun"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/fun/genericWithTypeVariables")
|
||||
public static class GenericWithTypeVariables extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInGenericWithTypeVariables() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/fun/genericWithTypeVariables"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/fun/genericWithTypeVariables"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("FunGenericParam.kt")
|
||||
@@ -354,7 +357,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/fun/genericWithoutTypeVariables")
|
||||
public static class GenericWithoutTypeVariables extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInGenericWithoutTypeVariables() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/fun/genericWithoutTypeVariables"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/fun/genericWithoutTypeVariables"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("FunClassParamNotNull.kt")
|
||||
@@ -387,7 +390,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/fun/nonGeneric")
|
||||
public static class NonGeneric extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInNonGeneric() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/fun/nonGeneric"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/fun/nonGeneric"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ClassFun.kt")
|
||||
@@ -485,7 +488,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/prop")
|
||||
public static class Prop extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInProp() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/prop"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/prop"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ClassVal.kt")
|
||||
@@ -643,7 +646,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/type")
|
||||
public static class Type extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInType() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/type"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/type"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("Any.kt")
|
||||
@@ -776,7 +779,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readKotlinBinaryClass/visibility")
|
||||
public static class Visibility extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInVisibility() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readKotlinBinaryClass/visibility"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readKotlinBinaryClass/visibility"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("InternalAbstractTraitMembersOverridden.kt")
|
||||
@@ -849,7 +852,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass")
|
||||
public static class ReadJavaBinaryClass extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInReadJavaBinaryClass() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ClassDoesNotOverrideMethod.kt")
|
||||
@@ -965,7 +968,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/annotation")
|
||||
public static class Annotation extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInAnnotation() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/annotation"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/annotation"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotatedAnnotation.kt")
|
||||
@@ -988,7 +991,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/constructor")
|
||||
public static class Constructor extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInConstructor() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/constructor"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/constructor"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorGenericDeep.kt")
|
||||
@@ -1011,7 +1014,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/javaBean")
|
||||
public static class JavaBean extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInJavaBean() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/javaBean"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/javaBean"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("DifferentGetterAndSetter.kt")
|
||||
@@ -1049,7 +1052,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/kotlinSignature")
|
||||
public static class KotlinSignature extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInKotlinSignature() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/kotlinSignature"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/kotlinSignature"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("MethodWithFunctionTypes.kt")
|
||||
@@ -1085,7 +1088,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInError() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/kotlinSignature/error"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/kotlinSignature/error"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ExtraUpperBound.kt")
|
||||
@@ -1191,7 +1194,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/modality")
|
||||
public static class Modality extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInModality() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/modality"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/modality"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("ModalityOfFakeOverrides.kt")
|
||||
@@ -1204,7 +1207,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/notNull")
|
||||
public static class NotNull extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInNotNull() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/notNull"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/notNull"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("NotNullField.kt")
|
||||
@@ -1227,7 +1230,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/readJavaBinaryClass/vararg")
|
||||
public static class Vararg extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInVararg() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/readJavaBinaryClass/vararg"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/readJavaBinaryClass/vararg"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("VarargInt.kt")
|
||||
@@ -1259,7 +1262,7 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
@TestMetadata("compiler/testData/lazyResolve/namespaceComparator")
|
||||
public static class NamespaceComparator extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInNamespaceComparator() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.LazyResolveTestGenerator", new File("compiler/testData/lazyResolve/namespaceComparator"), "kt", false);
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/lazyResolve/namespaceComparator"), "kt", false);
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.jet.lang.resolve.lazy;
|
||||
|
||||
import org.jetbrains.jet.test.generator.SimpleTestClassModel;
|
||||
import org.jetbrains.jet.test.generator.TestGenerator;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author abreslav
|
||||
*/
|
||||
public class LazyResolveTestGenerator {
|
||||
|
||||
private static final String TARGET_PACKAGE = LazyResolveTestGenerator.class.getPackage().getName();
|
||||
private static final String TEST_DATA_FILE_EXTENSION = "kt";
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
generateNamespaceComparingTests();
|
||||
generateRendererTests();
|
||||
}
|
||||
|
||||
private static void generateRendererTests() throws IOException {
|
||||
new TestGenerator(
|
||||
"compiler/tests/",
|
||||
TARGET_PACKAGE,
|
||||
"LazyResolveDescriptorRendererTestGenerated",
|
||||
AbstractLazyResolveDescriptorRendererTest.class,
|
||||
Arrays.asList(
|
||||
new SimpleTestClassModel(new File("compiler/testData/renderer"),
|
||||
true,
|
||||
TEST_DATA_FILE_EXTENSION,
|
||||
"doTest"),
|
||||
new SimpleTestClassModel(new File("compiler/testData/lazyResolve/descriptorRenderer"),
|
||||
true,
|
||||
TEST_DATA_FILE_EXTENSION,
|
||||
"doTest")
|
||||
),
|
||||
LazyResolveTestGenerator.class
|
||||
).generateAndSave();
|
||||
}
|
||||
|
||||
private static void generateNamespaceComparingTests() throws IOException {
|
||||
new TestGenerator(
|
||||
"compiler/tests/",
|
||||
TARGET_PACKAGE,
|
||||
"LazyResolveNamespaceComparingTestGenerated",
|
||||
AbstractLazyResolveNamespaceComparingTest.class,
|
||||
Arrays.asList(
|
||||
new SimpleTestClassModel(new File("compiler/testData/readKotlinBinaryClass"),
|
||||
true,
|
||||
TEST_DATA_FILE_EXTENSION,
|
||||
"doTestSinglePackage"),
|
||||
new SimpleTestClassModel(new File("compiler/testData/readJavaBinaryClass"),
|
||||
true,
|
||||
TEST_DATA_FILE_EXTENSION,
|
||||
"doTestSinglePackage"),
|
||||
new SimpleTestClassModel(new File("compiler/testData/lazyResolve/namespaceComparator"),
|
||||
true,
|
||||
TEST_DATA_FILE_EXTENSION,
|
||||
"doTest")
|
||||
),
|
||||
LazyResolveTestGenerator.class
|
||||
).generateAndSave();
|
||||
}
|
||||
|
||||
private LazyResolveTestGenerator() {}
|
||||
}
|
||||
Reference in New Issue
Block a user