// 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.idea.k2.inheritorsSearch;

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("kotlin.searching/kotlin.searching.test.k2")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public abstract class DirectKotlinInheritorsSearcherTestGenerated extends AbstractDirectKotlinInheritorsSearcherTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/inheritorsSearch/kotlinClass")
    public static class KotlinClass extends AbstractDirectKotlinInheritorsSearcherTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("simple.kt")
        public void testSimple() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinClass/simple.kt");
        }

        @TestMetadata("withEnum.kt")
        public void testWithEnum() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinClass/withEnum.kt");
        }

        @TestMetadata("withJavaInheritor.kt")
        public void testWithJavaInheritor() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinClass/withJavaInheritor.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/inheritorsSearch/javaClass")
    public static class JavaClass extends AbstractDirectKotlinInheritorsSearcherTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("fromJava.java")
        public void testFromJava() throws Exception {
            runTest("../testData/inheritorsSearch/javaClass/fromJava.java");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/inheritorsSearch/javaMethod")
    public static class JavaMethod extends AbstractDirectKotlinInheritorsSearcherTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("fromJavaMethod.java")
        public void testFromJavaMethod() throws Exception {
            runTest("../testData/inheritorsSearch/javaMethod/fromJavaMethod.java");
        }

        @TestMetadata("fromJavaMethod1.java")
        public void testFromJavaMethod1() throws Exception {
            runTest("../testData/inheritorsSearch/javaMethod/fromJavaMethod1.java");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/inheritorsSearch/kotlinFunction")
    public static class KotlinFunction extends AbstractDirectKotlinInheritorsSearcherTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("enumEntryInheritor.kt")
        public void testEnumEntryInheritor() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/enumEntryInheritor.kt");
        }

        @TestMetadata("hierarchyWithMissedLevel.kt")
        public void testHierarchyWithMissedLevel() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/hierarchyWithMissedLevel.kt");
        }

        @TestMetadata("inEnum.kt")
        public void testInEnum() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/inEnum.kt");
        }

        @TestMetadata("objectLiteralInheritor.kt")
        public void testObjectLiteralInheritor() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/objectLiteralInheritor.kt");
        }

        @TestMetadata("simple.kt")
        public void testSimple() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/simple.kt");
        }

        @TestMetadata("withGeneratedProperty.kt")
        public void testWithGeneratedProperty() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/withGeneratedProperty.kt");
        }

        @TestMetadata("withJavaInheritor.kt")
        public void testWithJavaInheritor() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/withJavaInheritor.kt");
        }

        @TestMetadata("withJavaInheritorTypeParameters.kt")
        public void testWithJavaInheritorTypeParameters() throws Exception {
            runTest("../testData/inheritorsSearch/kotlinFunction/withJavaInheritorTypeParameters.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/inheritorsSearch/allInheritors")
    public static class AllInheritors extends AbstractDirectKotlinInheritorsSearcherTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K2;
        }

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

        @TestMetadata("withJavaInheritorLocalScope.kt")
        public void testWithJavaInheritorLocalScope() throws Exception {
            runTest("../testData/inheritorsSearch/allInheritors/withJavaInheritorLocalScope.kt");
        }
    }
}
