minor cleanup
This commit is contained in:
parent
ad21e99e8e
commit
b852e2edcc
|
@ -49,7 +49,7 @@ public class RestApiLiveTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenGetCreatedReviewByName_thenOK() {
|
public void whenGetCreatedReviewByBookId_thenOK() {
|
||||||
final BookReview review = createRandomReview();
|
final BookReview review = createRandomReview();
|
||||||
createReviewAsUri(review);
|
createReviewAsUri(review);
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class RestApiLiveTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenGetNotExistReviewByName_thenNotFound() {
|
public void whenGetNotExistReviewByBookId_thenNotFound() {
|
||||||
final Response response = RestAssured.get(API_URI + "/search/findByBookId?bookId=" + randomNumeric(4));
|
final Response response = RestAssured.get(API_URI + "/search/findByBookId?bookId=" + randomNumeric(4));
|
||||||
assertEquals(HttpStatus.OK.value(), response.getStatusCode());
|
assertEquals(HttpStatus.OK.value(), response.getStatusCode());
|
||||||
assertTrue(response.jsonPath()
|
assertTrue(response.jsonPath()
|
||||||
|
@ -86,7 +86,7 @@ public class RestApiLiveTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenInvalidReview_thenError() {
|
public void whenCreateInvalidReview_thenError() {
|
||||||
final BookReview review = createRandomReview();
|
final BookReview review = createRandomReview();
|
||||||
review.setBookId(null);
|
review.setBookId(null);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue