Class MockPortalContext

Object
com.liferay.portal.kernel.test.portlet.MockPortalContext
All Implemented Interfaces:
jakarta.portlet.PortalContext

public class MockPortalContext extends Object implements jakarta.portlet.PortalContext
Author:
Dante Wang
  • Constructor Details

    • MockPortalContext

      public MockPortalContext()
    • MockPortalContext

      public MockPortalContext(List<jakarta.portlet.PortletMode> supportedPortletModes, List<jakarta.portlet.WindowState> supportedWindowStates)
  • Method Details

    • getPortalInfo

      public String getPortalInfo()
      Specified by:
      getPortalInfo in interface jakarta.portlet.PortalContext
    • getProperty

      public String getProperty(String name)
      Specified by:
      getProperty in interface jakarta.portlet.PortalContext
    • getPropertyNames

      public Enumeration<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface jakarta.portlet.PortalContext
    • getSupportedPortletModes

      public Enumeration<jakarta.portlet.PortletMode> getSupportedPortletModes()
      Specified by:
      getSupportedPortletModes in interface jakarta.portlet.PortalContext
    • getSupportedWindowStates

      public Enumeration<jakarta.portlet.WindowState> getSupportedWindowStates()
      Specified by:
      getSupportedWindowStates in interface jakarta.portlet.PortalContext
    • setProperty

      public void setProperty(String name, String value)