mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07: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");
|
||||
|
||||
// Remove with invalid email ...
|
||||
try {
|
||||
restTemplate.delete(resourceUri + "/collabs?email=invalidEmail");
|
||||
} catch (HttpClientErrorException e) {
|
||||
assertEquals(e.getRawStatusCode(), 400);
|
||||
assertTrue(e.getMessage().contains("Invalid email exception:"));
|
||||
}
|
||||
final ResponseEntity<String> exchange = restTemplate.exchange(resourceUri + "/collabs?email=invalidEmail", HttpMethod.DELETE, null, String.class);
|
||||
assertTrue(exchange.getStatusCode().is4xxClientError());
|
||||
assertTrue(Objects.requireNonNull(exchange.getBody()).contains("Invalid email exception:"));
|
||||
|
||||
// Check that it has been removed ...
|
||||
final ResponseEntity<RestCollaborationList> afterDeleteResponse = fetchCollabs(requestHeaders, restTemplate, resourceUri);
|
||||
|
Loading…
Reference in New Issue
Block a user