ValidatorTest.testIsValidDate fails if default locale is not US

Description

From Dietrich.Frank@gmail.com on November 06, 2013 17:26:51

What steps will reproduce the problem? 1. export LANG=de_DE.UTF-8
2. mvn clean -Dtest=ValidatorTest#testIsValidDate test

What is the expected output?

  • the test should pass

What do you see instead?

  • Failed tests: testIsValidDate(org.owasp.esapi.reference.ValidatorTest)

Attached a patch to use SimpleDateFormat with Locale.US instead of using the environment default Locale.

Attachment: testIsValidDate.patch

Original issue: http://code.google.com/p/owasp-esapi-java/issues/detail?id=310

Environment

None

Status

Assignee

Unassigned

Reporter

Max Gelman

Priority

Configure