@@ -4,7 +4,7 @@ import java.util.{List => JList, Map => JMap}
4
4
5
5
import io .cucumber .datatable .DataTable
6
6
import io .cucumber .scala .{EN , ScalaDsl }
7
- import junit .framework . Assert ._
7
+ import org . junit .Assert .assertEquals
8
8
import tests .cukes .model .{Cukes , Person , Snake }
9
9
10
10
import scala .jdk .CollectionConverters ._
@@ -25,7 +25,7 @@ class CukesStepDefinitions extends ScalaDsl with EN {
25
25
calorieCount = maps.asScala.map(_.get(" CALORIES" )).map(_.toDouble).fold(0.0 )(_ + _)
26
26
}
27
27
And (""" have eaten {double} calories today""" ) { (calories : Double ) =>
28
- assertEquals(calories, calorieCount)
28
+ assertEquals(calories, calorieCount, 0.0 )
29
29
}
30
30
31
31
var intBelly : Int = 0
@@ -61,7 +61,7 @@ class CukesStepDefinitions extends ScalaDsl with EN {
61
61
doubleBelly = arg0
62
62
}
63
63
Then (""" ^I should have one and a half doubles in my belly$""" ) { () =>
64
- assertEquals(1.5 , doubleBelly)
64
+ assertEquals(1.5 , doubleBelly, 0.0 )
65
65
}
66
66
67
67
var floatBelly : Float = 0.0f
@@ -70,7 +70,7 @@ class CukesStepDefinitions extends ScalaDsl with EN {
70
70
floatBelly = arg0
71
71
}
72
72
Then (""" ^I should have one and a half floats in my belly$""" ) { () =>
73
- assertEquals(1.5f , floatBelly)
73
+ assertEquals(1.5f , floatBelly, 0.0 )
74
74
}
75
75
76
76
var shortBelly : Short = 0 .toShort
0 commit comments