|
@@ -1,6 +1,6 @@
|
1
|
1
|
package hello;
|
2
|
2
|
|
3
|
|
-import static org.hamcrest.Matchers.is;
|
|
3
|
+import static org.hamcrest.Matchers.equalTo;
|
4
|
4
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
|
5
|
5
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
6
|
6
|
|
|
@@ -32,6 +32,6 @@ public class HelloControllerTest {
|
32
|
32
|
public void getHello() throws Exception {
|
33
|
33
|
mvc.perform(MockMvcRequestBuilders.get("/").accept(MediaType.APPLICATION_JSON))
|
34
|
34
|
.andExpect(status().isOk())
|
35
|
|
- .andExpect(content().string(is("Greetings from Spring Boot!")));
|
|
35
|
+ .andExpect(content().string(equalTo("Greetings from Spring Boot!")));
|
36
|
36
|
}
|
37
|
37
|
}
|