Polishing

Adding `@author` tags to modified files.
Remove Hamcrest usage.

Original pull request #602
Related tickest #583
This commit is contained in:
Jens Schauder
2021-01-29 10:41:19 +01:00
parent 9db9632c4b
commit 66a78013a3
6 changed files with 15 additions and 9 deletions

View File

@@ -15,9 +15,6 @@
*/
package example.users;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;
import example.users.UserController.UserPayload;
import org.junit.jupiter.api.Test;
@@ -39,11 +36,15 @@ import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import static org.assertj.core.api.Assertions.*;
/**
* Integration tests for {@link UserController} to demonstrate client-side resilience of the payload type against
* changes in the representation.
*
* @author Oliver Gierke
* @author Divya Srivastava
* @author Jens Schauder
*/
@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@@ -99,7 +100,7 @@ public class UserControllerClientTests {
private static void assertDave(UserPayload payload) {
assertThat(payload.getFirstname(), is("Dave"));
assertThat(payload.getLastname(), is("Matthews"));
assertThat(payload.getFirstname()).isEqualTo("Dave");
assertThat(payload.getLastname()).isEqualTo("Matthews");
}
}