@@ -57,9 +57,9 @@ public class DeployMojoTest extends AbstractMojoTestCase {
5757
5858 private File localRepo ;
5959
60- private final String LOCAL_REPO = getBasedir () + "/target/local-repo" ;
60+ private final String localRepoTarget = getBasedir () + "/target/local-repo" ;
6161
62- private final String REMOTE_REPO = getBasedir () + "/target/remote-repo" ;
62+ private final String remoteRepoTarget = getBasedir () + "/target/remote-repo" ;
6363
6464 DeployArtifactStub artifact ;
6565
@@ -81,14 +81,14 @@ public void setUp() throws Exception {
8181 DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession ();
8282 repositorySession .setLocalRepositoryManager (
8383 new SimpleLocalRepositoryManagerFactory (new DefaultLocalPathComposer ())
84- .newInstance (repositorySession , new LocalRepository (LOCAL_REPO )));
84+ .newInstance (repositorySession , new LocalRepository (localRepoTarget )));
8585 when (session .getRepositorySession ()).thenReturn (repositorySession );
8686
87- remoteRepo = new File (REMOTE_REPO );
87+ remoteRepo = new File (remoteRepoTarget );
8888
8989 remoteRepo .mkdirs ();
9090
91- localRepo = new File (LOCAL_REPO );
91+ localRepo = new File (localRepoTarget );
9292
9393 if (localRepo .exists ()) {
9494 FileUtils .deleteDirectory (localRepo );
@@ -131,7 +131,7 @@ public void testBasicDeploy() throws Exception {
131131 DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession ();
132132 repositorySession .setLocalRepositoryManager (
133133 new SimpleLocalRepositoryManagerFactory (new DefaultLocalPathComposer ())
134- .newInstance (repositorySession , new LocalRepository (LOCAL_REPO )));
134+ .newInstance (repositorySession , new LocalRepository (localRepoTarget )));
135135 when (session .getRepositorySession ()).thenReturn (repositorySession );
136136
137137 File file = new File (
@@ -188,7 +188,7 @@ public void testBasicDeploy() throws Exception {
188188 expectedFiles .add ("resolver-status.properties" );
189189 expectedFiles .add ("resolver-status.properties" );
190190
191- File localRepo = new File (LOCAL_REPO , "" );
191+ File localRepo = new File (localRepoTarget , "" );
192192
193193 File [] files = localRepo .listFiles ();
194194
@@ -280,7 +280,7 @@ public void testSkippingDeploy() throws Exception {
280280
281281 mojo .execute ();
282282
283- File localRepo = new File (LOCAL_REPO , "" );
283+ File localRepo = new File (localRepoTarget , "" );
284284
285285 File [] files = localRepo .listFiles ();
286286
@@ -305,7 +305,7 @@ public void testBasicDeployWithPackagingAsPom() throws Exception {
305305 DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession ();
306306 repositorySession .setLocalRepositoryManager (
307307 new SimpleLocalRepositoryManagerFactory (new DefaultLocalPathComposer ())
308- .newInstance (repositorySession , new LocalRepository (LOCAL_REPO )));
308+ .newInstance (repositorySession , new LocalRepository (localRepoTarget )));
309309 when (session .getRepositorySession ()).thenReturn (repositorySession );
310310
311311 File pomFile = new File (
@@ -378,7 +378,7 @@ public void testBasicDeployWithPackagingAsBom() throws Exception {
378378 DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession ();
379379 repositorySession .setLocalRepositoryManager (
380380 new SimpleLocalRepositoryManagerFactory (new DefaultLocalPathComposer ())
381- .newInstance (repositorySession , new LocalRepository (LOCAL_REPO )));
381+ .newInstance (repositorySession , new LocalRepository (localRepoTarget )));
382382 when (session .getRepositorySession ()).thenReturn (repositorySession );
383383
384384 File pomFile = new File (
@@ -519,7 +519,7 @@ public void testDeployWithAttachedArtifacts() throws Exception {
519519 DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession ();
520520 repositorySession .setLocalRepositoryManager (
521521 new SimpleLocalRepositoryManagerFactory (new DefaultLocalPathComposer ())
522- .newInstance (repositorySession , new LocalRepository (LOCAL_REPO )));
522+ .newInstance (repositorySession , new LocalRepository (localRepoTarget )));
523523 when (session .getRepositorySession ()).thenReturn (repositorySession );
524524
525525 MavenProject project = (MavenProject ) getVariableValueFromObject (mojo , "project" );
@@ -628,7 +628,7 @@ public void testNonPomDeployWithAttachedArtifactsOnly() throws Exception {
628628 }
629629
630630 @ Ignore ("SCP is not part of Maven3 distribution. Aether handles transport extensions." )
631- public void _testBasicDeployWithScpAsProtocol () throws Exception {
631+ public void testBasicDeployWithScpAsProtocol () throws Exception {
632632 String originalUserHome = System .getProperty ("user.home" );
633633
634634 // FIX THE DAMN user.home BEFORE YOU DELETE IT!!!
0 commit comments