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


Commits:
900af2fd by Arent-Jan Banck at 2018-02-02T22:05:42+01:00
ESSENTIALS-1137 Call createModifiableDirectory before placeholderService is 
used as createModifiableDirectory sets a system property with the directory 
path used by the placeholderService. Test will fail dependening on the test 
execution order, failed on Windows

- - - - -


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
@@ -232,10 +232,10 @@ public class ProjectServiceImplTest extends 
ResourceModifyingTest {
 
     @Test
     public void copy_onto_directory() throws Exception {
+        createModifiableDirectory("test");
         final String resourcePath = "/services/project/to-be-copied.txt";
         final String targetLocation = "{{" + PlaceholderService.PROJECT_ROOT + 
"}}" + File.separator + "test";
         final Map<String, Object> placeholderData = 
placeholderService.makePlaceholders();
-        createModifiableDirectory("test");
 
         try (Log4jInterceptor interceptor = 
Log4jInterceptor.onError().trap(ProjectServiceImpl.class).build()) {
             assertFalse(projectService.copyResource(resourcePath, 
targetLocation, placeholderData, true, false));



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

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials/commit/900af2fdc75fd21977e15ae1d8ed9596d51c3f19
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