Functions { public static String currentDate(TestContext context) { return new CurrentDateFunction().execute(Collections.<String>emptyList(), context); } private  Functions(); static String currentDate(TestContext context); static String currentDate(String dateFormat, TestContext context); static String changeDate(String date, String dateOffset, String dateFormat, TestContext context); static String changeDate(String date, String dateOffset, TestContext context); static String encodeBase64(String content, TestContext context); static String encodeBase64(String content, Charset charset, TestContext context); static String decodeBase64(String content, TestContext context); static String decodeBase64(String content, Charset charset, TestContext context); static String urlEncode(String content, TestContext context); static String urlEncode(String content, Charset charset, TestContext context); static String urlDecode(String content, TestContext context); static String urlDecode(String content, Charset charset, TestContext context); static String digestAuthHeader(String username, String password, String realm, String noncekey, String method, String uri, String opaque, String algorithm, TestContext context); static String randomUUID(TestContext context); static String randomNumber(Long length, TestContext context); static String randomNumber(Long length, boolean padding, TestContext context); static String randomString(Long numberOfLetters, TestContext context); static String randomString(Long numberOfLetters, boolean useNumbers, TestContext context); static String randomString(Long numberOfLetters, String notationMethod, boolean useNumbers, TestContext context); static String randomString(Long numberOfLetters, String notationMethod, TestContext context); static String readFile(String filePath, TestContext context);  }
@Test public void testCurrentDate() throws Exception { new SimpleDateFormat("dd.MM.yyyy").parse(currentDate(context)); }
@Test public void testCurrentDateFormat() throws Exception { new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(currentDate("yyyy-MM-dd'T'HH:mm:ss", context)); }