Skip to content

Commit 353b36d

Browse files
committed
#811 - Polishing.
1 parent ec4825c commit 353b36d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/java/org/springframework/hateoas/hal/Jackson2HalIntegrationTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
/**
5252
* Integration tests for Jackson 2 HAL integration.
53-
*
53+
*
5454
* @author Alexander Baetz
5555
* @author Oliver Gierke
5656
* @author Greg Turnquist
@@ -70,7 +70,8 @@ public class Jackson2HalIntegrationTest extends AbstractJackson2MarshallingInteg
7070

7171
static final String ANNOTATED_PAGED_RESOURCES = "{\"_embedded\":{\"pojos\":[{\"text\":\"test1\",\"number\":1,\"_links\":{\"self\":{\"href\":\"localhost\"}}},{\"text\":\"test2\",\"number\":2,\"_links\":{\"self\":{\"href\":\"localhost\"}}}]},\"_links\":{\"next\":{\"href\":\"foo\"},\"prev\":{\"href\":\"bar\"}},\"page\":{\"size\":2,\"totalElements\":4,\"totalPages\":2,\"number\":0}}";
7272

73-
static final Links PAGINATION_LINKS = Links.of(new Link("foo", IanaLinkRelations.NEXT.value()), new Link("bar", IanaLinkRelations.PREV.value()));
73+
static final Links PAGINATION_LINKS = Links.of(new Link("foo", IanaLinkRelations.NEXT.value()),
74+
new Link("bar", IanaLinkRelations.PREV.value()));
7475

7576
static final String CURIED_DOCUMENT = "{\"_links\":{\"self\":{\"href\":\"foo\"},\"foo:myrel\":{\"href\":\"bar\"},\"curies\":[{\"href\":\"http://localhost:8080/rels/{rel}\",\"name\":\"foo\",\"templated\":true}]}}";
7677
static final String MULTIPLE_CURIES_DOCUMENT = "{\"_links\":{\"default:myrel\":{\"href\":\"foo\"},\"curies\":[{\"href\":\"bar\",\"name\":\"foo\"},{\"href\":\"foo\",\"name\":\"bar\"}]}}";
@@ -123,18 +124,18 @@ public void rendersAllExtraRFC5988Attributes() throws Exception {
123124

124125
/**
125126
* HAL doesn't support "media" so it's removed from the "expected" link.
126-
*
127+
*
127128
* @see #699
128129
*/
129130
@Test
130131
public void deserializeAllExtraRFC5988Attributes() throws Exception {
131132

132133
ResourceSupport expected = new ResourceSupport();
133134
expected.add(new Link("localhost", "self") //
134-
.withHreflang("en") //
135-
.withTitle("the title") //
136-
.withType("the type") //
137-
.withDeprecation("/customers/deprecated"));
135+
.withHreflang("en") //
136+
.withTitle("the title") //
137+
.withType("the type") //
138+
.withDeprecation("/customers/deprecated"));
138139

139140
assertThat(read(SINGLE_WITH_ALL_EXTRA_ATTRIBUTES, ResourceSupport.class)).isEqualTo(expected);
140141
}
@@ -352,8 +353,7 @@ public void deserializesPagedResource() throws Exception {
352353
@Test
353354
public void rendersCuriesCorrectly() throws Exception {
354355

355-
Resources<Object> resources = new Resources<>(Collections.emptySet(), new Link("foo"),
356-
new Link("bar", "myrel"));
356+
Resources<Object> resources = new Resources<>(Collections.emptySet(), new Link("foo"), new Link("bar", "myrel"));
357357

358358
assertThat(getCuriedObjectMapper().writeValueAsString(resources)).isEqualTo(CURIED_DOCUMENT);
359359
}

0 commit comments

Comments
 (0)