Class MockPortalContext
Object
com.liferay.portal.kernel.test.portlet.MockPortalContext
- All Implemented Interfaces:
PortalContext
- Author:
- Dante Wang
-
Field Summary
Fields inherited from interface javax.portlet.PortalContext
MARKUP_HEAD_ELEMENT_SUPPORT
-
Constructor Summary
ConstructorsConstructorDescriptionMockPortalContext
(List<PortletMode> supportedPortletModes, List<WindowState> supportedWindowStates) -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name) void
setProperty
(String name, String value)
-
Constructor Details
-
MockPortalContext
public MockPortalContext() -
MockPortalContext
public MockPortalContext(List<PortletMode> supportedPortletModes, List<WindowState> supportedWindowStates)
-
-
Method Details
-
getPortalInfo
- Specified by:
getPortalInfo
in interfacePortalContext
-
getProperty
- Specified by:
getProperty
in interfacePortalContext
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacePortalContext
-
getSupportedPortletModes
- Specified by:
getSupportedPortletModes
in interfacePortalContext
-
getSupportedWindowStates
- Specified by:
getSupportedWindowStates
in interfacePortalContext
-
setProperty
-