質問編集履歴
2
stackoverflow記載追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -135,4 +135,6 @@
|
|
135
135
|
}
|
136
136
|
}
|
137
137
|
|
138
|
-
```
|
138
|
+
```
|
139
|
+
上記質問は[stackoverflow](https://ja.stackoverflow.com/questions/56891/junitspringbootjparepository-saveandflush%e3%81%a7mockit-dothrow%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%97%e3%81%a6%e3%82%82exception%e3%81%8c%e7%99%ba%e7%94%9f)でも投稿しています。
|
140
|
+
※stackoverflowで回答・解決があった場合は、teratailにも記載します。
|
1
Exceptionが発生したソースコードのservice.insert("user");をservice.insert(userMst);に修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -127,7 +127,7 @@
|
|
127
127
|
{
|
128
128
|
// TODO:throwされた
|
129
129
|
doThrow(new NullPointerException()).when(rep).saveAndFlush(userMst);
|
130
|
-
actual = service.insert(
|
130
|
+
actual = service.insert(userMst);
|
131
131
|
}catch(Exception e)
|
132
132
|
{
|
133
133
|
}
|