-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MDEP-923] Extract copyFile method from AbstractDependencyMojo #389
Conversation
src/main/java/org/apache/maven/plugins/dependency/utils/CopyUtil.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/maven/plugins/dependency/utils/CopyUtil.java
Outdated
Show resolved
Hide resolved
7b3f845
to
8fcd200
Compare
@@ -80,7 +80,7 @@ public void assertNoMarkerFile(Artifact artifact) throws MojoExecutionException | |||
assertFalse(handle.isMarkerSet()); | |||
} | |||
|
|||
public void testCopyFile() throws MojoExecutionException, IOException { | |||
public void testCopyFile() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did this change to throw a raw exception? Otherwise it's better to declare the actual exceptions instead of the common superclass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a Unit Test ... all other methods simply throws Exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to know when an exception is added or removed from an API, and I'd make the same comment about the other methods in this class. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, one exception is new in 3.7.0 but one is old from copied class - so should I discovered versions for original class or add since now
src/main/java/org/apache/maven/plugins/dependency/utils/CopyUtil.java
Outdated
Show resolved
Hide resolved
this method is only needed in CopyMojo and CopyDependenciesMojo so it is not needed in AbstractDependencyMojo
8fcd200
to
bf0081e
Compare
@@ -80,7 +80,7 @@ public void assertNoMarkerFile(Artifact artifact) throws MojoExecutionException | |||
assertFalse(handle.isMarkerSet()); | |||
} | |||
|
|||
public void testCopyFile() throws MojoExecutionException, IOException { | |||
public void testCopyFile() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to know when an exception is added or removed from an API, and I'd make the same comment about the other methods in this class. :-)
this method is only needed in CopyMojo and CopyDependenciesMojo so it is not needed in AbstractDependencyMojo