Permalink
Browse files

[test] Various refactoring to make easier to use for integration tests

Fix bug introduced in previous commit
  • Loading branch information...
1 parent d8308c8 commit 25b9a6fdba04bb65eaa9e7ab5dbacd61eff21607 @tmortagne tmortagne committed Jul 3, 2012
@@ -51,8 +51,6 @@
{
private static final String MAVENREPOSITORY_ID = "test-maven";
- private static final File TESTDIRECCTORY = new File("target/test-" + new Date().getTime());
-
private final File permanentDirectory;
private final File temporaryDirectory;
@@ -85,14 +83,16 @@ public RepositoryUtil(ComponentManager componentManager, Mockery mockery)
this.componentManager = componentManager;
this.mockery = mockery;
- this.temporaryDirectory = new File(TESTDIRECCTORY, "temporary-dir");
+ File testDirectory = new File("target/test-" + new Date().getTime());
+
+ this.temporaryDirectory = new File(testDirectory, "temporary-dir");
- this.permanentDirectory = new File(TESTDIRECCTORY, "permanent-dir");
+ this.permanentDirectory = new File(testDirectory, "permanent-dir");
this.extensionDirectory = new File(this.permanentDirectory, "extension/");
this.localRepositoryRoot = new File(this.extensionDirectory, "repository/");
- this.mavenRepositoryRoot = new File(TESTDIRECCTORY, "maven/");
- this.remoteRepositoryRoot = new File(TESTDIRECCTORY, "remote/");
+ this.mavenRepositoryRoot = new File(testDirectory, "maven/");
+ this.remoteRepositoryRoot = new File(testDirectory, "remote/");
this.extensionPackager = new ExtensionPackager(this.permanentDirectory, this.remoteRepositoryRoot);
}

0 comments on commit 25b9a6f

Please sign in to comment.