qianjava / ehcache-spring-annotations

Automatically exported from code.google.com/p/ehcache-spring-annotations
0 stars 0 forks source link

StringCacheKeyGeneratorTest.verifyTestComplexHashCode fails in other parts of the world #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The test fails because the function java.util.Date.toString() takes the
locale into account (time zone and language).

The following modified test works for me:

protected void verifyTestComplexHashCode(MethodInvocation invocation,
String key) {
Assert.assertEquals("[class
com.googlecode.ehcache.annotations.key.MethodInvocationHelper, testMethod2,
class java.lang.Object, [[1, 2, 3, 4], foo, [false, true], [null, "+new
Date(0)+"]]]", key);
}

Original issue reported on code.google.com by tom.quel...@gmail.com on 9 May 2010 at 1:07

GoogleCodeExporter commented 8 years ago
Thanks for the fix. We'll get that in right away.

Original comment by eric.dalquist on 9 May 2010 at 3:10

GoogleCodeExporter commented 8 years ago

Original comment by eric.dalquist on 9 May 2010 at 7:29