6868 * @author <a href="mailto:[email protected] ">Allan Ramirez</a> 6969 */
7070@ MojoTest
71- public class InstallFileMojoTest {
71+ class InstallFileMojoTest {
7272 private static final String LOCAL_REPO = "target/local-repo" ;
7373
7474 private String groupId ;
@@ -88,7 +88,7 @@ public class InstallFileMojoTest {
8888 ArtifactInstaller artifactInstaller ;
8989
9090 @ BeforeEach
91- public void setUp () throws Exception {
91+ void setUp () throws Exception {
9292 FileUtils .deleteDirectory (new File (getBasedir () + "/" + LOCAL_REPO ));
9393 }
9494
@@ -101,7 +101,7 @@ public void setUp() throws Exception {
101101 @ MojoParameter (
102102 name = "file" ,
103103 value = "${project.basedir}/target/test-classes/unit/maven-install-test-1.0-SNAPSHOT.jar" )
104- public void testInstallFileTestEnvironment (InstallFileMojo mojo ) {
104+ void installFileTestEnvironment (InstallFileMojo mojo ) {
105105 assertNotNull (mojo );
106106 }
107107
@@ -114,7 +114,7 @@ public void testInstallFileTestEnvironment(InstallFileMojo mojo) {
114114 @ MojoParameter (
115115 name = "file" ,
116116 value = "${project.basedir}/target/test-classes/unit/maven-install-test-1.0-SNAPSHOT.jar" )
117- public void testBasicInstallFile (InstallFileMojo mojo ) throws Exception {
117+ void basicInstallFile (InstallFileMojo mojo ) throws Exception {
118118 assertNotNull (mojo );
119119 assignValuesForParameter (mojo );
120120
@@ -141,7 +141,7 @@ public void testBasicInstallFile(InstallFileMojo mojo) throws Exception {
141141 @ MojoParameter (name = "version" , value = "1.0-SNAPSHOT" )
142142 @ MojoParameter (name = "packaging" , value = "jar" )
143143 @ MojoParameter (name = "file" , value = "${project.basedir}/target/test-classes/unit/file-does-not-exist.jar" )
144- public void testFileDoesNotExists (InstallFileMojo mojo ) throws Exception {
144+ void fileDoesNotExists (InstallFileMojo mojo ) throws Exception {
145145 assertNotNull (mojo );
146146 assignValuesForParameter (mojo );
147147
@@ -158,7 +158,7 @@ public void testFileDoesNotExists(InstallFileMojo mojo) throws Exception {
158158 @ MojoParameter (
159159 name = "file" ,
160160 value = "${project.basedir}/target/test-classes/unit/maven-install-test-1.0-SNAPSHOT.jar" )
161- public void testInstallFileWithClassifier (InstallFileMojo mojo ) throws Exception {
161+ void installFileWithClassifier (InstallFileMojo mojo ) throws Exception {
162162 assertNotNull (mojo );
163163 assignValuesForParameter (mojo );
164164 assertNotNull (classifier );
@@ -188,7 +188,7 @@ public void testInstallFileWithClassifier(InstallFileMojo mojo) throws Exception
188188 name = "file" ,
189189 value = "${project.basedir}/target/test-classes/unit/maven-install-test-1.0-SNAPSHOT.jar" )
190190 @ MojoParameter (name = "generatePom" , value = "true" )
191- public void testInstallFileWithGeneratePom (InstallFileMojo mojo ) throws Exception {
191+ void installFileWithGeneratePom (InstallFileMojo mojo ) throws Exception {
192192 assertNotNull (mojo );
193193 assignValuesForParameter (mojo );
194194 assertTrue ((Boolean ) getVariableValueFromObject (mojo , "generatePom" ));
@@ -231,7 +231,7 @@ private Model readModel(Artifact pom) {
231231 name = "file" ,
232232 value = "${project.basedir}/target/test-classes/unit/maven-install-test-1.0-SNAPSHOT.jar" )
233233 @ MojoParameter (name = "pomFile" , value = "${project.basedir}/src/test/resources/unit/pom.xml" )
234- public void testInstallFileWithPomFile (InstallFileMojo mojo ) throws Exception {
234+ void installFileWithPomFile (InstallFileMojo mojo ) throws Exception {
235235 assertNotNull (mojo );
236236 assignValuesForParameter (mojo );
237237 Path pomFile = (Path ) getVariableValueFromObject (mojo , "pomFile" );
@@ -257,7 +257,7 @@ public void testInstallFileWithPomFile(InstallFileMojo mojo) throws Exception {
257257 @ MojoParameter (name = "version" , value = "1.0-SNAPSHOT" )
258258 @ MojoParameter (name = "packaging" , value = "pom" )
259259 @ MojoParameter (name = "file" , value = "${project.basedir}/target/test-classes/unit/pom.xml" )
260- public void testInstallFileWithPomAsPackaging (InstallFileMojo mojo ) throws Exception {
260+ void installFileWithPomAsPackaging (InstallFileMojo mojo ) throws Exception {
261261 assertNotNull (mojo );
262262 assignValuesForParameter (mojo );
263263 assertTrue (Files .exists (file ));
@@ -281,7 +281,7 @@ public void testInstallFileWithPomAsPackaging(InstallFileMojo mojo) throws Excep
281281 name = "file" ,
282282 value = "${project.basedir}/target/test-classes/unit/maven-install-test-1.0-SNAPSHOT.jar" )
283283 @ MojoParameter (name = "pomFile" , value = "${project.basedir}/target/test-classes/unit/pom.xml" )
284- public void testInstallFile (InstallFileMojo mojo ) throws Exception {
284+ void installFile (InstallFileMojo mojo ) throws Exception {
285285 assertNotNull (mojo );
286286 assignValuesForParameter (mojo );
287287
0 commit comments