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