Skip to content

Commit fe531e5

Browse files
author
Vincent Potucek
committed
wip
1 parent 55dffb0 commit fe531e5

File tree

1 file changed

+2
-4
lines changed
  • spring-test/src/test/java/org/springframework/test/web/client/samples

1 file changed

+2
-4
lines changed

spring-test/src/test/java/org/springframework/test/web/client/samples/SampleTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,9 @@ public void performGetWithResponseBodyFromFile() {
145145
this.mockServer.expect(requestTo("/composers/42")).andExpect(method(HttpMethod.GET))
146146
.andRespond(withSuccess(responseBody, MediaType.APPLICATION_JSON));
147147

148-
@SuppressWarnings("unused")
149148
Person ludwig = this.restTemplate.getForObject("/composers/{id}", Person.class, 42);
150-
151-
// hotel.getId() == 42
152-
// hotel.getName().equals("Holiday Inn")
149+
assertThat(ludwig.getName()).isEqualTo("Ludwig van Beethoven");
150+
assertThat(ludwig.getSomeDouble()).isEqualTo(1.6035);
153151

154152
this.mockServer.verify();
155153
}

0 commit comments

Comments
 (0)