changeset 1082:066ee2d7317c

Clear THERMOSTAT_HOME in WebStorageEndpointTest In WebStorageEndpointTest THERMOSTAT_HOME is set as a system property in a setup method, but is never cleared during teardown. This results in the variable still being set for other tests, and causes a test to fail in Severin's JAAS patch if this test executed before it. This commit simply clears the property in the teardown method. Reviewed-by: omajid Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-May/006529.html
author Elliott Baron <ebaron@redhat.com>
date Tue, 07 May 2013 18:27:02 -0400
parents 17aed647ccff
children bf4f8d4e38a9
files web/server/src/test/java/com/redhat/thermostat/web/server/WebStorageEndpointTest.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/web/server/src/test/java/com/redhat/thermostat/web/server/WebStorageEndpointTest.java	Tue May 07 11:56:21 2013 -0400
+++ b/web/server/src/test/java/com/redhat/thermostat/web/server/WebStorageEndpointTest.java	Tue May 07 18:27:02 2013 -0400
@@ -183,6 +183,8 @@
 
     @After
     public void tearDown() throws Exception {
+        System.clearProperty("THERMOSTAT_HOME");
+        
         // some tests don't use server
         if (server != null) {
             server.stop();