mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fix more test
This commit is contained in:
parent
56e4970861
commit
ccfcb3b335
@ -401,12 +401,9 @@ public class RestMindmapControllerTest {
|
|||||||
final URI resourceUri = addNewMap(restTemplate, "deleteCollabsWithInvalidEmail");
|
final URI resourceUri = addNewMap(restTemplate, "deleteCollabsWithInvalidEmail");
|
||||||
|
|
||||||
// Remove with invalid email ...
|
// Remove with invalid email ...
|
||||||
try {
|
final ResponseEntity<String> exchange = restTemplate.exchange(resourceUri + "/collabs?email=invalidEmail", HttpMethod.DELETE, null, String.class);
|
||||||
restTemplate.delete(resourceUri + "/collabs?email=invalidEmail");
|
assertTrue(exchange.getStatusCode().is4xxClientError());
|
||||||
} catch (HttpClientErrorException e) {
|
assertTrue(Objects.requireNonNull(exchange.getBody()).contains("Invalid email exception:"));
|
||||||
assertEquals(e.getRawStatusCode(), 400);
|
|
||||||
assertTrue(e.getMessage().contains("Invalid email exception:"));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check that it has been removed ...
|
// Check that it has been removed ...
|
||||||
final ResponseEntity<RestCollaborationList> afterDeleteResponse = fetchCollabs(requestHeaders, restTemplate, resourceUri);
|
final ResponseEntity<RestCollaborationList> afterDeleteResponse = fetchCollabs(requestHeaders, restTemplate, resourceUri);
|
||||||
|
Loading…
Reference in New Issue
Block a user