Bumping versions
This commit is contained in:
@@ -124,10 +124,10 @@ public class ResourceControllerIntegrationTests {
|
||||
@Test
|
||||
public void resourceHttpDoesNotExist() throws Exception {
|
||||
when(this.resources.findOne("foo", "default", "master", "doesNotExist.txt"))
|
||||
.thenThrow(new NoSuchResourceException("Does not exist"));
|
||||
.thenThrow(new NoSuchResourceException("Does not exist"));
|
||||
|
||||
ResponseEntity<String> response = new TestRestTemplate()
|
||||
.getForEntity("http://localhost:" + port + "/foo/default/master/doesNotExist.txt", String.class);
|
||||
.getForEntity("http://localhost:" + port + "/foo/default/master/doesNotExist.txt", String.class);
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
|
||||
verify(this.resources).findOne("foo", "default", "master", "doesNotExist.txt");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user