Skip to content

Commit

Permalink
remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
dashaun committed Jan 22, 2024
1 parent 4c9a3d5 commit 58ff287
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ public class YouTubeVideo {
private String description;
private String title;
private String thumbnail;
private String dateString;
private ZonedDateTime date;
private String date;
}
22 changes: 20 additions & 2 deletions src/test/java/com/javagrunt/service/youtube/AbstractAppTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void setUp(RestDocumentationContextProvider restDocumentation) {

@Test
public void shouldReturnRepositoryIndex() throws Exception {
given(this.spec)
Response body = given(this.spec)
.filter(document("index",
links(halLinks(),
linkWithRel("youTubeVideos").description("YouTube videos"),
Expand All @@ -73,7 +73,25 @@ public void shouldReturnRepositoryIndex() throws Exception {
.port(getPort())
.get("/")
.then()
.assertThat().statusCode(is(200));
.assertThat().statusCode(is(200))
.extract().response();
logger.info("Body: " + body.getBody().asString());
}

@Test
public void shouldReturnListOfVideos() throws Exception {
Response body = given(this.spec)
.filter(document("index",
links(halLinks(),
linkWithRel("self").description("This resource"),
linkWithRel("profile").description("The ALPS profile for the service"))))
.when()
.port(getPort())
.get("/youTubeVideos")
.then()
.assertThat().statusCode(is(200))
.extract().response();
logger.info("Body: " + body.getBody().asString());
}

@Test
Expand Down

0 comments on commit 58ff287

Please sign in to comment.