[java-identity-provider COMMIT] /trunk/idp-core/src/test/java/net/shibboleth/idp/service/ReloadableSpringServiceTest....
noreply at shibboleth.net
noreply at shibboleth.net
Tue Dec 31 12:25:15 EST 2013
Author: rdw
Date: Tue Dec 31 12:25:14 2013
New Revision: 5125
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5125&view=rev
Log:
Clean up as much as possible after the test.
Modified:
trunk/idp-core/src/test/java/net/shibboleth/idp/service/ReloadableSpringServiceTest.java
Modified: trunk/idp-core/src/test/java/net/shibboleth/idp/service/ReloadableSpringServiceTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-core/src/test/java/net/shibboleth/idp/service/ReloadableSpringServiceTest.java?rev=5125&r1=5124&r2=5125&view=diff
==============================================================================
--- trunk/idp-core/src/test/java/net/shibboleth/idp/service/ReloadableSpringServiceTest.java (original)
+++ trunk/idp-core/src/test/java/net/shibboleth/idp/service/ReloadableSpringServiceTest.java Tue Dec 31 12:25:14 2013
@@ -43,7 +43,7 @@
private File testFile;
private void createPopulatedFile(String dataPath) throws IOException {
- testFile = File.createTempFile("ReloadableSpringServiceTest", "xml");
+ testFile = File.createTempFile("ReloadableSpringServiceTest", ".xml");
overwriteFileWith(dataPath);
testFile.setLastModified(1);
}
@@ -97,6 +97,8 @@
Assert.assertEquals(serviceableComponent.getComponent().getTheValue(), "Two");
serviceableComponent.unpinComponent();
service.stop();
+
+ testFile.delete();
}
@Test(enabled=true) public void deferedReload() throws IOException, InterruptedException {
@@ -151,6 +153,7 @@
Assert.assertTrue("After 7 second initial component has still not be destroyed", component.isDestroyed());
service.stop();
+ testFile.delete();
}
@Test public void testFailFast() throws IOException, InterruptedException {
@@ -178,6 +181,7 @@
Assert.assertNull(service.getServiceableComponent());
service.stop();
+ testFile.delete();
}
@Test public void testNotFailFast() throws IOException, InterruptedException {
@@ -217,6 +221,8 @@
count--;
}
Assert.assertTrue("After 7 second component has still not be destroyed", component.isDestroyed());
+
+ testFile.delete();
}
More information about the commits
mailing list