You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2018/07/25 20:55:37 UTC

[GitHub] KathrynN commented on a change in pull request #175: [MNG-6450] - Allow importing a POM with a classifier

KathrynN commented on a change in pull request #175: [MNG-6450] - Allow importing a POM with a classifier
URL: https://github.com/apache/maven/pull/175#discussion_r205259444
 
 

 ##########
 File path: maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java
 ##########
 @@ -607,15 +607,12 @@ public void testBadImportScopeType()
                         "'dependencyManagement.dependencies.dependency.type' for test:a:jar must be 'pom'" );
     }
 
-    public void testBadImportScopeClassifier()
+    public void testImportScopeClassifier()
         throws Exception
     {
-        SimpleProblemCollector result = validateRaw( "bad-import-scope-classifier.xml" );
+        SimpleProblemCollector result = validateRaw( "import-scope-classifier.xml" );
 
-        assertViolations( result, 0, 1, 0 );
-
-        assertContains( result.getErrors().get( 0 ),
-                        "'dependencyManagement.dependencies.dependency.classifier' for test:a:pom:cls must be empty" );
+        assertViolations( result, 0, 0, 0 );
 
 Review comment:
   If this is meant to signify that a violation is not thrown, would it be possible to create a method assertNoViolations( result ) ?  Personally I feel as though it parses better.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services