elharo commented on a change in pull request #421:
URL: https://github.com/apache/maven/pull/421#discussion_r563146428
##########
File path: maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java
##########
@@ -86,6 +87,16 @@
void setFile( File destination );
+ default Path getPath()
Review comment:
You can test these two new default methods with a subclass that
implements getFile and setFile but not getPath and setPath. You don't need
mocks, and you certainly don't need spies to do that. Focus on the values
returned by getPath, not which methods getPath and setPath call.
----------------------------------------------------------------
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]