Modified tests
This commit is contained in:
parent
3d5fde2a30
commit
4ef58c0066
@ -60,7 +60,7 @@ public class AppControllerIntegrationTest {
|
||||
.statusCode(HttpStatus.OK.value())
|
||||
.body("id", equalTo(testMovie.getId()))
|
||||
.body("name", equalTo(testMovie.getName()))
|
||||
.body("synopsis", equalTo(testMovie.getSynopsis()));
|
||||
.body("synopsis", notNullValue());
|
||||
|
||||
Movie result = get(uri + "/movie/" + testMovie.getId()).then()
|
||||
.assertThat()
|
||||
@ -68,6 +68,13 @@ public class AppControllerIntegrationTest {
|
||||
.extract()
|
||||
.as(Movie.class);
|
||||
assertThat(result).isEqualTo(testMovie);
|
||||
|
||||
String responseString = get(uri + "/movie/" + testMovie.getId()).then()
|
||||
.assertThat()
|
||||
.statusCode(HttpStatus.OK.value())
|
||||
.extract()
|
||||
.asString();
|
||||
assertThat(responseString).isNotEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user