/* * Copyright 2010-2017 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.kotlin.checkers; import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; import java.io.File; import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public class JavaAgainstKotlinBinariesCheckerTestGenerated extends AbstractJavaAgainstKotlinBinariesCheckerTest { public void testAllFilesPresentInJavaAgainstKotlin() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); } @TestMetadata("AssignKotlinClassToObjectInJava.kt") public void testAssignKotlinClassToObjectInJava() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/AssignKotlinClassToObjectInJava.kt"); doTest(fileName); } @TestMetadata("AssignMappedKotlinType.kt") public void testAssignMappedKotlinType() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/AssignMappedKotlinType.kt"); doTest(fileName); } @TestMetadata("ClassObjects.kt") public void testClassObjects() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/ClassObjects.kt"); doTest(fileName); } @TestMetadata("EnumAutoGeneratedMethods.kt") public void testEnumAutoGeneratedMethods() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/EnumAutoGeneratedMethods.kt"); doTest(fileName); } @TestMetadata("EnumEntriesInSwitch.kt") public void testEnumEntriesInSwitch() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/EnumEntriesInSwitch.kt"); doTest(fileName); } @TestMetadata("EnumStaticImportInJava.kt") public void testEnumStaticImportInJava() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/EnumStaticImportInJava.kt"); doTest(fileName); } @TestMetadata("ExtendClassWithDefaultImplementationComplex.kt") public void testExtendClassWithDefaultImplementationComplex() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/ExtendClassWithDefaultImplementationComplex.kt"); doTest(fileName); } @TestMetadata("ExtendClassWithDefaultImplementation_1_6.kt") public void testExtendClassWithDefaultImplementation_1_6() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/ExtendClassWithDefaultImplementation_1_6.kt"); doTest(fileName); } @TestMetadata("ExtendClassWithDefaultImplementation_1_8.kt") public void testExtendClassWithDefaultImplementation_1_8() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/ExtendClassWithDefaultImplementation_1_8.kt"); doTest(fileName); } @TestMetadata("FunctionInNestedClassInDataFlowInspection.kt") public void testFunctionInNestedClassInDataFlowInspection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/FunctionInNestedClassInDataFlowInspection.kt"); doTest(fileName); } @TestMetadata("ImplementedMethodsFromTraits.kt") public void testImplementedMethodsFromTraits() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/ImplementedMethodsFromTraits.kt"); doTest(fileName); } @TestMetadata("InferenceReturnType_1_6.kt") public void testInferenceReturnType_1_6() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InferenceReturnType_1_6.kt"); doTest(fileName); } @TestMetadata("InferenceReturnType_1_8.kt") public void testInferenceReturnType_1_8() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InferenceReturnType_1_8.kt"); doTest(fileName); } @TestMetadata("InterfaceDefaultImpls.kt") public void testInterfaceDefaultImpls() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InterfaceDefaultImpls.kt"); doTest(fileName); } @TestMetadata("JvmOverloadsFunctions.kt") public void testJvmOverloadsFunctions() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/JvmOverloadsFunctions.kt"); doTest(fileName); } @TestMetadata("KotlinAnnotations.kt") public void testKotlinAnnotations() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/KotlinAnnotations.kt"); doTest(fileName); } @TestMetadata("ReturnInnerClasses.kt") public void testReturnInnerClasses() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/ReturnInnerClasses.kt"); doTest(fileName); } @TestMetadata("TopLevelFunctionInDataFlowInspection.kt") public void testTopLevelFunctionInDataFlowInspection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/TopLevelFunctionInDataFlowInspection.kt"); doTest(fileName); } @TestMetadata("TopLevelFunctionWithNameSimilarToClassInDataFlowInspection.kt") public void testTopLevelFunctionWithNameSimilarToClassInDataFlowInspection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/TopLevelFunctionWithNameSimilarToClassInDataFlowInspection.kt"); doTest(fileName); } @TestMetadata("TopLevelFunctionWithNameSimilarToPropertyInDataFlowInspection.kt") public void testTopLevelFunctionWithNameSimilarToPropertyInDataFlowInspection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/TopLevelFunctionWithNameSimilarToPropertyInDataFlowInspection.kt"); doTest(fileName); } @TestMetadata("TopLevelOverloadedFunctionInDataFlowInspection.kt") public void testTopLevelOverloadedFunctionInDataFlowInspection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/TopLevelOverloadedFunctionInDataFlowInspection.kt"); doTest(fileName); } @TestMetadata("UseKotlinConstInSwitch.kt") public void testUseKotlinConstInSwitch() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/UseKotlinConstInSwitch.kt"); doTest(fileName); } @TestMetadata("UseKotlinSubclassesOfMappedTypes.kt") public void testUseKotlinSubclassesOfMappedTypes() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/UseKotlinSubclassesOfMappedTypes.kt"); doTest(fileName); } @TestMetadata("UsingKotlinPackageDeclarations.kt") public void testUsingKotlinPackageDeclarations() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/UsingKotlinPackageDeclarations.kt"); doTest(fileName); } }