Class AbstractMockingIntegrationTestBase

    • Field Detail

      • defaultTimeout

        public org.junit.rules.Timeout defaultTimeout
      • MOCK_SERVER_LOGGER

        protected static final MockServerLogger MOCK_SERVER_LOGGER
      • servletContext

        protected static String servletContext
      • HEADERS_TO_IGNORE

        public static final List<String> HEADERS_TO_IGNORE
      • insecureEchoServer

        protected static EchoServer insecureEchoServer
      • secureEchoServer

        protected static EchoServer secureEchoServer
      • clientEventLoopGroup

        protected static io.netty.channel.EventLoopGroup clientEventLoopGroup
    • Constructor Detail

      • AbstractMockingIntegrationTestBase

        public AbstractMockingIntegrationTestBase()
    • Method Detail

      • startEchoServer

        public static void startEchoServer()
      • resetServletContext

        public static void resetServletContext()
      • getHeadersToRemove

        public List<String> getHeadersToRemove()
      • getServerPort

        public abstract int getServerPort()
      • getServerSecurePort

        public int getServerSecurePort()
      • isSecureControlPlane

        protected boolean isSecureControlPlane()
      • authorisationHeader

        protected Header authorisationHeader()
      • resetServer

        public void resetServer()
      • calculatePath

        protected String calculatePath​(String path)
      • createClientAndEventLoopGroup

        public static void createClientAndEventLoopGroup()
      • stopEventLoopGroup

        public static void stopEventLoopGroup()
      • addContextToPath

        protected String addContextToPath​(String path)
      • verifyRequestsMatches

        protected void verifyRequestsMatches​(RequestDefinition[] requestDefinitions,
                                             HttpRequest... httpRequestMatchers)