@Test(expected = InstanceNotFoundException.class) public void testHandleRequestInstanceNotFoundException() throws Exception { mockConfiguration(true); mockStatus(IntegrationStatus.ACTIVE); mockRequest(); doThrow(InstanceNotFoundException.class).when(integrationService) .getInstanceById(CONFIGURATION_ID, TEST_HASH, TEST_USER); resource.handleWelcomeRequest(TEST_HASH, CONFIGURATION_ID, TEST_USER, null); }
@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);  }