File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ cleanFiles += compiledSrcDir
22
22
libraryDependencies ++= Seq (
23
23
// TODO sbtがScala 2.13対応したら再び有効化
24
24
// "org.scala-sbt" % "sbt" % sbtVersion.value,
25
- " org.mockito" % " mockito-core" % " 4.7 .0" ,
25
+ " org.mockito" % " mockito-core" % " 4.8 .0" ,
26
26
" org.scalacheck" %% " scalacheck" % " 1.16.0" ,
27
27
" org.scalatest" %% " scalatest" % " 3.2.13" // mdocで使うので、テストライブラリだが、わざとcompileスコープ
28
28
)
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ BDDでテストを書くことによってテストによってどのような
398
398
` build.sbt ` に以下を追記することで利用可能になります。
399
399
400
400
``` scala
401
- libraryDependencies += " org.mockito" % " mockito-core" % " 4.7 .0" % " test"
401
+ libraryDependencies += " org.mockito" % " mockito-core" % " 4.8 .0" % " test"
402
402
```
403
403
404
404
せっかくなので、先ほど用意したCalcクラスのモックを用意して、モックにsumの振る舞いを仕込んで見ましょう。
You can’t perform that action at this time.
0 commit comments