added WrongServiceTypeException
This commit is contained in:
@@ -145,7 +145,7 @@ class HomeboxIntegrationTest {
|
||||
* Test the custom ProviderNotFound exception.
|
||||
*/
|
||||
@Test
|
||||
void shouldReturnProviderNotFound() {
|
||||
void shouldReturnWrongServiceTypeException() {
|
||||
ConnectionRequest wrongServiceTypeReq = new ConnectionRequest(
|
||||
MOCK_URL,
|
||||
"wrong-service-type",
|
||||
@@ -155,7 +155,7 @@ class HomeboxIntegrationTest {
|
||||
ResponseEntity<String> response = restTemplate.postForEntity(LOGIN.getValue(), wrongServiceTypeReq,
|
||||
String.class);
|
||||
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.BAD_REQUEST);
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
|
||||
assertThat(response.getBody()).contains(WRONG_SERVICE_TYPE.getMessage());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user