Skip to content

Commit

Permalink
fix quality violations
Browse files Browse the repository at this point in the history
  • Loading branch information
uchitsa committed Dec 12, 2024
1 parent 7b16fd3 commit 3be2005
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ void parsesLinksInHeaders() throws Exception {
);
final WebLinkingResponse.Link link = response.links().get("foo");
MatcherAssert.assertThat(
"should contains '/hey/foo'",
link.uri(),
Matchers.hasToString("/hey/foo")
);
MatcherAssert.assertThat(
"should contains key 'title'",
link,
Matchers.hasKey("title")
);
MatcherAssert.assertThat(
"should not contains key 'something else'",
response.links(),
Matchers.not(Matchers.hasKey("something else"))
);
Expand All @@ -92,10 +95,12 @@ void followsLinksInHeaders() throws Exception {
).uri().set(new URI("http://localhost/test")).back().fetch()
);
MatcherAssert.assertThat(
"should equals 'http://localhost/a'",
response.follow("first").uri().get(),
Matchers.equalTo(new URI("http://localhost/a"))
);
MatcherAssert.assertThat(
"should equals 'http://localhost/o'",
response.follow("second").uri().get(),
Matchers.equalTo(new URI("http://localhost/o"))
);
Expand Down

0 comments on commit 3be2005

Please sign in to comment.