diff --git a/compiler/testData/codegen/java8/writeSignature/mutableMapRemove.kt b/compiler/testData/writeSignature/java8/mutableMapRemove.kt similarity index 98% rename from compiler/testData/codegen/java8/writeSignature/mutableMapRemove.kt rename to compiler/testData/writeSignature/java8/mutableMapRemove.kt index ef8191e82c0..f0a3eb65638 100644 --- a/compiler/testData/codegen/java8/writeSignature/mutableMapRemove.kt +++ b/compiler/testData/writeSignature/java8/mutableMapRemove.kt @@ -1,3 +1,5 @@ +//FULL_JDK + class KotlinMap1 : java.util.AbstractMap() { override val entries: MutableSet> get() = throw UnsupportedOperationException() diff --git a/compiler/tests-java8/tests/org/jetbrains/kotlin/generators/tests/GenerateJava8Tests.kt b/compiler/tests-java8/tests/org/jetbrains/kotlin/generators/tests/GenerateJava8Tests.kt index 25f42f6be51..619be6a679f 100644 --- a/compiler/tests-java8/tests/org/jetbrains/kotlin/generators/tests/GenerateJava8Tests.kt +++ b/compiler/tests-java8/tests/org/jetbrains/kotlin/generators/tests/GenerateJava8Tests.kt @@ -25,7 +25,6 @@ import org.jetbrains.kotlin.codegen.AbstractBytecodeTextTest import org.jetbrains.kotlin.codegen.AbstractCompileKotlinAgainstKotlinTest import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest import org.jetbrains.kotlin.generators.tests.generator.testGroup -import org.jetbrains.kotlin.jvm.compiler.AbstractJava8WriteSignatureTest import org.jetbrains.kotlin.jvm.compiler.AbstractLoadJava8Test import org.jetbrains.kotlin.jvm.compiler.AbstractLoadJava8WithFastClassReadingTest import org.jetbrains.kotlin.jvm.compiler.javac.AbstractLoadJava8UsingJavacTest @@ -77,10 +76,6 @@ fun main(args: Array) { model("codegen/java8/compileKotlinAgainstKotlin") } - testClass { - model("codegen/java8/writeSignature") - } - testClass { model("codegen/java8/writeFlags") } diff --git a/compiler/tests-java8/tests/org/jetbrains/kotlin/jvm/compiler/AbstractJava8WriteSignatureTest.kt b/compiler/tests-java8/tests/org/jetbrains/kotlin/jvm/compiler/AbstractJava8WriteSignatureTest.kt deleted file mode 100644 index 3da0cbaea68..00000000000 --- a/compiler/tests-java8/tests/org/jetbrains/kotlin/jvm/compiler/AbstractJava8WriteSignatureTest.kt +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2010-2016 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. - */ - -/* - * Copyright 2010-2016 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.jvm.compiler - -import org.jetbrains.kotlin.test.TestJdkKind - -abstract class AbstractJava8WriteSignatureTest : AbstractWriteSignatureTest() { - override val jdkKind: TestJdkKind - get() = TestJdkKind.FULL_JDK -} diff --git a/compiler/tests-java8/tests/org/jetbrains/kotlin/jvm/compiler/Java8WriteSignatureTestGenerated.java b/compiler/tests-java8/tests/org/jetbrains/kotlin/jvm/compiler/Java8WriteSignatureTestGenerated.java deleted file mode 100644 index 71aa7cb99df..00000000000 --- a/compiler/tests-java8/tests/org/jetbrains/kotlin/jvm/compiler/Java8WriteSignatureTestGenerated.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.jvm.compiler; - -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("compiler/testData/codegen/java8/writeSignature") -@TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) -public class Java8WriteSignatureTestGenerated extends AbstractJava8WriteSignatureTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); - } - - public void testAllFilesPresentInWriteSignature() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/java8/writeSignature"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); - } - - @TestMetadata("mutableMapRemove.kt") - public void testMutableMapRemove() throws Exception { - runTest("compiler/testData/codegen/java8/writeSignature/mutableMapRemove.kt"); - } -} diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/WriteSignatureTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/WriteSignatureTestGenerated.java index 524c464bf12..13fd132b013 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/WriteSignatureTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/WriteSignatureTestGenerated.java @@ -573,6 +573,24 @@ public class WriteSignatureTestGenerated extends AbstractWriteSignatureTest { } } + @TestMetadata("compiler/testData/writeSignature/java8") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Java8 extends AbstractWriteSignatureTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInJava8() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/writeSignature/java8"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("mutableMapRemove.kt") + public void testMutableMapRemove() throws Exception { + runTest("compiler/testData/writeSignature/java8/mutableMapRemove.kt"); + } + } + @TestMetadata("compiler/testData/writeSignature/nothing") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class)