Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2012-07-18 13:26:37 -0400
committerGlyn Normington2012-07-18 13:26:37 -0400
commita3ecac85f551b0d737431b9a11ee44dbfbf7c728 (patch)
treeb05f86f798b92fbf3b8cfaeff03de864edff71c5 /org.eclipse.virgo.kernel.artifact
parenta432703691eef35ddc494dfce5acfc5b971c7bbe (diff)
downloadorg.eclipse.virgo.kernel-a3ecac85f551b0d737431b9a11ee44dbfbf7c728.tar.gz
org.eclipse.virgo.kernel-a3ecac85f551b0d737431b9a11ee44dbfbf7c728.tar.xz
org.eclipse.virgo.kernel-a3ecac85f551b0d737431b9a11ee44dbfbf7c728.zip
improve testcase
Diffstat (limited to 'org.eclipse.virgo.kernel.artifact')
-rw-r--r--org.eclipse.virgo.kernel.artifact/src/test/java/org/eclipse/virgo/kernel/artifact/fs/internal/JarFileArtifactFSRefreshTests.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/org.eclipse.virgo.kernel.artifact/src/test/java/org/eclipse/virgo/kernel/artifact/fs/internal/JarFileArtifactFSRefreshTests.java b/org.eclipse.virgo.kernel.artifact/src/test/java/org/eclipse/virgo/kernel/artifact/fs/internal/JarFileArtifactFSRefreshTests.java
index b96d2f00..9f833a62 100644
--- a/org.eclipse.virgo.kernel.artifact/src/test/java/org/eclipse/virgo/kernel/artifact/fs/internal/JarFileArtifactFSRefreshTests.java
+++ b/org.eclipse.virgo.kernel.artifact/src/test/java/org/eclipse/virgo/kernel/artifact/fs/internal/JarFileArtifactFSRefreshTests.java
@@ -31,12 +31,14 @@ public class JarFileArtifactFSRefreshTests {
private PathReference testModule;
+ private PathReference pr;
+
@Before
public void setUp() throws Exception {
- PathReference pr = new PathReference("./target/redeploy-refresh");
- pr.delete(true);
- pr.createDirectory();
- this.testModule = pr.newChild("simple.module.jar");
+ this.pr = new PathReference("./target/redeploy-refresh");
+ this.pr.delete(true);
+ this.pr.createDirectory();
+ this.testModule = this.pr.newChild("simple.module.jar");
}
@Test
@@ -47,10 +49,11 @@ public class JarFileArtifactFSRefreshTests {
ArtifactFS artifactFS = new JarFileArtifactFS(new PathReference("./target/redeploy-refresh/simple.module.jar").toFile());
checkBsn(artifactFS, "simple.module");
-
- this.testModule.delete();
- new PathReference("src/test/resources/refresh/simple2.module.jar").copy(this.testModule);
+ PathReference old = this.pr.newChild("simple.module.jar-past");
+ this.testModule.moveTo(old);
+ new PathReference("src/test/resources/refresh/simple2.module.jar").copy(this.testModule);
+
JarFileArtifactFS fs = new JarFileArtifactFS(new PathReference("./target/redeploy-refresh/simple.module.jar").toFile());
checkBsn(fs, "simple2.module");

Back to the top