From 633c3db1ce9a761d9080431cb213405e24224101 Mon Sep 17 00:00:00 2001 From: Dmitry Kichinsky Date: Tue, 15 Oct 2024 22:07:31 +0200 Subject: [PATCH] [maven] IDEA-359629 test resolve plugins in projects with packaging "bundle" GitOrigin-RevId: c208d411db66453a7a8389ddf9fe5e6c045b4bcd --- .../importing/MavenPluginResolutionTest.kt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/MavenPluginResolutionTest.kt diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/MavenPluginResolutionTest.kt b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/MavenPluginResolutionTest.kt new file mode 100644 index 000000000000..d93e921d3c7c --- /dev/null +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/MavenPluginResolutionTest.kt @@ -0,0 +1,30 @@ +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package org.jetbrains.idea.maven.importing + +import com.intellij.maven.testFramework.MavenMultiVersionImportingTestCase +import kotlinx.coroutines.runBlocking +import org.junit.Test + +class MavenPluginResolutionTest : MavenMultiVersionImportingTestCase() { + @Test + fun `test resolve bundle packaging plugin versions`() = runBlocking { + importProjectAsync(""" + test + project + 1 + bundle + + + + true + org.apache.felix + maven-bundle-plugin + 5.1.8 + + + + """.trimIndent()) + assertEquals(1, projectsTree.projects.size) + assertEmpty(projectsTree.projects.first().problems) + } +} \ No newline at end of file