Class OBServletContextMock

  • All Implemented Interfaces:
    javax.servlet.ServletContext

    public class OBServletContextMock
    extends ServletContextMock
    ServletContext mock with the configuration and parameters required by Openbravo.
    • Constructor Detail

      • OBServletContextMock

        public OBServletContextMock()
        Create the mock ServletContext for Openbravo.
    • Method Detail

      • getPath

        public Path getPath​(String name)
        Parameters:
        name - the name of the file in the base context path.
        Returns:
        the path of the provided file name in base context path.