BAEL-175 - Integrtion testing minor changes
This commit is contained in:
parent
6fb230546d
commit
4f9d9502e2
@ -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;
|
||||
}
|
||||
|
@ -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!!!"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user