Class ManagerApiTestServer


  • public class ManagerApiTestServer
    extends Object
    This class starts up an embedded Jetty test server so that integration tests can be performed.
    Author:
    eric.wittmann@redhat.com
    • Field Detail

      • ES_CLIENT

        public static org.elasticsearch.client.RestHighLevelClient ES_CLIENT
      • server

        protected org.eclipse.jetty.server.Server server
    • Constructor Detail

      • ManagerApiTestServer

        public ManagerApiTestServer​(String database,
                                    String containerImageName)
        Constructor.
    • Method Detail

      • serverPort

        public int serverPort()
        The server port.
      • preStart

        protected void preStart()
                         throws Exception
        Stuff to do before the server is started.
        Throws:
        Exception
      • addModulesToJetty

        protected void addModulesToJetty​(org.eclipse.jetty.server.handler.ContextHandlerCollection handlers)
                                  throws Exception
        Configure the web application(s).
        Parameters:
        handlers -
        Throws:
        Exception