Ard Schrijvers pushed to branch feature/wpm at cms-community / hippo-site-toolkit
Commits: 8b670f16 by Ard Schrijvers at 2017-04-26T16:28:47+02:00 HSTTWO-3982 replace deprecated method - - - - - 1 changed file: - client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/repositorytests/fullrequestcycle/MountResourceTest.java Changes: ===================================== client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/repositorytests/fullrequestcycle/MountResourceTest.java ===================================== --- a/client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/repositorytests/fullrequestcycle/MountResourceTest.java +++ b/client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/repositorytests/fullrequestcycle/MountResourceTest.java @@ -26,14 +26,10 @@ import javax.jcr.SimpleCredentials; import javax.servlet.ServletException; import javax.servlet.http.HttpServletResponse; -import org.hippoecm.hst.configuration.HstNodeTypes; -import org.hippoecm.hst.configuration.model.HstNode; import org.hippoecm.hst.pagecomposer.jaxrs.AbstractFullRequestCycleTest; import org.hippoecm.hst.pagecomposer.jaxrs.AbstractPageComposerTest; import org.hippoecm.hst.pagecomposer.jaxrs.model.ExtIdsRepresentation; import org.hippoecm.hst.site.HstServices; -import org.hippoecm.repository.util.JcrUtils; -import org.hippoecm.repository.util.RepoUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -46,6 +42,7 @@ import static org.hippoecm.hst.configuration.HstNodeTypes.GENERAL_PROPERTY_INHER import static org.hippoecm.hst.configuration.HstNodeTypes.GENERAL_PROPERTY_LOCKED_BY; import static org.hippoecm.hst.configuration.HstNodeTypes.MIXINTYPE_HST_BRANCH; import static org.hippoecm.repository.util.JcrUtils.getMultipleStringProperty; +import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @@ -432,7 +429,7 @@ public class MountResourceTest extends AbstractFullRequestCycleTest { assertTrue(session.nodeExists("/hst:hst/hst:configurations/unittestproject-"+branchName+"/hst:workspace/hst:pages")); Node branchHstConfigNode = session.getNode("/hst:hst/hst:configurations/unittestproject-" + branchName); - assertEquals(new String[]{"../unittestproject"}, getMultipleStringProperty(branchHstConfigNode, GENERAL_PROPERTY_INHERITS_FROM, null)); + assertArrayEquals(new String[]{"../unittestproject"}, getMultipleStringProperty(branchHstConfigNode, GENERAL_PROPERTY_INHERITS_FROM, null)); assertTrue(branchHstConfigNode.isNodeType(MIXINTYPE_HST_BRANCH)); View it on GitLab: https://code.onehippo.org/cms-community/hippo-site-toolkit/commit/8b670f16dc3f833ccef9d6dec0bb680727123431
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn