perfsonar-dev - [GEANT/SA2/ps-java-services] r5603 - trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5603 - trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5603 - trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration
- Date: Tue, 27 Apr 2010 12:48:17 +0100
Author: psnc.trzaszczka
Date: 2010-04-27 12:48:17 +0100 (Tue, 27 Apr 2010)
New Revision: 5603
Modified:
trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration/ConfigFilesCollectionTest.java
Log:
Modified:
trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration/ConfigFilesCollectionTest.java
===================================================================
---
trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration/ConfigFilesCollectionTest.java
2010-04-27 11:42:19 UTC (rev 5602)
+++
trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration/ConfigFilesCollectionTest.java
2010-04-27 11:48:17 UTC (rev 5603)
@@ -18,7 +18,7 @@
protected void setUp() throws Exception {
super.setUp();
-
+
configCollection = new ConfigFilesCollection(new
File(CONFIG_PATH));
}
@@ -81,9 +81,10 @@
for (File file :
createExpectedConfigFiles(".properties.remove")) {
if (file.getName().equals("wizard.properties.remove"))
continue;
- assertTrue("File: " + file.getName(), file.exists());
- final String name = file.getName().substring(0,
file.getName().length() - ".remove".length());
- assertTrue(file.renameTo(new File(CONFIG_PATH +
File.separator + name)));
+ if (file.exists()) {
+ final String name =
file.getName().substring(0, file.getName().length() - ".remove".length());
+ assertTrue(file.renameTo(new File(CONFIG_PATH
+ File.separator + name)));
+ }
}
}
- [GEANT/SA2/ps-java-services] r5603 - trunk/perfsonar-java-base2/src/test/java/org/perfsonar/base2/service/configuration/migration, svn-noreply, 04/27/2010
Archive powered by MHonArc 2.6.16.