[JS] Fix JS legacy incremental

This commit is contained in:
Ilya Goncharov
2023-06-12 19:22:46 +02:00
committed by Space Team
parent 38e9dfc823
commit e7e6fba81f
6 changed files with 0 additions and 2551 deletions
@@ -1,20 +0,0 @@
/*
* Copyright 2010-2019 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.incremental
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
import java.io.File
abstract class AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest : AbstractIncrementalJsCompilerRunnerTest() {
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments =
super.createCompilerArguments(destinationDir, testDir).apply {
metadataOnly = true
}
override val buildLogFinder: BuildLogFinder
get() = super.buildLogFinder.copy(isKlibEnabled = true)
}
@@ -1,104 +0,0 @@
/*
* Copyright 2010-2020 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.incremental
import org.jetbrains.kotlin.build.report.ICReporter
import org.jetbrains.kotlin.cli.common.CompilerSystemProperties
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
import org.jetbrains.kotlin.incremental.multiproject.ModulesApiHistoryJs
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
import java.io.File
import java.io.FileOutputStream
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
abstract class AbstractIncrementalMultiModuleJsCompilerRunnerTest :
AbstractIncrementalMultiModuleCompilerRunnerTest<K2JSCompilerArguments, ModulesApiHistoryJs>() {
override val buildLogFinder: BuildLogFinder
get() = super.buildLogFinder.copy(
isJsEnabled = true,
isScopeExpansionEnabled = scopeExpansionMode != CompileScopeExpansionMode.NEVER
)
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments =
K2JSCompilerArguments().apply {
sourceMap = true
metaInfo = true
forceDeprecatedLegacyCompilerUsage = true
}
override fun makeForSingleModule(
moduleCacheDir: File,
sourceRoots: Iterable<File>,
args: K2JSCompilerArguments,
moduleBuildHistoryFile: File,
messageCollector: MessageCollector,
reporter: ICReporter,
scopeExpansion: CompileScopeExpansionMode,
modulesApiHistory: ModulesApiHistoryJs,
providedChangedFiles: ChangedFiles?
) {
makeJsIncrementally(
moduleCacheDir,
sourceRoots,
args,
moduleBuildHistoryFile,
messageCollector,
reporter,
scopeExpansionMode,
modulesApiHistory,
providedChangedFiles
)
}
override fun K2JSCompilerArguments.updateForSingleModule(moduleDependencies: List<String>, outFile: File) {
val dependencies = moduleDependencies.joinToString(File.pathSeparator) {
File(repository, it.asArtifactFileName()).absolutePath
}
libraries = dependencies
outputFile = outFile.path
}
override fun transformToDependency(moduleName: String, rawArtifact: File): File {
val rawDir = rawArtifact.parentFile
val artifactFile = File(repository, moduleName.asArtifactFileName())
val zipOut = ZipOutputStream(FileOutputStream(artifactFile))
fun walkFiles(dir: File) {
dir.listFiles()?.let { files ->
files.forEach { file ->
if (file.isDirectory) walkFiles(file)
else {
val relativePath = file.relativeTo(rawDir).path
val zipEntry = ZipEntry(relativePath)
zipEntry.time = 0
zipOut.putNextEntry(zipEntry)
file.readBytes().let { bytes ->
zipOut.write(bytes, 0, bytes.size)
}
zipOut.closeEntry()
}
}
}
}
walkFiles(rawDir)
zipOut.close()
return artifactFile
}
override val modulesApiHistory: ModulesApiHistoryJs by lazy { ModulesApiHistoryJs(incrementalModuleInfo) }
override fun String.asOutputFileName(): String = "$this.js"
override fun String.asArtifactFileName(): String = "$this.jar"
override val scopeExpansionMode = CompileScopeExpansionMode.NEVER
}
@@ -1,974 +0,0 @@
/*
* Copyright 2010-2023 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.incremental;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementalJsCompilerRunnerTest {
@TestMetadata("jps/jps-plugin/testData/incremental/pureKotlin")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PureKotlin extends AbstractIncrementalJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("accessingFunctionsViaPackagePart")
public void testAccessingFunctionsViaPackagePart() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/accessingFunctionsViaPackagePart/");
}
@TestMetadata("accessingPropertiesViaField")
public void testAccessingPropertiesViaField() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/accessingPropertiesViaField/");
}
@TestMetadata("addClass")
public void testAddClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addClass/");
}
@TestMetadata("addFileWithFunctionOverload")
public void testAddFileWithFunctionOverload() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addFileWithFunctionOverload/");
}
@TestMetadata("addMemberTypeAlias")
public void testAddMemberTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addMemberTypeAlias/");
}
@TestMetadata("addTopLevelTypeAlias")
public void testAddTopLevelTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addTopLevelTypeAlias/");
}
public void testAllFilesPresentInPureKotlin() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile(".*SinceK2"), false);
}
@TestMetadata("annotations")
public void testAnnotations() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/annotations/");
}
@TestMetadata("anonymousObjectChanged")
public void testAnonymousObjectChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/anonymousObjectChanged/");
}
@TestMetadata("changeTypeImplicitlyWithCircularDependency")
public void testChangeTypeImplicitlyWithCircularDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeTypeImplicitlyWithCircularDependency/");
}
@TestMetadata("changeWithRemovingUsage")
public void testChangeWithRemovingUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeWithRemovingUsage/");
}
@TestMetadata("checkConstants")
public void testCheckConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/checkConstants/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classInlineFunctionChanged/");
}
@TestMetadata("classObjectConstantChanged")
public void testClassObjectConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classObjectConstantChanged/");
}
@TestMetadata("classRecreated")
public void testClassRecreated() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classRecreated/");
}
@TestMetadata("classRemoved")
public void testClassRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classRemoved/");
}
@TestMetadata("classSignatureChanged")
public void testClassSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classSignatureChanged/");
}
@TestMetadata("classSignatureUnchanged")
public void testClassSignatureUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classSignatureUnchanged/");
}
@TestMetadata("companionConstantChanged")
public void testCompanionConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/companionConstantChanged/");
}
@TestMetadata("compilationErrorThenFixedOtherPackage")
public void testCompilationErrorThenFixedOtherPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedOtherPackage/");
}
@TestMetadata("compilationErrorThenFixedSamePackage")
public void testCompilationErrorThenFixedSamePackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedSamePackage/");
}
@TestMetadata("compilationErrorThenFixedWithPhantomPart")
public void testCompilationErrorThenFixedWithPhantomPart() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedWithPhantomPart/");
}
@TestMetadata("compilationErrorThenFixedWithPhantomPart2")
public void testCompilationErrorThenFixedWithPhantomPart2() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedWithPhantomPart2/");
}
@TestMetadata("compilationErrorThenFixedWithPhantomPart3")
public void testCompilationErrorThenFixedWithPhantomPart3() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedWithPhantomPart3/");
}
@TestMetadata("constantRemoved")
public void testConstantRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/constantRemoved/");
}
@TestMetadata("constantValueChanged")
public void testConstantValueChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/constantValueChanged/");
}
@TestMetadata("constantsUnchanged")
public void testConstantsUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/constantsUnchanged/");
}
@TestMetadata("defaultArgumentInConstructorAdded")
public void testDefaultArgumentInConstructorAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultArgumentInConstructorAdded/");
}
@TestMetadata("defaultArgumentInConstructorRemoved")
public void testDefaultArgumentInConstructorRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultArgumentInConstructorRemoved/");
}
@TestMetadata("defaultValueAdded")
public void testDefaultValueAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueAdded/");
}
@TestMetadata("defaultValueChanged")
public void testDefaultValueChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueChanged/");
}
@TestMetadata("defaultValueInConstructorChanged")
public void testDefaultValueInConstructorChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueInConstructorChanged/");
}
@TestMetadata("defaultValueInConstructorRemoved")
public void testDefaultValueInConstructorRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueInConstructorRemoved/");
}
@TestMetadata("defaultValueRemoved1")
public void testDefaultValueRemoved1() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueRemoved1/");
}
@TestMetadata("defaultValueRemoved2")
public void testDefaultValueRemoved2() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueRemoved2/");
}
@TestMetadata("delegatedPropertyInlineExtensionAccessor")
public void testDelegatedPropertyInlineExtensionAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/delegatedPropertyInlineExtensionAccessor/");
}
@TestMetadata("delegatedPropertyInlineMethodAccessor")
public void testDelegatedPropertyInlineMethodAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/delegatedPropertyInlineMethodAccessor/");
}
@TestMetadata("dependencyClassReferenced")
public void testDependencyClassReferenced() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/dependencyClassReferenced/");
}
@TestMetadata("fileWithConstantRemoved")
public void testFileWithConstantRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/fileWithConstantRemoved/");
}
@TestMetadata("fileWithInlineFunctionRemoved")
public void testFileWithInlineFunctionRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/fileWithInlineFunctionRemoved/");
}
@TestMetadata("filesExchangePackages")
public void testFilesExchangePackages() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/filesExchangePackages/");
}
@TestMetadata("funRedeclaration")
public void testFunRedeclaration() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/funRedeclaration/");
}
@TestMetadata("funVsConstructorOverloadConflict")
public void testFunVsConstructorOverloadConflict() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/funVsConstructorOverloadConflict/");
}
@TestMetadata("functionBecameInline")
public void testFunctionBecameInline() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionBecameInline/");
}
@TestMetadata("functionReferencingClass")
public void testFunctionReferencingClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
}
@TestMetadata("inlineFunctionBecomesNonInline")
public void testInlineFunctionBecomesNonInline() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionBecomesNonInline/");
}
@TestMetadata("inlineFunctionUsageAdded")
public void testInlineFunctionUsageAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionUsageAdded/");
}
@TestMetadata("inlineFunctionsCircularDependency")
public void testInlineFunctionsCircularDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionsCircularDependency/");
}
@TestMetadata("inlineFunctionsUnchanged")
public void testInlineFunctionsUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionsUnchanged/");
}
@TestMetadata("inlineLinesChanged")
public void testInlineLinesChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineLinesChanged/");
}
@TestMetadata("inlineModifiedWithUsage")
public void testInlineModifiedWithUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineModifiedWithUsage/");
}
@TestMetadata("inlinePrivateFunctionAdded")
public void testInlinePrivateFunctionAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlinePrivateFunctionAdded/");
}
@TestMetadata("inlinePropertyInClass")
public void testInlinePropertyInClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlinePropertyInClass/");
}
@TestMetadata("inlinePropertyOnTopLevel")
public void testInlinePropertyOnTopLevel() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlinePropertyOnTopLevel/");
}
@TestMetadata("inlineSuspendFunctionChanged")
public void testInlineSuspendFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineSuspendFunctionChanged/");
}
@TestMetadata("inlineTwoFunctionsOneChanged")
public void testInlineTwoFunctionsOneChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineTwoFunctionsOneChanged/");
}
@TestMetadata("inlineUsedWhereDeclared")
public void testInlineUsedWhereDeclared() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineUsedWhereDeclared/");
}
@TestMetadata("innerClassesFromSupertypes")
public void testInnerClassesFromSupertypes() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/innerClassesFromSupertypes/");
}
@TestMetadata("internalClassChanged")
public void testInternalClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalClassChanged/");
}
@TestMetadata("internalMemberInClassChanged")
public void testInternalMemberInClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalMemberInClassChanged/");
}
@TestMetadata("internalTypealias")
public void testInternalTypealias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalTypealias/");
}
@TestMetadata("internalTypealiasConstructor")
public void testInternalTypealiasConstructor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalTypealiasConstructor/");
}
@TestMetadata("internalTypealiasObject")
public void testInternalTypealiasObject() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalTypealiasObject/");
}
@TestMetadata("localClassChanged")
public void testLocalClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/localClassChanged/");
}
@TestMetadata("moveClass")
public void testMoveClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/moveClass/");
}
@TestMetadata("moveFileWithChangingPackage")
public void testMoveFileWithChangingPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/moveFileWithChangingPackage/");
}
@TestMetadata("moveFileWithoutChangingPackage")
public void testMoveFileWithoutChangingPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/moveFileWithoutChangingPackage/");
}
@TestMetadata("multiplePackagesModified")
public void testMultiplePackagesModified() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/multiplePackagesModified/");
}
@TestMetadata("objectConstantChanged")
public void testObjectConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/objectConstantChanged/");
}
@TestMetadata("ourClassReferenced")
public void testOurClassReferenced() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/ourClassReferenced/");
}
@TestMetadata("overloadInlined")
public void testOverloadInlined() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/overloadInlined/");
}
@TestMetadata("packageConstantChanged")
public void testPackageConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageConstantChanged/");
}
@TestMetadata("packageFileAdded")
public void testPackageFileAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileAdded/");
}
@TestMetadata("packageFileChangedPackage")
public void testPackageFileChangedPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileChangedPackage/");
}
@TestMetadata("packageFileChangedThenOtherRemoved")
public void testPackageFileChangedThenOtherRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileChangedThenOtherRemoved/");
}
@TestMetadata("packageFileRemoved")
public void testPackageFileRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileRemoved/");
}
@TestMetadata("packageFilesChangedInTurn")
public void testPackageFilesChangedInTurn() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFilesChangedInTurn/");
}
@TestMetadata("packageInlineFunctionAccessingField")
public void testPackageInlineFunctionAccessingField() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageInlineFunctionAccessingField/");
}
@TestMetadata("packageInlineFunctionFromOurPackage")
public void testPackageInlineFunctionFromOurPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageInlineFunctionFromOurPackage/");
}
@TestMetadata("packagePrivateOnlyChanged")
public void testPackagePrivateOnlyChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packagePrivateOnlyChanged/");
}
@TestMetadata("packageRecreated")
public void testPackageRecreated() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageRecreated/");
}
@TestMetadata("packageRecreatedAfterRenaming")
public void testPackageRecreatedAfterRenaming() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageRecreatedAfterRenaming/");
}
@TestMetadata("packageRemoved")
public void testPackageRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
}
@TestMetadata("parameterWithDefaultValueAdded")
public void testParameterWithDefaultValueAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
}
@TestMetadata("parameterWithDefaultValueRemoved")
public void testParameterWithDefaultValueRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
}
@TestMetadata("privateConstantsChanged")
public void testPrivateConstantsChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
}
@TestMetadata("privateMethodAdded")
public void testPrivateMethodAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateMethodAdded/");
}
@TestMetadata("privateMethodDeleted")
public void testPrivateMethodDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateMethodDeleted/");
}
@TestMetadata("privateMethodSignatureChanged")
public void testPrivateMethodSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateMethodSignatureChanged/");
}
@TestMetadata("privateSecondaryConstructorAdded")
public void testPrivateSecondaryConstructorAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateSecondaryConstructorAdded/");
}
@TestMetadata("privateSecondaryConstructorDeleted")
public void testPrivateSecondaryConstructorDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateSecondaryConstructorDeleted/");
}
@TestMetadata("privateValAccessorChanged")
public void testPrivateValAccessorChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValAccessorChanged/");
}
@TestMetadata("privateValAdded")
public void testPrivateValAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValAdded/");
}
@TestMetadata("privateValDeleted")
public void testPrivateValDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValDeleted/");
}
@TestMetadata("privateValSignatureChanged")
public void testPrivateValSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValSignatureChanged/");
}
@TestMetadata("privateVarAdded")
public void testPrivateVarAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateVarAdded/");
}
@TestMetadata("privateVarDeleted")
public void testPrivateVarDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateVarDeleted/");
}
@TestMetadata("privateVarSignatureChanged")
public void testPrivateVarSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateVarSignatureChanged/");
}
@TestMetadata("propertyRedeclaration")
public void testPropertyRedeclaration() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/propertyRedeclaration/");
}
@TestMetadata("publicPropertyWithPrivateSetter")
public void testPublicPropertyWithPrivateSetter() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/publicPropertyWithPrivateSetter/");
}
@TestMetadata("removeAndRestoreCompanion")
public void testRemoveAndRestoreCompanion() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanion/");
}
@TestMetadata("removeAndRestoreCompanionWithImplicitUsages")
public void testRemoveAndRestoreCompanionWithImplicitUsages() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanionWithImplicitUsages/");
}
@TestMetadata("removeClass")
public void testRemoveClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeClass/");
}
@TestMetadata("removeClassInDefaultPackage")
public void testRemoveClassInDefaultPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeClassInDefaultPackage/");
}
@TestMetadata("removeFileWithFunctionOverload")
public void testRemoveFileWithFunctionOverload() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeFileWithFunctionOverload/");
}
@TestMetadata("removeMemberTypeAlias")
public void testRemoveMemberTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeMemberTypeAlias/");
}
@TestMetadata("removeTopLevelTypeAlias")
public void testRemoveTopLevelTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeTopLevelTypeAlias/");
}
@TestMetadata("removeUnusedFile")
public void testRemoveUnusedFile() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeUnusedFile/");
}
@TestMetadata("renameClass")
public void testRenameClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameClass/");
}
@TestMetadata("renameFileWithClassesOnly")
public void testRenameFileWithClassesOnly() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameFileWithClassesOnly/");
}
@TestMetadata("renameFileWithFunctionOverload")
public void testRenameFileWithFunctionOverload() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameFileWithFunctionOverload/");
}
@TestMetadata("returnTypeChanged")
public void testReturnTypeChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
}
@TestMetadata("sealedClassesAddImplements")
public void testSealedClassesAddImplements() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesAddImplements/");
}
@TestMetadata("sealedClassesAddIndirectInheritor")
public void testSealedClassesAddIndirectInheritor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesAddIndirectInheritor/");
}
@TestMetadata("sealedClassesAddInheritor")
public void testSealedClassesAddInheritor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesAddInheritor/");
}
@TestMetadata("sealedClassesRemoveImplements")
public void testSealedClassesRemoveImplements() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveImplements/");
}
@TestMetadata("sealedClassesRemoveInheritor")
public void testSealedClassesRemoveInheritor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveInheritor/");
}
@TestMetadata("sealedClassesWhenExpression")
public void testSealedClassesWhenExpression() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesWhenExpression/");
}
@TestMetadata("sealedClassesWithExpectActual")
public void testSealedClassesWithExpectActual() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesWithExpectActual/");
}
@TestMetadata("secondaryConstructorInlined")
public void testSecondaryConstructorInlined() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
}
@TestMetadata("simpleClassDependency")
public void testSimpleClassDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/simpleClassDependency/");
}
@TestMetadata("soleFileChangesPackage")
public void testSoleFileChangesPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/soleFileChangesPackage/");
}
@TestMetadata("subpackage")
public void testSubpackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/subpackage/");
}
@TestMetadata("suspendWithStateMachine")
public void testSuspendWithStateMachine() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/suspendWithStateMachine/");
}
@TestMetadata("topLevelFunctionSameSignature")
public void testTopLevelFunctionSameSignature() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/topLevelFunctionSameSignature/");
}
@TestMetadata("topLevelMembersInTwoFiles")
public void testTopLevelMembersInTwoFiles() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/topLevelMembersInTwoFiles/");
}
@TestMetadata("topLevelPrivateValUsageAdded")
public void testTopLevelPrivateValUsageAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/topLevelPrivateValUsageAdded/");
}
@TestMetadata("traitClassObjectConstantChanged")
public void testTraitClassObjectConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/traitClassObjectConstantChanged/");
}
@TestMetadata("valAddCustomAccessor")
public void testValAddCustomAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/valAddCustomAccessor/");
}
@TestMetadata("valRemoveCustomAccessor")
public void testValRemoveCustomAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/valRemoveCustomAccessor/");
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/classHierarchyAffected")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClassHierarchyAffected extends AbstractIncrementalJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInClassHierarchyAffected() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/classHierarchyAffected"), Pattern.compile("^([^\\.]+)$"), null, false);
}
@TestMetadata("annotationFlagRemoved")
public void testAnnotationFlagRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/annotationFlagRemoved/");
}
@TestMetadata("annotationListChanged")
public void testAnnotationListChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/annotationListChanged/");
}
@TestMetadata("bridgeGenerated")
public void testBridgeGenerated() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/bridgeGenerated/");
}
@TestMetadata("classBecameFinal")
public void testClassBecameFinal() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classBecameFinal/");
}
@TestMetadata("classBecameInterface")
public void testClassBecameInterface() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classBecameInterface/");
}
@TestMetadata("classBecamePrivate")
public void testClassBecamePrivate() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classBecamePrivate/");
}
@TestMetadata("classMovedIntoOtherClass")
public void testClassMovedIntoOtherClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classMovedIntoOtherClass/");
}
@TestMetadata("classRemoved")
public void testClassRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classRemoved/");
}
@TestMetadata("classRemovedAndRestored")
public void testClassRemovedAndRestored() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classRemovedAndRestored/");
}
@TestMetadata("companionObjectInheritedMemberChanged")
public void testCompanionObjectInheritedMemberChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectInheritedMemberChanged/");
}
@TestMetadata("companionObjectMemberChanged")
public void testCompanionObjectMemberChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectMemberChanged/");
}
@TestMetadata("companionObjectNameChanged")
public void testCompanionObjectNameChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectNameChanged/");
}
@TestMetadata("companionObjectToSimpleObject")
public void testCompanionObjectToSimpleObject() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectToSimpleObject/");
}
@TestMetadata("constructorVisibilityChanged")
public void testConstructorVisibilityChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/constructorVisibilityChanged/");
}
@TestMetadata("enumEntryAdded")
public void testEnumEntryAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryAdded/");
}
@TestMetadata("enumEntryRemoved")
public void testEnumEntryRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryRemoved/");
}
@TestMetadata("enumMemberChanged")
public void testEnumMemberChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/enumMemberChanged/");
}
@TestMetadata("flagsAndMemberInDifferentClassesChanged")
public void testFlagsAndMemberInDifferentClassesChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/flagsAndMemberInDifferentClassesChanged/");
}
@TestMetadata("flagsAndMemberInSameClassChanged")
public void testFlagsAndMemberInSameClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/flagsAndMemberInSameClassChanged/");
}
@TestMetadata("implcitUpcast")
public void testImplcitUpcast() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/implcitUpcast/");
}
@TestMetadata("inferredTypeArgumentChanged")
public void testInferredTypeArgumentChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeArgumentChanged/");
}
@TestMetadata("inferredTypeChanged")
public void testInferredTypeChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
}
@TestMetadata("methodAdded")
public void testMethodAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodAdded/");
}
@TestMetadata("methodAnnotationAdded")
public void testMethodAnnotationAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodAnnotationAdded/");
}
@TestMetadata("methodNullabilityChanged")
public void testMethodNullabilityChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodNullabilityChanged/");
}
@TestMetadata("methodParameterWithDefaultValueAdded")
public void testMethodParameterWithDefaultValueAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodParameterWithDefaultValueAdded/");
}
@TestMetadata("methodRemoved")
public void testMethodRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodRemoved/");
}
@TestMetadata("overrideExplicit")
public void testOverrideExplicit() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/overrideExplicit/");
}
@TestMetadata("overrideImplicit")
public void testOverrideImplicit() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/overrideImplicit/");
}
@TestMetadata("propertyNullabilityChanged")
public void testPropertyNullabilityChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/propertyNullabilityChanged/");
}
@TestMetadata("sealedClassImplAdded")
public void testSealedClassImplAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/");
}
@TestMetadata("sealedClassIndirectImplAdded")
public void testSealedClassIndirectImplAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassIndirectImplAdded/");
}
@TestMetadata("sealedClassNestedImplAdded")
public void testSealedClassNestedImplAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassNestedImplAdded/");
}
@TestMetadata("secondaryConstructorAdded")
public void testSecondaryConstructorAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/secondaryConstructorAdded/");
}
@TestMetadata("starProjectionUpperBoundChanged")
public void testStarProjectionUpperBoundChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/starProjectionUpperBoundChanged/");
}
@TestMetadata("supertypesListChanged")
public void testSupertypesListChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/supertypesListChanged/");
}
@TestMetadata("typeParameterListChanged")
public void testTypeParameterListChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/typeParameterListChanged/");
}
@TestMetadata("varianceChanged")
public void testVarianceChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
}
@TestMetadata("withIntermediateBodiesChanged")
public void testWithIntermediateBodiesChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/js")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Js extends AbstractIncrementalJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInJs() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js"), Pattern.compile("^([^\\.]+)$"), null, true);
}
@TestMetadata("inlineFunctionLocalDeclarationChanges")
public void testInlineFunctionLocalDeclarationChanges() throws Exception {
runTest("jps/jps-plugin/testData/incremental/js/inlineFunctionLocalDeclarationChanges/");
}
@TestMetadata("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FriendsModuleDisabled extends AbstractIncrementalJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInFriendsModuleDisabled() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled"), Pattern.compile("^([^\\.]+)$"), null, true);
}
@TestMetadata("internalInlineFunctionIsChanged")
public void testInternalInlineFunctionIsChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled/internalInlineFunctionIsChanged/");
}
@TestMetadata("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled/internalInlineFunctionIsChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InternalInlineFunctionIsChanged extends AbstractIncrementalJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInternalInlineFunctionIsChanged() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled/internalInlineFunctionIsChanged"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/js/inlineFunctionLocalDeclarationChanges")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineFunctionLocalDeclarationChanges extends AbstractIncrementalJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInlineFunctionLocalDeclarationChanges() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js/inlineFunctionLocalDeclarationChanges"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
}
}
@@ -1,974 +0,0 @@
/*
* Copyright 2010-2023 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.incremental;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@RunWith(JUnit3RunnerWithInners.class)
public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
@TestMetadata("jps/jps-plugin/testData/incremental/pureKotlin")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class PureKotlin extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("accessingFunctionsViaPackagePart")
public void testAccessingFunctionsViaPackagePart() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/accessingFunctionsViaPackagePart/");
}
@TestMetadata("accessingPropertiesViaField")
public void testAccessingPropertiesViaField() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/accessingPropertiesViaField/");
}
@TestMetadata("addClass")
public void testAddClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addClass/");
}
@TestMetadata("addFileWithFunctionOverload")
public void testAddFileWithFunctionOverload() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addFileWithFunctionOverload/");
}
@TestMetadata("addMemberTypeAlias")
public void testAddMemberTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addMemberTypeAlias/");
}
@TestMetadata("addTopLevelTypeAlias")
public void testAddTopLevelTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addTopLevelTypeAlias/");
}
public void testAllFilesPresentInPureKotlin() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile(".*SinceK2"), false);
}
@TestMetadata("annotations")
public void testAnnotations() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/annotations/");
}
@TestMetadata("anonymousObjectChanged")
public void testAnonymousObjectChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/anonymousObjectChanged/");
}
@TestMetadata("changeTypeImplicitlyWithCircularDependency")
public void testChangeTypeImplicitlyWithCircularDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeTypeImplicitlyWithCircularDependency/");
}
@TestMetadata("changeWithRemovingUsage")
public void testChangeWithRemovingUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeWithRemovingUsage/");
}
@TestMetadata("checkConstants")
public void testCheckConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/checkConstants/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classInlineFunctionChanged/");
}
@TestMetadata("classObjectConstantChanged")
public void testClassObjectConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classObjectConstantChanged/");
}
@TestMetadata("classRecreated")
public void testClassRecreated() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classRecreated/");
}
@TestMetadata("classRemoved")
public void testClassRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classRemoved/");
}
@TestMetadata("classSignatureChanged")
public void testClassSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classSignatureChanged/");
}
@TestMetadata("classSignatureUnchanged")
public void testClassSignatureUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classSignatureUnchanged/");
}
@TestMetadata("companionConstantChanged")
public void testCompanionConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/companionConstantChanged/");
}
@TestMetadata("compilationErrorThenFixedOtherPackage")
public void testCompilationErrorThenFixedOtherPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedOtherPackage/");
}
@TestMetadata("compilationErrorThenFixedSamePackage")
public void testCompilationErrorThenFixedSamePackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedSamePackage/");
}
@TestMetadata("compilationErrorThenFixedWithPhantomPart")
public void testCompilationErrorThenFixedWithPhantomPart() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedWithPhantomPart/");
}
@TestMetadata("compilationErrorThenFixedWithPhantomPart2")
public void testCompilationErrorThenFixedWithPhantomPart2() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedWithPhantomPart2/");
}
@TestMetadata("compilationErrorThenFixedWithPhantomPart3")
public void testCompilationErrorThenFixedWithPhantomPart3() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedWithPhantomPart3/");
}
@TestMetadata("constantRemoved")
public void testConstantRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/constantRemoved/");
}
@TestMetadata("constantValueChanged")
public void testConstantValueChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/constantValueChanged/");
}
@TestMetadata("constantsUnchanged")
public void testConstantsUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/constantsUnchanged/");
}
@TestMetadata("defaultArgumentInConstructorAdded")
public void testDefaultArgumentInConstructorAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultArgumentInConstructorAdded/");
}
@TestMetadata("defaultArgumentInConstructorRemoved")
public void testDefaultArgumentInConstructorRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultArgumentInConstructorRemoved/");
}
@TestMetadata("defaultValueAdded")
public void testDefaultValueAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueAdded/");
}
@TestMetadata("defaultValueChanged")
public void testDefaultValueChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueChanged/");
}
@TestMetadata("defaultValueInConstructorChanged")
public void testDefaultValueInConstructorChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueInConstructorChanged/");
}
@TestMetadata("defaultValueInConstructorRemoved")
public void testDefaultValueInConstructorRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueInConstructorRemoved/");
}
@TestMetadata("defaultValueRemoved1")
public void testDefaultValueRemoved1() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueRemoved1/");
}
@TestMetadata("defaultValueRemoved2")
public void testDefaultValueRemoved2() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/defaultValueRemoved2/");
}
@TestMetadata("delegatedPropertyInlineExtensionAccessor")
public void testDelegatedPropertyInlineExtensionAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/delegatedPropertyInlineExtensionAccessor/");
}
@TestMetadata("delegatedPropertyInlineMethodAccessor")
public void testDelegatedPropertyInlineMethodAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/delegatedPropertyInlineMethodAccessor/");
}
@TestMetadata("dependencyClassReferenced")
public void testDependencyClassReferenced() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/dependencyClassReferenced/");
}
@TestMetadata("fileWithConstantRemoved")
public void testFileWithConstantRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/fileWithConstantRemoved/");
}
@TestMetadata("fileWithInlineFunctionRemoved")
public void testFileWithInlineFunctionRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/fileWithInlineFunctionRemoved/");
}
@TestMetadata("filesExchangePackages")
public void testFilesExchangePackages() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/filesExchangePackages/");
}
@TestMetadata("funRedeclaration")
public void testFunRedeclaration() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/funRedeclaration/");
}
@TestMetadata("funVsConstructorOverloadConflict")
public void testFunVsConstructorOverloadConflict() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/funVsConstructorOverloadConflict/");
}
@TestMetadata("functionBecameInline")
public void testFunctionBecameInline() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionBecameInline/");
}
@TestMetadata("functionReferencingClass")
public void testFunctionReferencingClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/functionReferencingClass/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/independentClasses/");
}
@TestMetadata("inlineFunctionBecomesNonInline")
public void testInlineFunctionBecomesNonInline() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionBecomesNonInline/");
}
@TestMetadata("inlineFunctionUsageAdded")
public void testInlineFunctionUsageAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionUsageAdded/");
}
@TestMetadata("inlineFunctionsCircularDependency")
public void testInlineFunctionsCircularDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionsCircularDependency/");
}
@TestMetadata("inlineFunctionsUnchanged")
public void testInlineFunctionsUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineFunctionsUnchanged/");
}
@TestMetadata("inlineLinesChanged")
public void testInlineLinesChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineLinesChanged/");
}
@TestMetadata("inlineModifiedWithUsage")
public void testInlineModifiedWithUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineModifiedWithUsage/");
}
@TestMetadata("inlinePrivateFunctionAdded")
public void testInlinePrivateFunctionAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlinePrivateFunctionAdded/");
}
@TestMetadata("inlinePropertyInClass")
public void testInlinePropertyInClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlinePropertyInClass/");
}
@TestMetadata("inlinePropertyOnTopLevel")
public void testInlinePropertyOnTopLevel() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlinePropertyOnTopLevel/");
}
@TestMetadata("inlineSuspendFunctionChanged")
public void testInlineSuspendFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineSuspendFunctionChanged/");
}
@TestMetadata("inlineTwoFunctionsOneChanged")
public void testInlineTwoFunctionsOneChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineTwoFunctionsOneChanged/");
}
@TestMetadata("inlineUsedWhereDeclared")
public void testInlineUsedWhereDeclared() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/inlineUsedWhereDeclared/");
}
@TestMetadata("innerClassesFromSupertypes")
public void testInnerClassesFromSupertypes() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/innerClassesFromSupertypes/");
}
@TestMetadata("internalClassChanged")
public void testInternalClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalClassChanged/");
}
@TestMetadata("internalMemberInClassChanged")
public void testInternalMemberInClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalMemberInClassChanged/");
}
@TestMetadata("internalTypealias")
public void testInternalTypealias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalTypealias/");
}
@TestMetadata("internalTypealiasConstructor")
public void testInternalTypealiasConstructor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalTypealiasConstructor/");
}
@TestMetadata("internalTypealiasObject")
public void testInternalTypealiasObject() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/internalTypealiasObject/");
}
@TestMetadata("localClassChanged")
public void testLocalClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/localClassChanged/");
}
@TestMetadata("moveClass")
public void testMoveClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/moveClass/");
}
@TestMetadata("moveFileWithChangingPackage")
public void testMoveFileWithChangingPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/moveFileWithChangingPackage/");
}
@TestMetadata("moveFileWithoutChangingPackage")
public void testMoveFileWithoutChangingPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/moveFileWithoutChangingPackage/");
}
@TestMetadata("multiplePackagesModified")
public void testMultiplePackagesModified() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/multiplePackagesModified/");
}
@TestMetadata("objectConstantChanged")
public void testObjectConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/objectConstantChanged/");
}
@TestMetadata("ourClassReferenced")
public void testOurClassReferenced() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/ourClassReferenced/");
}
@TestMetadata("overloadInlined")
public void testOverloadInlined() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/overloadInlined/");
}
@TestMetadata("packageConstantChanged")
public void testPackageConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageConstantChanged/");
}
@TestMetadata("packageFileAdded")
public void testPackageFileAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileAdded/");
}
@TestMetadata("packageFileChangedPackage")
public void testPackageFileChangedPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileChangedPackage/");
}
@TestMetadata("packageFileChangedThenOtherRemoved")
public void testPackageFileChangedThenOtherRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileChangedThenOtherRemoved/");
}
@TestMetadata("packageFileRemoved")
public void testPackageFileRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFileRemoved/");
}
@TestMetadata("packageFilesChangedInTurn")
public void testPackageFilesChangedInTurn() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageFilesChangedInTurn/");
}
@TestMetadata("packageInlineFunctionAccessingField")
public void testPackageInlineFunctionAccessingField() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageInlineFunctionAccessingField/");
}
@TestMetadata("packageInlineFunctionFromOurPackage")
public void testPackageInlineFunctionFromOurPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageInlineFunctionFromOurPackage/");
}
@TestMetadata("packagePrivateOnlyChanged")
public void testPackagePrivateOnlyChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packagePrivateOnlyChanged/");
}
@TestMetadata("packageRecreated")
public void testPackageRecreated() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageRecreated/");
}
@TestMetadata("packageRecreatedAfterRenaming")
public void testPackageRecreatedAfterRenaming() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageRecreatedAfterRenaming/");
}
@TestMetadata("packageRemoved")
public void testPackageRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/packageRemoved/");
}
@TestMetadata("parameterWithDefaultValueAdded")
public void testParameterWithDefaultValueAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueAdded/");
}
@TestMetadata("parameterWithDefaultValueRemoved")
public void testParameterWithDefaultValueRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/parameterWithDefaultValueRemoved/");
}
@TestMetadata("privateConstantsChanged")
public void testPrivateConstantsChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateConstantsChanged/");
}
@TestMetadata("privateMethodAdded")
public void testPrivateMethodAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateMethodAdded/");
}
@TestMetadata("privateMethodDeleted")
public void testPrivateMethodDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateMethodDeleted/");
}
@TestMetadata("privateMethodSignatureChanged")
public void testPrivateMethodSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateMethodSignatureChanged/");
}
@TestMetadata("privateSecondaryConstructorAdded")
public void testPrivateSecondaryConstructorAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateSecondaryConstructorAdded/");
}
@TestMetadata("privateSecondaryConstructorDeleted")
public void testPrivateSecondaryConstructorDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateSecondaryConstructorDeleted/");
}
@TestMetadata("privateValAccessorChanged")
public void testPrivateValAccessorChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValAccessorChanged/");
}
@TestMetadata("privateValAdded")
public void testPrivateValAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValAdded/");
}
@TestMetadata("privateValDeleted")
public void testPrivateValDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValDeleted/");
}
@TestMetadata("privateValSignatureChanged")
public void testPrivateValSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateValSignatureChanged/");
}
@TestMetadata("privateVarAdded")
public void testPrivateVarAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateVarAdded/");
}
@TestMetadata("privateVarDeleted")
public void testPrivateVarDeleted() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateVarDeleted/");
}
@TestMetadata("privateVarSignatureChanged")
public void testPrivateVarSignatureChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/privateVarSignatureChanged/");
}
@TestMetadata("propertyRedeclaration")
public void testPropertyRedeclaration() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/propertyRedeclaration/");
}
@TestMetadata("publicPropertyWithPrivateSetter")
public void testPublicPropertyWithPrivateSetter() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/publicPropertyWithPrivateSetter/");
}
@TestMetadata("removeAndRestoreCompanion")
public void testRemoveAndRestoreCompanion() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanion/");
}
@TestMetadata("removeAndRestoreCompanionWithImplicitUsages")
public void testRemoveAndRestoreCompanionWithImplicitUsages() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanionWithImplicitUsages/");
}
@TestMetadata("removeClass")
public void testRemoveClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeClass/");
}
@TestMetadata("removeClassInDefaultPackage")
public void testRemoveClassInDefaultPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeClassInDefaultPackage/");
}
@TestMetadata("removeFileWithFunctionOverload")
public void testRemoveFileWithFunctionOverload() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeFileWithFunctionOverload/");
}
@TestMetadata("removeMemberTypeAlias")
public void testRemoveMemberTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeMemberTypeAlias/");
}
@TestMetadata("removeTopLevelTypeAlias")
public void testRemoveTopLevelTypeAlias() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeTopLevelTypeAlias/");
}
@TestMetadata("removeUnusedFile")
public void testRemoveUnusedFile() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/removeUnusedFile/");
}
@TestMetadata("renameClass")
public void testRenameClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameClass/");
}
@TestMetadata("renameFileWithClassesOnly")
public void testRenameFileWithClassesOnly() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameFileWithClassesOnly/");
}
@TestMetadata("renameFileWithFunctionOverload")
public void testRenameFileWithFunctionOverload() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/renameFileWithFunctionOverload/");
}
@TestMetadata("returnTypeChanged")
public void testReturnTypeChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
}
@TestMetadata("sealedClassesAddImplements")
public void testSealedClassesAddImplements() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesAddImplements/");
}
@TestMetadata("sealedClassesAddIndirectInheritor")
public void testSealedClassesAddIndirectInheritor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesAddIndirectInheritor/");
}
@TestMetadata("sealedClassesAddInheritor")
public void testSealedClassesAddInheritor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesAddInheritor/");
}
@TestMetadata("sealedClassesRemoveImplements")
public void testSealedClassesRemoveImplements() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveImplements/");
}
@TestMetadata("sealedClassesRemoveInheritor")
public void testSealedClassesRemoveInheritor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveInheritor/");
}
@TestMetadata("sealedClassesWhenExpression")
public void testSealedClassesWhenExpression() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesWhenExpression/");
}
@TestMetadata("sealedClassesWithExpectActual")
public void testSealedClassesWithExpectActual() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sealedClassesWithExpectActual/");
}
@TestMetadata("secondaryConstructorInlined")
public void testSecondaryConstructorInlined() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
}
@TestMetadata("simpleClassDependency")
public void testSimpleClassDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/simpleClassDependency/");
}
@TestMetadata("soleFileChangesPackage")
public void testSoleFileChangesPackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/soleFileChangesPackage/");
}
@TestMetadata("subpackage")
public void testSubpackage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/subpackage/");
}
@TestMetadata("suspendWithStateMachine")
public void testSuspendWithStateMachine() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/suspendWithStateMachine/");
}
@TestMetadata("topLevelFunctionSameSignature")
public void testTopLevelFunctionSameSignature() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/topLevelFunctionSameSignature/");
}
@TestMetadata("topLevelMembersInTwoFiles")
public void testTopLevelMembersInTwoFiles() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/topLevelMembersInTwoFiles/");
}
@TestMetadata("topLevelPrivateValUsageAdded")
public void testTopLevelPrivateValUsageAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/topLevelPrivateValUsageAdded/");
}
@TestMetadata("traitClassObjectConstantChanged")
public void testTraitClassObjectConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/traitClassObjectConstantChanged/");
}
@TestMetadata("valAddCustomAccessor")
public void testValAddCustomAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/valAddCustomAccessor/");
}
@TestMetadata("valRemoveCustomAccessor")
public void testValRemoveCustomAccessor() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/valRemoveCustomAccessor/");
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/classHierarchyAffected")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClassHierarchyAffected extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInClassHierarchyAffected() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/classHierarchyAffected"), Pattern.compile("^([^\\.]+)$"), null, false);
}
@TestMetadata("annotationFlagRemoved")
public void testAnnotationFlagRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/annotationFlagRemoved/");
}
@TestMetadata("annotationListChanged")
public void testAnnotationListChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/annotationListChanged/");
}
@TestMetadata("bridgeGenerated")
public void testBridgeGenerated() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/bridgeGenerated/");
}
@TestMetadata("classBecameFinal")
public void testClassBecameFinal() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classBecameFinal/");
}
@TestMetadata("classBecameInterface")
public void testClassBecameInterface() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classBecameInterface/");
}
@TestMetadata("classBecamePrivate")
public void testClassBecamePrivate() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classBecamePrivate/");
}
@TestMetadata("classMovedIntoOtherClass")
public void testClassMovedIntoOtherClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classMovedIntoOtherClass/");
}
@TestMetadata("classRemoved")
public void testClassRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classRemoved/");
}
@TestMetadata("classRemovedAndRestored")
public void testClassRemovedAndRestored() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/classRemovedAndRestored/");
}
@TestMetadata("companionObjectInheritedMemberChanged")
public void testCompanionObjectInheritedMemberChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectInheritedMemberChanged/");
}
@TestMetadata("companionObjectMemberChanged")
public void testCompanionObjectMemberChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectMemberChanged/");
}
@TestMetadata("companionObjectNameChanged")
public void testCompanionObjectNameChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectNameChanged/");
}
@TestMetadata("companionObjectToSimpleObject")
public void testCompanionObjectToSimpleObject() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/companionObjectToSimpleObject/");
}
@TestMetadata("constructorVisibilityChanged")
public void testConstructorVisibilityChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/constructorVisibilityChanged/");
}
@TestMetadata("enumEntryAdded")
public void testEnumEntryAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryAdded/");
}
@TestMetadata("enumEntryRemoved")
public void testEnumEntryRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryRemoved/");
}
@TestMetadata("enumMemberChanged")
public void testEnumMemberChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/enumMemberChanged/");
}
@TestMetadata("flagsAndMemberInDifferentClassesChanged")
public void testFlagsAndMemberInDifferentClassesChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/flagsAndMemberInDifferentClassesChanged/");
}
@TestMetadata("flagsAndMemberInSameClassChanged")
public void testFlagsAndMemberInSameClassChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/flagsAndMemberInSameClassChanged/");
}
@TestMetadata("implcitUpcast")
public void testImplcitUpcast() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/implcitUpcast/");
}
@TestMetadata("inferredTypeArgumentChanged")
public void testInferredTypeArgumentChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeArgumentChanged/");
}
@TestMetadata("inferredTypeChanged")
public void testInferredTypeChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
}
@TestMetadata("methodAdded")
public void testMethodAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodAdded/");
}
@TestMetadata("methodAnnotationAdded")
public void testMethodAnnotationAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodAnnotationAdded/");
}
@TestMetadata("methodNullabilityChanged")
public void testMethodNullabilityChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodNullabilityChanged/");
}
@TestMetadata("methodParameterWithDefaultValueAdded")
public void testMethodParameterWithDefaultValueAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodParameterWithDefaultValueAdded/");
}
@TestMetadata("methodRemoved")
public void testMethodRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/methodRemoved/");
}
@TestMetadata("overrideExplicit")
public void testOverrideExplicit() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/overrideExplicit/");
}
@TestMetadata("overrideImplicit")
public void testOverrideImplicit() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/overrideImplicit/");
}
@TestMetadata("propertyNullabilityChanged")
public void testPropertyNullabilityChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/propertyNullabilityChanged/");
}
@TestMetadata("sealedClassImplAdded")
public void testSealedClassImplAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/");
}
@TestMetadata("sealedClassIndirectImplAdded")
public void testSealedClassIndirectImplAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassIndirectImplAdded/");
}
@TestMetadata("sealedClassNestedImplAdded")
public void testSealedClassNestedImplAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassNestedImplAdded/");
}
@TestMetadata("secondaryConstructorAdded")
public void testSecondaryConstructorAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/secondaryConstructorAdded/");
}
@TestMetadata("starProjectionUpperBoundChanged")
public void testStarProjectionUpperBoundChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/starProjectionUpperBoundChanged/");
}
@TestMetadata("supertypesListChanged")
public void testSupertypesListChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/supertypesListChanged/");
}
@TestMetadata("typeParameterListChanged")
public void testTypeParameterListChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/typeParameterListChanged/");
}
@TestMetadata("varianceChanged")
public void testVarianceChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/varianceChanged/");
}
@TestMetadata("withIntermediateBodiesChanged")
public void testWithIntermediateBodiesChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/classHierarchyAffected/withIntermediateBodiesChanged/");
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/js")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Js extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInJs() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js"), Pattern.compile("^([^\\.]+)$"), null, true);
}
@TestMetadata("inlineFunctionLocalDeclarationChanges")
public void testInlineFunctionLocalDeclarationChanges() throws Exception {
runTest("jps/jps-plugin/testData/incremental/js/inlineFunctionLocalDeclarationChanges/");
}
@TestMetadata("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FriendsModuleDisabled extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInFriendsModuleDisabled() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled"), Pattern.compile("^([^\\.]+)$"), null, true);
}
@TestMetadata("internalInlineFunctionIsChanged")
public void testInternalInlineFunctionIsChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled/internalInlineFunctionIsChanged/");
}
@TestMetadata("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled/internalInlineFunctionIsChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InternalInlineFunctionIsChanged extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInternalInlineFunctionIsChanged() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js/friendsModuleDisabled/internalInlineFunctionIsChanged"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/js/inlineFunctionLocalDeclarationChanges")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineFunctionLocalDeclarationChanges extends AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInlineFunctionLocalDeclarationChanges() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/js/inlineFunctionLocalDeclarationChanges"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
}
}
@@ -1,463 +0,0 @@
/*
* Copyright 2010-2023 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.incremental;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class IncrementalMultiModuleJsCompilerRunnerTestGenerated extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInCommon() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common"), Pattern.compile("^([^\\.]+)$"), null, true);
}
@TestMetadata("classAdded")
public void testClassAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/classAdded/");
}
@TestMetadata("classRemoved")
public void testClassRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/classRemoved/");
}
@TestMetadata("constantValueChanged")
public void testConstantValueChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/constantValueChanged/");
}
@TestMetadata("copyFileToAnotherModule")
public void testCopyFileToAnotherModule() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/copyFileToAnotherModule/");
}
@TestMetadata("defaultArgumentInConstructorRemoved")
public void testDefaultArgumentInConstructorRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/defaultArgumentInConstructorRemoved/");
}
@TestMetadata("defaultParameterAdded")
public void testDefaultParameterAdded() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterAdded/");
}
@TestMetadata("defaultParameterAddedForTopLevelFun")
public void testDefaultParameterAddedForTopLevelFun() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterAddedForTopLevelFun/");
}
@TestMetadata("defaultParameterRemoved")
public void testDefaultParameterRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterRemoved/");
}
@TestMetadata("defaultParameterRemovedForTopLevelFun")
public void testDefaultParameterRemovedForTopLevelFun() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterRemovedForTopLevelFun/");
}
@TestMetadata("defaultValueInConstructorRemoved")
public void testDefaultValueInConstructorRemoved() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/defaultValueInConstructorRemoved/");
}
@TestMetadata("duplicatedClass")
public void testDuplicatedClass() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/duplicatedClass/");
}
@TestMetadata("exportedDependency")
public void testExportedDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency/");
}
@TestMetadata("functionFromDifferentPackageChanged")
public void testFunctionFromDifferentPackageChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/functionFromDifferentPackageChanged/");
}
@TestMetadata("inlineFunctionInlined")
public void testInlineFunctionInlined() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/inlineFunctionInlined/");
}
@TestMetadata("inlineFunctionTwoPackageParts")
public void testInlineFunctionTwoPackageParts() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/inlineFunctionTwoPackageParts/");
}
@TestMetadata("moveFileToAnotherModule")
public void testMoveFileToAnotherModule() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/moveFileToAnotherModule/");
}
@TestMetadata("simple")
public void testSimple() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/simple/");
}
@TestMetadata("simpleDependency")
public void testSimpleDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependency/");
}
@TestMetadata("simpleDependencyErrorOnAccessToInternal1")
public void testSimpleDependencyErrorOnAccessToInternal1() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyErrorOnAccessToInternal1/");
}
@TestMetadata("simpleDependencyErrorOnAccessToInternal2")
public void testSimpleDependencyErrorOnAccessToInternal2() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyErrorOnAccessToInternal2/");
}
@TestMetadata("simpleDependencyUnchanged")
public void testSimpleDependencyUnchanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyUnchanged/");
}
@TestMetadata("transitiveDependency")
public void testTransitiveDependency() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/transitiveDependency/");
}
@TestMetadata("transitiveInlining")
public void testTransitiveInlining() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/transitiveInlining/");
}
@TestMetadata("twoDependants")
public void testTwoDependants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/multiModule/common/twoDependants/");
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/classAdded")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClassAdded extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInClassAdded() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/classAdded"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/classRemoved")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ClassRemoved extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInClassRemoved() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/classRemoved"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/constantValueChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ConstantValueChanged extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInConstantValueChanged() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/constantValueChanged"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/copyFileToAnotherModule")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class CopyFileToAnotherModule extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInCopyFileToAnotherModule() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/copyFileToAnotherModule"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/defaultArgumentInConstructorRemoved")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultArgumentInConstructorRemoved extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDefaultArgumentInConstructorRemoved() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/defaultArgumentInConstructorRemoved"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterAdded")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultParameterAdded extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDefaultParameterAdded() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterAdded"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterAddedForTopLevelFun")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultParameterAddedForTopLevelFun extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDefaultParameterAddedForTopLevelFun() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterAddedForTopLevelFun"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterRemoved")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultParameterRemoved extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDefaultParameterRemoved() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterRemoved"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterRemovedForTopLevelFun")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultParameterRemovedForTopLevelFun extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDefaultParameterRemovedForTopLevelFun() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/defaultParameterRemovedForTopLevelFun"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/defaultValueInConstructorRemoved")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultValueInConstructorRemoved extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDefaultValueInConstructorRemoved() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/defaultValueInConstructorRemoved"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/duplicatedClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DuplicatedClass extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDuplicatedClass() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/duplicatedClass"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ExportedDependency extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInExportedDependency() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/functionFromDifferentPackageChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class FunctionFromDifferentPackageChanged extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInFunctionFromDifferentPackageChanged() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/functionFromDifferentPackageChanged"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/inlineFunctionInlined")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineFunctionInlined extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInlineFunctionInlined() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/inlineFunctionInlined"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/inlineFunctionTwoPackageParts")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InlineFunctionTwoPackageParts extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInlineFunctionTwoPackageParts() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/inlineFunctionTwoPackageParts"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/moveFileToAnotherModule")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MoveFileToAnotherModule extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInMoveFileToAnotherModule() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/moveFileToAnotherModule"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/simple")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Simple extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInSimple() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/simple"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependency")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SimpleDependency extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInSimpleDependency() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependency"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyErrorOnAccessToInternal1")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SimpleDependencyErrorOnAccessToInternal1 extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInSimpleDependencyErrorOnAccessToInternal1() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyErrorOnAccessToInternal1"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyErrorOnAccessToInternal2")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SimpleDependencyErrorOnAccessToInternal2 extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInSimpleDependencyErrorOnAccessToInternal2() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyErrorOnAccessToInternal2"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyUnchanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SimpleDependencyUnchanged extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInSimpleDependencyUnchanged() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/simpleDependencyUnchanged"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/transitiveDependency")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TransitiveDependency extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInTransitiveDependency() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/transitiveDependency"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/transitiveInlining")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TransitiveInlining extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInTransitiveInlining() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/transitiveInlining"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps/jps-plugin/testData/incremental/multiModule/common/twoDependants")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class TwoDependants extends AbstractIncrementalMultiModuleJsCompilerRunnerTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInTwoDependants() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/multiModule/common/twoDependants"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
}
@@ -95,12 +95,6 @@ fun main(args: Array<String>) {
)
)
testClass<AbstractIncrementalJsCompilerRunnerTest> {
model("incremental/pureKotlin", extension = null, recursive = false, excludedPattern = ".*SinceK2")
model("incremental/classHierarchyAffected", extension = null, recursive = false)
model("incremental/js", extension = null, excludeParentDirs = true)
}
testClass<AbstractIncrementalJsKlibCompilerRunnerTest>() {
// IC of sealed interfaces are not supported in JS
model("incremental/pureKotlin", extension = null, recursive = false, excludedPattern = "(^sealed.*)|(.*SinceK2)")
@@ -108,20 +102,10 @@ fun main(args: Array<String>) {
model("incremental/js", extension = null, excludeParentDirs = true)
}
testClass<AbstractIncrementalMultiModuleJsCompilerRunnerTest> {
model("incremental/multiModule/common", extension = null, excludeParentDirs = true)
}
testClass<AbstractIncrementalMultiModuleJsKlibCompilerRunnerTest> {
model("incremental/multiModule/common", extension = null, excludeParentDirs = true)
}
testClass<AbstractIncrementalJsCompilerRunnerWithMetadataOnlyTest> {
model("incremental/pureKotlin", extension = null, recursive = false, excludedPattern = ".*SinceK2")
model("incremental/classHierarchyAffected", extension = null, recursive = false)
model("incremental/js", extension = null, excludeParentDirs = true)
}
testClass<AbstractIncrementalJsKlibCompilerWithScopeExpansionRunnerTest> {
// IC of sealed interfaces are not supported in JS
model("incremental/pureKotlin", extension = null, recursive = false, excludedPattern = "^sealed.*")