i18n-sanitychecker is a library that allows developer to write unit-test for
locale-sensitive functions without relying on “golden data”.
i18n-sanitychecker provides only one public method to match actual strings
against expected patterns. Patterns may contain placeholders for date, time,
numbers, lists. The method behaves similar to other assert methods of JUnit.
i18n-sanitychecker is a library that allows developer to write unit-test for locale-sensitive functions without relying on “golden data”.
i18n-sanitychecker provides only one public method to match actual strings against expected patterns. Patterns may contain placeholders for date, time, numbers, lists. The method behaves similar to other assert methods of JUnit.
Usage
SanityCheckProcessor.assertI18nSanityCheck(pattern, actual_string, locale);
Examples
Placeholders
Additional parameters for placeholders