diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/DependenciesImportingTest.kt b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/DependenciesImportingTest.kt
index 0a16455aa34f..dfa701c0ed45 100644
--- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/DependenciesImportingTest.kt
+++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/DependenciesImportingTest.kt
@@ -43,9 +43,9 @@ class DependenciesImportingTest : MavenMultiVersionImportingTestCase() {
assertModules("project")
assertModuleLibDep("project", "Maven: junit:junit:4.0",
- "jar://" + repositoryPath + "/junit/junit/4.0/junit-4.0.jar!/",
- "jar://" + repositoryPath + "/junit/junit/4.0/junit-4.0-sources.jar!/",
- "jar://" + repositoryPath + "/junit/junit/4.0/junit-4.0-javadoc.jar!/")
+ "jar://$repositoryPath/junit/junit/4.0/junit-4.0.jar!/",
+ "jar://$repositoryPath/junit/junit/4.0/junit-4.0-sources.jar!/",
+ "jar://$repositoryPath/junit/junit/4.0/junit-4.0-javadoc.jar!/")
assertProjectLibraryCoordinates("Maven: junit:junit:4.0", "junit", "junit", "4.0")
}
@@ -978,6 +978,59 @@ class DependenciesImportingTest : MavenMultiVersionImportingTestCase() {
assertModuleLibDep("project", "Maven: xml-apis:xml-apis:1.0.b2")
}
+ @Test
+ fun testIncrementalSyncTransitiveLibraryDependencyManagement() = runBlocking {
+ importProjectAsync("""
+ test
+ project
+ 1
+
+
+
+ asm
+ asm
+ 3.3.0
+
+
+
+
+
+ asm
+ asm-attrs
+ 2.2.1
+
+
+ """.trimIndent())
+
+ assertModules("project")
+ assertModuleLibDeps("project", "Maven: asm:asm-attrs:2.2.1", "Maven: asm:asm:3.3.0")
+
+ updateProjectPom("""
+ test
+ project
+ 1
+
+
+
+ asm
+ asm
+ 3.3.1
+
+
+
+
+
+ asm
+ asm-attrs
+ 2.2.1
+
+
+ """.trimIndent())
+ updateAllProjects()
+
+ assertModuleLibDeps("project", "Maven: asm:asm-attrs:2.2.1", "Maven: asm:asm:3.3.1")
+ }
+
@Test
fun testExclusionOfTransitiveDependencies() = runBlocking {
createProjectPom("""
@@ -1469,7 +1522,7 @@ class DependenciesImportingTest : MavenMultiVersionImportingTestCase() {
assertProjectLibraries("Maven: junit:junit:4.0")
assertModuleLibDeps("project", "Maven: junit:junit:4.0")
- importProjectAsync()
+ updateAllProjects()
assertProjectLibraries("Maven: junit:junit:4.0")
assertModuleLibDeps("project", "Maven: junit:junit:4.0")