/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * 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.analysis.api.standalone.fir.test.cases.generated.cases.components.javaInteroperabilityComponent;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.analysis.api.standalone.fir.test.configurators.AnalysisApiFirStandaloneModeTestConfiguratorFactory;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfiguratorFactoryData;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfigurator;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.TestModuleKind;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.FrontendKind;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisSessionMode;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiMode;
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.javaInteroperabilityComponent.AbstractPsiTypeAsKaTypeTest;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Test;

import java.io.File;
import java.util.regex.Pattern;

/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType")
@TestDataPath("$PROJECT_ROOT")
public class FirStandaloneNormalAnalysisSourceModulePsiTypeAsKaTypeTestGenerated extends AbstractPsiTypeAsKaTypeTest {
  @NotNull
  @Override
  public AnalysisApiTestConfigurator getConfigurator() {
    return AnalysisApiFirStandaloneModeTestConfiguratorFactory.INSTANCE.createConfigurator(
      new AnalysisApiTestConfiguratorFactoryData(
        FrontendKind.Fir,
        TestModuleKind.Source,
        AnalysisSessionMode.Normal,
        AnalysisApiMode.Standalone
      )
    );
  }

  @Test
  public void testAllFilesPresentInAsKaType() {
    KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType"), Pattern.compile("^(.+)\\.kt$"), null, true);
  }

  @Test
  @TestMetadata("anonym.kt")
  public void testAnonym() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/anonym.kt");
  }

  @Test
  @TestMetadata("extends.kt")
  public void testExtends() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/extends.kt");
  }

  @Test
  @TestMetadata("methodTypeParameterWithKotlinUseSite.kt")
  public void testMethodTypeParameterWithKotlinUseSite() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/methodTypeParameterWithKotlinUseSite.kt");
  }

  @Test
  @TestMetadata("methodTypeParameterWithMethodUseSite.kt")
  public void testMethodTypeParameterWithMethodUseSite() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/methodTypeParameterWithMethodUseSite.kt");
  }

  @Test
  @TestMetadata("methodTypeParameterWithTypeParameterUseSite.kt")
  public void testMethodTypeParameterWithTypeParameterUseSite() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/methodTypeParameterWithTypeParameterUseSite.kt");
  }

  @Test
  @TestMetadata("methodTypeParameters.kt")
  public void testMethodTypeParameters() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/methodTypeParameters.kt");
  }

  @Test
  @TestMetadata("nestedGenerics.kt")
  public void testNestedGenerics() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/nestedGenerics.kt");
  }

  @Test
  @TestMetadata("nullableString.kt")
  public void testNullableString() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/nullableString.kt");
  }

  @Test
  @TestMetadata("primitive.kt")
  public void testPrimitive() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitive.kt");
  }

  @Test
  @TestMetadata("primitiveArrayWithComplexType.kt")
  public void testPrimitiveArrayWithComplexType() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitiveArrayWithComplexType.kt");
  }

  @Test
  @TestMetadata("primitiveArrayWithComplexTypeAndTypeAnnotations.kt")
  public void testPrimitiveArrayWithComplexTypeAndTypeAnnotations() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitiveArrayWithComplexTypeAndTypeAnnotations.kt");
  }

  @Test
  @TestMetadata("primitiveArrayWithNonPrimitiveType.kt")
  public void testPrimitiveArrayWithNonPrimitiveType() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitiveArrayWithNonPrimitiveType.kt");
  }

  @Test
  @TestMetadata("primitiveArrayWithNonPrimitiveTypeAndTypeAnnotations.kt")
  public void testPrimitiveArrayWithNonPrimitiveTypeAndTypeAnnotations() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitiveArrayWithNonPrimitiveTypeAndTypeAnnotations.kt");
  }

  @Test
  @TestMetadata("primitiveArrayWithPrimitiveType.kt")
  public void testPrimitiveArrayWithPrimitiveType() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitiveArrayWithPrimitiveType.kt");
  }

  @Test
  @TestMetadata("primitiveArrayWithPrimitiveTypeAndAnnotation.kt")
  public void testPrimitiveArrayWithPrimitiveTypeAndAnnotation() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/primitiveArrayWithPrimitiveTypeAndAnnotation.kt");
  }

  @Test
  @TestMetadata("typeAnnotation.kt")
  public void testTypeAnnotation() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/typeAnnotation.kt");
  }

  @Test
  @TestMetadata("typeAnnotationOnString.kt")
  public void testTypeAnnotationOnString() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/typeAnnotationOnString.kt");
  }

  @Test
  @TestMetadata("typeParameterWithKotlinUseSite.kt")
  public void testTypeParameterWithKotlinUseSite() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/typeParameterWithKotlinUseSite.kt");
  }

  @Test
  @TestMetadata("typeParameterWithMethodUseSite.kt")
  public void testTypeParameterWithMethodUseSite() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/typeParameterWithMethodUseSite.kt");
  }

  @Test
  @TestMetadata("typeParameters.kt")
  public void testTypeParameters() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/typeParameters.kt");
  }

  @Test
  @TestMetadata("typeParameters2.kt")
  public void testTypeParameters2() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/typeParameters2.kt");
  }

  @Test
  @TestMetadata("varargParameter.kt")
  public void testVarargParameter() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/varargParameter.kt");
  }

  @Test
  @TestMetadata("varargParameterComplexType.kt")
  public void testVarargParameterComplexType() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/varargParameterComplexType.kt");
  }

  @Test
  @TestMetadata("varargParameterComplexTypeAndTypeAnnotations.kt")
  public void testVarargParameterComplexTypeAndTypeAnnotations() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/varargParameterComplexTypeAndTypeAnnotations.kt");
  }

  @Test
  @TestMetadata("varargParameterWithTypeAnnotations.kt")
  public void testVarargParameterWithTypeAnnotations() {
    runTest("analysis/analysis-api/testData/components/javaInteroperabilityComponent/asKaType/varargParameterWithTypeAnnotations.kt");
  }
}
