List of usage examples for com.liferay.portal.kernel.util ParamUtil ParamUtil
ParamUtil
From source file:se.vgregion.portal.innovationsslussen.ideaadmin.controller.IdeaAdminViewControllerTest.java
License:Open Source License
@Before public void setUp() { ideaService = Mockito.mock(IdeaService.class); request = Mockito.mock(RenderRequest.class); response = Mockito.mock(RenderResponse.class); model = Mockito.mock(ModelMap.class); actionReq = Mockito.mock(ActionRequest.class); actionRes = Mockito.mock(ActionResponse.class); controller = new IdeaAdminViewController(ideaService) { @Override//from ww w .j ava 2s . com protected Layout getFriendlyURLLayout(long scopeGroupId) { return Mockito.mock(Layout.class); } }; com.liferay.portal.kernel.util.ParamUtil p = new ParamUtil(); PropsUtil.setProps(new Props() { @Override public boolean contains(String key) { return false; } @Override public String get(String key) { return key; } @Override public String get(String key, Filter filter) { return key; } @Override public String[] getArray(String key) { return new String[0]; } @Override public String[] getArray(String key, Filter filter) { return new String[0]; } @Override public Properties getProperties() { return new Properties(); } @Override public Properties getProperties(String prefix, boolean removePrefix) { return new Properties(); } }); }