// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.

package org.jetbrains.kotlin.j2k.k2;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("j2k/k2/tests")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("../../shared/tests/testData/fullJDK")
public abstract class K2JavaToKotlinConverterSingleFileFullJDKTestGenerated extends AbstractK2JavaToKotlinConverterSingleFileFullJDKTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../shared/tests/testData/fullJDK/collections")
    public static class Collections extends AbstractK2JavaToKotlinConverterSingleFileFullJDKTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("Arrays.java")
        public void testArrays() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/collections/Arrays.java");
        }

        @TestMetadata("common.java")
        public void testCommon() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/collections/common.java");
        }

        @TestMetadata("listRestriction.java")
        public void testListRestriction() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/collections/listRestriction.java");
        }

        @TestMetadata("literalRestriction.java")
        public void testLiteralRestriction() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/collections/literalRestriction.java");
        }

        @TestMetadata("setRestriction.java")
        public void testSetRestriction() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/collections/setRestriction.java");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../shared/tests/testData/fullJDK/enum")
    public static class Enum extends AbstractK2JavaToKotlinConverterSingleFileFullJDKTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("enumValues.java")
        public void testEnumValues() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/enum/enumValues.java");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../shared/tests/testData/fullJDK/issues")
    public static class Issues extends AbstractK2JavaToKotlinConverterSingleFileFullJDKTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @TestMetadata("kt-19639.java")
        public void testKt_19639() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/issues/kt-19639.java");
        }

        @TestMetadata("kt-19652.java")
        public void testKt_19652() throws Exception {
            runTest("../../shared/tests/testData/fullJDK/issues/kt-19652.java");
        }
    }
}
