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


Commits:
fbdd16f5 by Arent-Jan Banck at 2018-02-02T22:21:26+01:00
ESSENTIALS-1137 Remove unused import and redundant cast

- - - - -


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
@@ -34,7 +34,6 @@ import 
org.onehippo.cms7.essentials.plugin.sdk.config.ProjectSettingsBean;
 import org.onehippo.cms7.essentials.plugin.sdk.utils.EssentialConst;
 import org.onehippo.cms7.essentials.sdk.api.service.PlaceholderService;
 import org.onehippo.cms7.essentials.sdk.api.model.Module;
-import org.onehippo.cms7.essentials.sdk.api.service.SettingsService;
 import org.onehippo.testutils.log4j.Log4jInterceptor;
 
 import static org.junit.Assert.assertEquals;
@@ -130,7 +129,7 @@ public class ProjectServiceImplTest extends 
ResourceModifyingTest {
 
         final ProjectSettingsBean settings = new ProjectSettingsBean();
         settings.setBeansFolder("beans/src/main/java");
-        ((TestSettings.Service)settingsService).setSettings(settings);
+        settingsService.setSettings(settings);
 
         assertEquals(projectRoot.resolve("beans/src/main/java"), 
projectService.getBeansRootPath());
     }
@@ -143,7 +142,7 @@ public class ProjectServiceImplTest extends 
ResourceModifyingTest {
         final ProjectSettingsBean settings = new ProjectSettingsBean();
         settings.setBeansFolder("beans/src/main/java");
         settings.setSelectedBeansPackage("com.test.bean");
-        ((TestSettings.Service)settingsService).setSettings(settings);
+        settingsService.setSettings(settings);
 
         
assertEquals(projectRoot.resolve("beans/src/main/java").resolve("com").resolve("test").resolve("bean"),
                 projectService.getBeansPackagePath());
@@ -219,7 +218,7 @@ public class ProjectServiceImplTest extends 
ResourceModifyingTest {
     }
 
     @Test
-    public void copy_absent_resource() throws Exception {
+    public void copy_absent_resource() {
         final String resourcePath = "/services/project/absent.txt";
         final String targetLocation = "{{" + PlaceholderService.PROJECT_ROOT + 
"}}" + File.separator + "test" + File.separator + "copy.txt";
         final Map<String, Object> placeholderData = 
placeholderService.makePlaceholders();



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

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