@Test public void testWelcomeSuccessfully() throws Exception { mockConfiguration(true); mockStatus(IntegrationStatus.ACTIVE); mockRequest(); String body = "{ \"streams\": [ \"4A9FN4KrD-x1PQvuB2F3PH___qkZRU5idA\", " + "\"jZwwUGRiUyzdpA9fsBgCs3___qkjVetQdA\" ]}"; assertEquals(ResponseEntity.ok().body(""), resource.handleWelcomeRequest(TEST_HASH, CONFIGURATION_ID, TEST_USER, body)); }
@RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) public ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash, @PathVariable String configurationId, @PathVariable String configurationType, @RequestBody String body) throws RemoteApiException { return handleWelcomeRequest(hash, configurationId, body); }
WebHookWelcomeResource extends WebHookResource { @RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) public ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash, @PathVariable String configurationId, @PathVariable String configurationType, @RequestBody String body) throws RemoteApiException { return handleWelcomeRequest(hash, configurationId, body); } }
WebHookWelcomeResource extends WebHookResource { @RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) public ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash, @PathVariable String configurationId, @PathVariable String configurationType, @RequestBody String body) throws RemoteApiException { return handleWelcomeRequest(hash, configurationId, body); }  }
WebHookWelcomeResource extends WebHookResource { @RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) public ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash, @PathVariable String configurationId, @PathVariable String configurationType, @RequestBody String body) throws RemoteApiException { return handleWelcomeRequest(hash, configurationId, body); }  @RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash,
      @PathVariable String configurationId, @PathVariable String configurationType,
      @RequestBody String body); @RequestMapping(value = "/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash,
      @PathVariable String configurationId, @RequestBody String body); }
WebHookWelcomeResource extends WebHookResource { @RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) public ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash, @PathVariable String configurationId, @PathVariable String configurationType, @RequestBody String body) throws RemoteApiException { return handleWelcomeRequest(hash, configurationId, body); }  @RequestMapping(value = "/{configurationType}/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash,
      @PathVariable String configurationId, @PathVariable String configurationType,
      @RequestBody String body); @RequestMapping(value = "/{configurationId}/{hash}/welcome", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE) ResponseEntity<String> handleWelcomeRequest(@PathVariable String hash,
      @PathVariable String configurationId, @RequestBody String body);  }