fix testdata: accept dependency with specified scope

This commit is contained in:
Anna.Kozlova
2018-01-15 10:24:57 +01:00
parent af03dee866
commit 9a4239100b
@@ -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);