Class FakeHttpApi

    • Constructor Detail

      • FakeHttpApi

        public FakeHttpApi()
    • Method Detail

      • setDelegate

        public void setDelegate​(@NotNull
                                HttpApi delegate)
      • addCookie

        public void addCookie​(@NotNull
                              String cookieName,
                              @NotNull
                              String cookieValue,
                              @NotNull
                              String domain,
                              int maxAgeSeconds)
        Specified by:
        addCookie in interface HttpApi
      • getCookieValue

        public String getCookieValue​(@NotNull
                                     String cookieName)
      • resetCookies

        public void resetCookies()
      • breakConnectionImmediately

        public void breakConnectionImmediately()
      • breakConnectionAfterCurrentRequestsEnd

        public void breakConnectionAfterCurrentRequestsEnd()
      • addBlockedUri

        public void addBlockedUri​(@NotNull
                                  String path)
      • addNotFoundPath

        public void addNotFoundPath​(@NotNull
                                    String path)
      • addPredefinedResponse

        public void addPredefinedResponse​(@NotNull
                                          String path,
                                          @NotNull
                                          HttpApi.Response response)
      • addOneTimePredefinedResponse

        public void addOneTimePredefinedResponse​(@NotNull
                                                 String path,
                                                 @NotNull
                                                 HttpApi.Response response)
      • clearPredefinedResponses

        public void clearPredefinedResponses()
      • restoreConnection

        public void restoreConnection()