Tibor17 commented on a change in pull request #39: [MRESOLVER-93] -
PathRecordingDependencyVisitor to handle 3 cycles
URL: https://github.com/apache/maven-resolver/pull/39#discussion_r316092574
##########
File path:
maven-resolver-util/src/test/java/org/eclipse/aether/util/graph/visitor/PathRecordingDependencyVisitorTest.java
##########
@@ -141,12 +141,12 @@ public void testGetPaths_HandlesCycles_threePaths()
{
DependencyNode root = parse( "cycle-3paths.txt" );
- PathRecordingDependencyVisitor visitor = new
PathRecordingDependencyVisitor( new ArtifactMatcher(), false );
+ PathRecordingDependencyVisitor visitor = new
PathRecordingDependencyVisitor( new ArtifactMatcher() );
root.accept( visitor );
List<List<DependencyNode>> paths = visitor.getPaths();
- assertEquals( paths.toString(), 4, paths.size() );
- assertPath( paths.get( 0 ), "a", "b", "c");
+ assertEquals( paths.toString(), 1, paths.size() );
Review comment:
@michael-o
That's our tradition in Maven. These assertions should not be used and Java
Hamcrest, AssertJ, FestAssert should be used instead which are frameworks with
descriptive output in the log when the asssert fails.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services