public static void helpTestParseTimestamp(String tsStr, String format, String expected) throws FunctionExecutionException { Object actual = FunctionMethods.parseTimestamp(new CommandContext(), tsStr, format); assertEquals("parseTimestamp(" + tsStr + ", " + format + ") failed", expected.toString(), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ new Constant(actual).toString()); }