summaryrefslogtreecommitdiff
path: root/plugins/kotlin/jps/jps-plugin/tests/test/org/jetbrains/kotlin/jps/build/IncrementalCustomTests.kt
blob: b4bd30db3d074d74adab464e7aedc5b91d9298ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.

package org.jetbrains.kotlin.jps.build

import org.jetbrains.kotlin.incremental.testingUtils.Modification
import org.jetbrains.kotlin.test.KotlinRoot

class IncrementalRenameModuleTest : AbstractIncrementalJpsTest() {
    fun testRenameModule() {
        doTest(KotlinRoot.DIR.path + "/jps/jps-plugin/tests/testData/incremental/custom/renameModule/")
    }

    override fun performAdditionalModifications(modifications: List<Modification>) {
        projectDescriptor.project.modules.forEach { it.name += "Renamed" }
    }
}