Created
December 16, 2019 07:11
-
-
Save zarinfam/d3782a68399216b5a135faad8667186b to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Autowired | |
private MockMvc mockMvc; | |
@Test | |
public void noParamGreetingShouldReturnDefaultMessage() throws Exception { | |
this.mockMvc.perform(get("/greeting")).andDo(print()).andExpect(status().isOk()) | |
.andExpect(jsonPath("$.content").value("Hello, World!")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment