private static void fseTest(String label, String input, Map<String, Object> context, TimeZone timeZone, Locale locale, String compare, boolean isEmpty) {
fseTest(label, input, context, timeZone, locale, compare, compare, isEmpty);
}
private static void fseTest(String label, String input, Map<String, Object> context, TimeZone timeZone, Locale locale, String compare, Object expand, boolean isEmpty) {
FlexibleStringExpander fse = FlexibleStringExpander.getInstance(input);
doFseTest(label, input, fse, context, timeZone, locale, compare, expand, isEmpty);
assertEquals("static expandString:" + label, compare, FlexibleStringExpander.expandString(input, context, timeZone, locale));
if (input == null) {
assertEquals("static expandString(null, null):" + label, "", FlexibleStringExpander.expandString(input, null));
assertEquals("static expandString(null, null):" + label, "", FlexibleStringExpander.expandString(input, null, locale));
} else {
assertEquals("static expandString(input, null):" + label, input, FlexibleStringExpander.expandString(input, null));
assertEquals("static expandString(input, null):" + label, input, FlexibleStringExpander.expandString(input, null, locale));
}
if (!fse.isEmpty()) {
fse = FlexibleStringExpander.getInstance(input, false);
doFseTest(label, input, fse, context, timeZone, locale, compare, expand, isEmpty);
}
}