Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2009-04-02 18:42:04 +0000
committerJohn Arthorne2009-04-02 18:42:04 +0000
commit976e79aa1c9468acbdcd05ae484db38f807a4287 (patch)
treeae3b10cda673144b7bb19df690235ab515f88bfb /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact
parentc71bef49febcce1afd62e9a193d0ce11219b1cfb (diff)
downloadrt.equinox.p2-976e79aa1c9468acbdcd05ae484db38f807a4287.tar.gz
rt.equinox.p2-976e79aa1c9468acbdcd05ae484db38f807a4287.tar.xz
rt.equinox.p2-976e79aa1c9468acbdcd05ae484db38f807a4287.zip
Bug 262333 A backup/restore mechanism is required during install
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/FoldersRepositoryTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/FoldersRepositoryTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/FoldersRepositoryTest.java
index 24e10a3fa..ed9234911 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/FoldersRepositoryTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/FoldersRepositoryTest.java
@@ -27,6 +27,7 @@ public class FoldersRepositoryTest extends TestCase {
private ServiceReference managerRef;
private IArtifactRepositoryManager manager;
+ private File testRepo;
public FoldersRepositoryTest(String name) {
super(name);
@@ -44,11 +45,13 @@ public class FoldersRepositoryTest extends TestCase {
protected void tearDown() throws Exception {
manager = null;
TestActivator.getContext().ungetService(managerRef);
+ if (testRepo != null)
+ AbstractProvisioningTest.delete(testRepo);
}
public void testFolderRepository() throws Exception {
String tempDir = System.getProperty("java.io.tmpdir");
- File testRepo = new File(tempDir, "testRepo");
+ testRepo = new File(tempDir, "testRepo");
AbstractProvisioningTest.delete(testRepo);
testRepo.mkdir();

Back to the top