質問編集履歴

1

MockitoAnnotations.initMocks(this);を追加してAutowiredさせる

2018/09/28 02:04

投稿

uraniwa
uraniwa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -92,6 +92,10 @@
92
92
 
93
93
  public void setup() {
94
94
 
95
+ MockitoAnnotations.initMocks(this);
96
+
97
+ this.member = new Member();
98
+
95
99
  this.member.setId(1);
96
100
 
97
101
  this.member.setName("john");