BAEL-175 - Integrtion testing minor changes

This commit is contained in:
slavisa-baeldung 2016-08-02 06:33:49 +02:00
parent 6fb230546d
commit 4f9d9502e2
4 changed files with 136 additions and 133 deletions

View File

@ -7,12 +7,15 @@ public class Greeting {
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}

View File

@ -47,7 +47,7 @@ public class GreetControllerTest {
@Test
public void verifyGreetWithPathVariable_2() throws Exception {
this.mockMvc.perform(get("/greetWithPathVariable/{name}","Doe"))
this.mockMvc.perform(get("/greetWithPathVariable/{name}", "Doe"))
.andExpect(status().isOk())
.andExpect(content().contentType("application/json;charset=UTF-8"))
.andExpect(jsonPath("$.message").value("Hello World Doe!!!"));