RenaimngÄ#
This commit is contained in:
parent
e28a3f010c
commit
5ec316473b
@ -32,7 +32,7 @@ class GetEmployeesFromProjectTest {
|
|||||||
private RestTemplate restTemplate;
|
private RestTemplate restTemplate;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void getProjectTest() throws Exception {
|
void getEmployeesFromProjectTest() throws Exception {
|
||||||
ProjectEntity project = new ProjectEntity();
|
ProjectEntity project = new ProjectEntity();
|
||||||
project.setId(1);
|
project.setId(1);
|
||||||
project.setComment("comment");
|
project.setComment("comment");
|
||||||
@ -55,7 +55,7 @@ class GetEmployeesFromProjectTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void getProjectShouldReturnNotFoundResponseWhenProjectIsNotFound() throws Exception {
|
void getEmployeesFromProjectShouldReturnNotFoundResponseWhenProjectIsNotFound() throws Exception {
|
||||||
this.mockMvc.perform(get("/projects/1111/employees")
|
this.mockMvc.perform(get("/projects/1111/employees")
|
||||||
.header(HttpHeaders.AUTHORIZATION, getBearerToken())
|
.header(HttpHeaders.AUTHORIZATION, getBearerToken())
|
||||||
).andExpect(status().isNotFound());
|
).andExpect(status().isNotFound());
|
||||||
|
Loading…
Reference in New Issue
Block a user