test_class.file: web-framework/src/test/java/org/unidal/web/jsp/function/FormatFunctionTest.java
test_class.identifier: FormatFunctionTest
test_case.body: @SuppressWarnings("deprecation")
     @Test
     public void testFormat() {
        Assert.assertEquals("12345", FormatFunction.format(12345, "0.#"));
        Assert.assertEquals("12345.0", FormatFunction.format(12345, "0.0"));
        Assert.assertEquals("12,345.0", FormatFunction.format(12345, "#,##0.0"));
        Assert.assertEquals(String.valueOf(new Date().getYear() + 1900), FormatFunction.format(new Date(), "yyyy"));
     }
test_case.class_method_signature: FormatFunctionTest.testFormat()
test_case.full_signature: @SuppressWarnings("deprecation") @Test public void testFormat()
test_case.identifier: testFormat
test_case.invocations: assertEquals format assertEquals format assertEquals format assertEquals valueOf getYear format
test_case.modifiers: @SuppressWarnings("deprecation") @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFormat()
focal_class.file: web-framework/src/main/java/org/unidal/web/jsp/function/FormatFunction.java
focal_class.identifier: FormatFunction
focal_class.class_method_signature: FormatFunction.format(Object obj, String pattern)
focal_class.full_signature: @FunctionMeta(description = "Format object using message pattern", example = "${w:format(payload.dateFrom,'yyyy-MM-dd')}") public static String format(Object obj, String pattern)
focal_class.identifier: format
focal_class.modifiers: @FunctionMeta(description = "Format object using message pattern", example = "${w:format(payload.dateFrom,'yyyy-MM-dd')}") public static
focal_class.parameters: (Object obj, String pattern)
focal_class.return: String
focal_class.signature: String format(Object obj, String pattern)
focal_class.class_method_signature: FormatFunction.formatNumber(Number data, String pattern, String suffix)
focal_class.full_signature: @FunctionMeta(description = "Format number with message pattern with auto scaling", example = "${w:formatNumber(12345, '0.#', 'B')}") public static String formatNumber(Number data, String pattern, String suffix)
focal_class.identifier: formatNumber
focal_class.modifiers: @FunctionMeta(description = "Format number with message pattern with auto scaling", example = "${w:formatNumber(12345, '0.#', 'B')}") public static
focal_class.parameters: (Number data, String pattern, String suffix)
focal_class.return: String
focal_class.signature: String formatNumber(Number data, String pattern, String suffix)
focal_class.class_method_signature: FormatFunction.percentage(int divisor, int divident, int precision)
focal_class.full_signature: @FunctionMeta(description = "Format number in percentage", example = "${w:percentage(4, 11, 2)}") public static String percentage(int divisor, int divident, int precision)
focal_class.identifier: percentage
focal_class.modifiers: @FunctionMeta(description = "Format number in percentage", example = "${w:percentage(4, 11, 2)}") public static
focal_class.parameters: (int divisor, int divident, int precision)
focal_class.return: String
focal_class.signature: String percentage(int divisor, int divident, int precision)
focal_class.class_method_signature: FormatFunction.shorten(String str, int maxLength)
focal_class.full_signature: @FunctionMeta(description = "Shorten a message", example = "${w:shorten('123456789', 5)} will be '1...9'") public static String shorten(String str, int maxLength)
focal_class.identifier: shorten
focal_class.modifiers: @FunctionMeta(description = "Shorten a message", example = "${w:shorten('123456789', 5)} will be '1...9'") public static
focal_class.parameters: (String str, int maxLength)
focal_class.return: String
focal_class.signature: String shorten(String str, int maxLength)
focal_method.body: @FunctionMeta(description = "Format object using message pattern", example = "${w:format(payload.dateFrom,'yyyy-MM-dd')}")
  	public static String format(Object obj, String pattern) {
  		return Formats.forObject().format(obj, pattern);
  	}
focal_method.class_method_signature: FormatFunction.format(Object obj, String pattern)
focal_method.full_signature: @FunctionMeta(description = "Format object using message pattern", example = "${w:format(payload.dateFrom,'yyyy-MM-dd')}") public static String format(Object obj, String pattern)
focal_method.identifier: format
focal_method.invocations: format forObject
focal_method.modifiers: @FunctionMeta(description = "Format object using message pattern", example = "${w:format(payload.dateFrom,'yyyy-MM-dd')}") public static
focal_method.parameters: (Object obj, String pattern)
focal_method.return: String
focal_method.signature: String format(Object obj, String pattern)