Changed tests
This commit is contained in:
parent
aaa550d718
commit
54b8b99873
@ -61,12 +61,12 @@ class EmployeeControllerTests {
|
|||||||
@Test
|
@Test
|
||||||
void lockAndUnlockUser() throws Exception {
|
void lockAndUnlockUser() throws Exception {
|
||||||
this.mockMvc.perform(
|
this.mockMvc.perform(
|
||||||
patch("/api/employee/ipetrov/blocked")
|
patch("/api/employee/ipetrov/change_state")
|
||||||
.with(httpBasic("pivanov", "HelloWorld1234")))
|
.with(httpBasic("pivanov", "HelloWorld1234")))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andExpect(status().isOk());
|
.andExpect(status().isOk());
|
||||||
this.mockMvc.perform(
|
this.mockMvc.perform(
|
||||||
patch("/api/employee/ipetrov/active")
|
patch("/api/employee/ipetrov/change_state")
|
||||||
.with(httpBasic("pivanov", "HelloWorld1234")))
|
.with(httpBasic("pivanov", "HelloWorld1234")))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andExpect(status().isOk());
|
.andExpect(status().isOk());
|
||||||
@ -75,12 +75,12 @@ class EmployeeControllerTests {
|
|||||||
@Test
|
@Test
|
||||||
void lockAndUnlockUserNotFound() throws Exception {
|
void lockAndUnlockUserNotFound() throws Exception {
|
||||||
this.mockMvc.perform(
|
this.mockMvc.perform(
|
||||||
patch("/api/employee/PetrTestovich/blocked")
|
patch("/api/employee/PetrTestovich/change_state")
|
||||||
.with(httpBasic("pivanov", "HelloWorld1234")))
|
.with(httpBasic("pivanov", "HelloWorld1234")))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andExpect(status().isNotFound());
|
.andExpect(status().isNotFound());
|
||||||
this.mockMvc.perform(
|
this.mockMvc.perform(
|
||||||
patch("/api/employee/PetrTestovich/active")
|
patch("/api/employee/PetrTestovich/change_state")
|
||||||
.with(httpBasic("pivanov", "HelloWorld1234")))
|
.with(httpBasic("pivanov", "HelloWorld1234")))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andExpect(status().isNotFound());
|
.andExpect(status().isNotFound());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user