質問編集履歴

1

.andExpectの修正

2019/11/06 02:41

投稿

g-p-sd
g-p-sd

スコア17

test CHANGED
File without changes
test CHANGED
@@ -44,10 +44,10 @@
44
44
 
45
45
  .with(SecurityMockMvcRequestPostProcessors.csrf()))
46
46
 
47
- .andExpect(status().isOk())
47
+ .andExpect(status().isFound())
48
48
 
49
49
  .andExpect(model().hasNoErrors())
50
50
 
51
- .andExpect(view().name("/master"));
51
+ .andExpect(view().name("redirect:/master"));
52
52
 
53
53
  ```