File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
examples/java-helloworld/src/test/java/cucumber/examples/java/helloworld Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ public void I_did_laundry_time_ago(@Transform(ChronicConverter.class) Calendar l
28
28
29
29
@ Then ("^my laundry day must have been \" ([^\" ]*)\" $" )
30
30
public void my_laundry_day_must_have_been (Calendar day ) throws Throwable {
31
- assertEquals (day , laundryDate );
31
+ // Ideally we'd compare the Calendar instances here, but due to Chronic's
32
+ // use of default Locale and Cucumber's inability to set its Locale to e.g.
33
+ // en-GB, this would cause failures on machines that don't have Locale.US or Locale.ENGLISH
34
+ // as the default Locale. For more details see https://github.com/cucumber/cucumber-jvm/issues/440
35
+ assertEquals (day .getTimeInMillis (), laundryDate .getTimeInMillis ());
32
36
}
33
37
34
38
public static class ChronicConverter extends Transformer <Calendar > {
You can’t perform that action at this time.
0 commit comments