mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix testdata: accept dependency with specified scope
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ public class MavenProjectModelModifierTest extends MavenDomWithIndicesTestCase {
|
||||
String pomText = PsiManager.getInstance(myProject).findFile(pom).getText();
|
||||
Pattern
|
||||
pattern = Pattern.compile("(?s).*<dependency>\\s*<groupId>" + groupId + "</groupId>\\s*<artifactId>" +
|
||||
artifactId + "</artifactId>\\s*<version>(.*)</version>\\s*</dependency>.*");
|
||||
artifactId + "</artifactId>\\s*<version>(.*)</version>\\s*<scope>(.*)</scope>\\s*</dependency>.*");
|
||||
Matcher matcher = pattern.matcher(pomText);
|
||||
assertTrue(matcher.matches());
|
||||
return matcher.group(1);
|
||||
|
||||
Reference in New Issue
Block a user