Class TestOutboundFacade

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      int invocations()  
      <T extends org.springframework.http.ResponseEntity.HeadersBuilder>
      TestOutboundFacade
      respondWith​(T... builders)  
      static TestOutboundFacade respondWithCreated()
      Creates new instance of this test facade, which will respond with HTTP 201 Created to all requests it receives.
      static TestOutboundFacade respondWithNotFound()
      Creates new instance of this test facade, which will respond with HTTP 404 Not Found to all requests it receives.
      rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send​(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.String destination)
      Method orchestrates the services to build the payload and to integrate with restful endpoint.
      • Methods inherited from class org.junit.rules.ExternalResource

        apply, before
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestOutboundFacade

        public TestOutboundFacade()
    • Method Detail

      • respondWithCreated

        public static TestOutboundFacade respondWithCreated()
        Creates new instance of this test facade, which will respond with HTTP 201 Created to all requests it receives.
        Returns:
        new test facade instance.
      • respondWithNotFound

        public static TestOutboundFacade respondWithNotFound()
        Creates new instance of this test facade, which will respond with HTTP 404 Not Found to all requests it receives.
        Returns:
        new test facade instance.
      • respondWith

        @SafeVarargs
        public final <T extends org.springframework.http.ResponseEntity.HeadersBuilder> TestOutboundFacade respondWith​(T... builders)
      • send

        public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send​(ItemModel itemModel,
                                                                                          java.lang.String integrationObjectCode,
                                                                                          java.lang.String destination)
        Description copied from interface: OutboundServiceFacade
        Method orchestrates the services to build the payload and to integrate with restful endpoint.
        Specified by:
        send in interface OutboundServiceFacade
        Parameters:
        itemModel - the model to be converted
        integrationObjectCode - the name of the integration object to convert this model as payload
        destination - endpoint destination information
        Returns:
        rx.Observable which allows the caller to subscribe the callback method
      • invocations

        public int invocations()
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource