// 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.base.fir.analysisApiPlatform;

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("base/fir/analysis-api-platform")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/annotationsResolver")
public abstract class IdeKotlinAnnotationsResolverTestGenerated extends AbstractIdeKotlinAnnotationsResolverTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/annotationsResolver/ambiguity")
    public static class Ambiguity extends AbstractIdeKotlinAnnotationsResolverTest {
        @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("full_import_different_packages.kt")
        public void testFull_import_different_packages() throws Exception {
            runTest("testData/annotationsResolver/ambiguity/full_import_different_packages.kt");
        }

        @TestMetadata("star_import_different_packages.kt")
        public void testStar_import_different_packages() throws Exception {
            runTest("testData/annotationsResolver/ambiguity/star_import_different_packages.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/annotationsResolver/priority")
    public static class Priority extends AbstractIdeKotlinAnnotationsResolverTest {
        @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("full_import_beats_star_import.kt")
        public void testFull_import_beats_star_import() throws Exception {
            runTest("testData/annotationsResolver/priority/full_import_beats_star_import.kt");
        }

        @TestMetadata("star_import_beats_package_import.kt")
        public void testStar_import_beats_package_import() throws Exception {
            runTest("testData/annotationsResolver/priority/star_import_beats_package_import.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("testData/annotationsResolver")
    public static class Uncategorized extends AbstractIdeKotlinAnnotationsResolverTest {
        @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("annotations_in_brackets_syntax.kt")
        public void testAnnotations_in_brackets_syntax() throws Exception {
            runTest("testData/annotationsResolver/annotations_in_brackets_syntax.kt");
        }

        @TestMetadata("different_package_fqname.kt")
        public void testDifferent_package_fqname() throws Exception {
            runTest("testData/annotationsResolver/different_package_fqname.kt");
        }

        @TestMetadata("different_package_short_name_full_import.kt")
        public void testDifferent_package_short_name_full_import() throws Exception {
            runTest("testData/annotationsResolver/different_package_short_name_full_import.kt");
        }

        @TestMetadata("different_package_short_name_no_import.kt")
        public void testDifferent_package_short_name_no_import() throws Exception {
            runTest("testData/annotationsResolver/different_package_short_name_no_import.kt");
        }

        @TestMetadata("different_package_short_name_star_import.kt")
        public void testDifferent_package_short_name_star_import() throws Exception {
            runTest("testData/annotationsResolver/different_package_short_name_star_import.kt");
        }

        @TestMetadata("same_package_fqname.kt")
        public void testSame_package_fqname() throws Exception {
            runTest("testData/annotationsResolver/same_package_fqname.kt");
        }

        @TestMetadata("same_package_short_name.kt")
        public void testSame_package_short_name() throws Exception {
            runTest("testData/annotationsResolver/same_package_short_name.kt");
        }
    }
}
