added WrongServiceTypeException

This commit is contained in:
2026-04-08 22:33:04 +02:00
parent 00bb929f22
commit ef4ee70aac
5 changed files with 17 additions and 3 deletions
@@ -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());
}