// 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.quickfix;

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("code-insight/inspections-shared/tests/k1")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("../testData/quickfix")
public abstract class SharedK1QuickFixTestGenerated extends AbstractSharedK1QuickFixTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/quickfix/objectInheritsException")
    public static class ObjectInheritsException extends AbstractSharedK1QuickFixTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

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

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

        @TestMetadata("withCallSites.kt")
        public void testWithCallSites() throws Exception {
            runTest("../testData/quickfix/objectInheritsException/withCallSites.kt");
        }

        @TestMetadata("withInnerDeclarations.kt")
        public void testWithInnerDeclarations() throws Exception {
            runTest("../testData/quickfix/objectInheritsException/withInnerDeclarations.kt");
        }

        @TestMetadata("withInnerDeclarations2.kt")
        public void testWithInnerDeclarations2() throws Exception {
            runTest("../testData/quickfix/objectInheritsException/withInnerDeclarations2.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/quickfix/redundantSemicolon")
    public static class RedundantSemicolon extends AbstractSharedK1QuickFixTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

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

        @TestMetadata("afterImport.kt")
        public void testAfterImport() throws Exception {
            runTest("../testData/quickfix/redundantSemicolon/afterImport.kt");
        }

        @TestMetadata("afterStatement.kt")
        public void testAfterStatement() throws Exception {
            runTest("../testData/quickfix/redundantSemicolon/afterStatement.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/quickfix/unresolvedInvocation")
    public static class UnresolvedInvocation extends AbstractSharedK1QuickFixTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

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

        @TestMetadata("enumEntryCall.kt")
        public void testEnumEntryCall() throws Exception {
            runTest("../testData/quickfix/unresolvedInvocation/enumEntryCall.kt");
        }

        @TestMetadata("nonSimpleName.kt")
        public void testNonSimpleName() throws Exception {
            runTest("../testData/quickfix/unresolvedInvocation/nonSimpleName.kt");
        }

        @TestMetadata("objectCall.kt")
        public void testObjectCall() throws Exception {
            runTest("../testData/quickfix/unresolvedInvocation/objectCall.kt");
        }

        @TestMetadata("propertyCall.kt")
        public void testPropertyCall() throws Exception {
            runTest("../testData/quickfix/unresolvedInvocation/propertyCall.kt");
        }

        @TestMetadata("propertyCallWithArguments.kt")
        public void testPropertyCallWithArguments() throws Exception {
            runTest("../testData/quickfix/unresolvedInvocation/propertyCallWithArguments.kt");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../testData/quickfix/unusedImport")
    public static class UnusedImport extends AbstractSharedK1QuickFixTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

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

        @TestMetadata("import.kt")
        public void testImport() throws Exception {
            runTest("../testData/quickfix/unusedImport/import.kt");
        }
    }
}
