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 2021/01/23 12:58:15 UTC

[GitHub] [maven] elharo commented on pull request #421: Artifact.getPath() and .setPath()

elharo commented on pull request #421:
URL: https://github.com/apache/maven/pull/421#issuecomment-765992624


   It is not necessary to test that setPath actually invokes setFile. Indeed it is a **bad idea** to test that setPath  invokes setFile. Testing the implementation instead of the behavior leads to brittle tests that are tightly coupled to private implementation details. 
   
   
   


----------------------------------------------------------------
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:
users@infra.apache.org