Skip to content

Conversation

@slawekjaranowski
Copy link
Member

this method is only needed in CopyMojo and CopyDependenciesMojo so it is not needed in AbstractDependencyMojo

}

public void testCopyFile() throws MojoExecutionException, IOException {
public void testCopyFile() throws Exception {
Copy link
Contributor

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.

Copy link
Member Author

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

Copy link
Contributor

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. :-)

Copy link
Member Author

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

this method is only needed in CopyMojo and CopyDependenciesMojo so it is not needed in AbstractDependencyMojo
}

public void testCopyFile() throws MojoExecutionException, IOException {
public void testCopyFile() throws Exception {
Copy link
Contributor

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. :-)

@slawekjaranowski slawekjaranowski merged commit c0e8949 into master May 27, 2024
@slawekjaranowski slawekjaranowski deleted the MDEP-923-copyFile branch May 27, 2024 16:54
@jira-importer
Copy link

Resolve #1420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants