Arent-Jan Banck pushed to branch master at cms-community / hippo-essentials


Commits:
ccb390fa by Arent-Jan Banck at 2018-02-02T21:49:31+01:00
ESSENTIALS-1137 Clean system properties after test to avoid test failers in 
other tests

- - - - -


1 changed file:

- 
plugin-sdk/implementation/src/test/java/org/onehippo/cms7/essentials/plugin/sdk/services/ProjectServiceImplTest.java


Changes:

=====================================
plugin-sdk/implementation/src/test/java/org/onehippo/cms7/essentials/plugin/sdk/services/ProjectServiceImplTest.java
=====================================
--- 
a/plugin-sdk/implementation/src/test/java/org/onehippo/cms7/essentials/plugin/sdk/services/ProjectServiceImplTest.java
+++ 
b/plugin-sdk/implementation/src/test/java/org/onehippo/cms7/essentials/plugin/sdk/services/ProjectServiceImplTest.java
@@ -25,6 +25,7 @@ import java.util.stream.Collectors;
 
 import javax.inject.Inject;
 
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 import org.onehippo.cms7.essentials.ResourceModifyingTest;
@@ -68,6 +69,12 @@ public class ProjectServiceImplTest extends 
ResourceModifyingTest {
         settingsService.setSettings(projectSettings);
     }
 
+    @After
+    public void tearDown() {
+        System.clearProperty(EssentialConst.PROJECT_BASEDIR_PROPERTY);
+        System.clearProperty(EssentialConst.ESSENTIALS_BASEDIR_PROPERTY);
+    }
+
     @Test
     public void get_base_path() {
         assertEquals(projectRoot, 
projectService.getBasePathForModule(Module.PROJECT));



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials/commit/ccb390fadc89d799fb724a4397ae5bafa68af846

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials/commit/ccb390fadc89d799fb724a4397ae5bafa68af846
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to