Lines Matching defs:fs

51     private static void test(String fs, String exp, Object ... args) {
53 f.format(fs, args);
54 ck(fs, exp, f.toString());
57 private static void test(Locale l, String fs, String exp, Object ... args)
60 f.format(fs, args);
61 ck(fs, exp, f.toString());
64 private static void test(String fs, Object ... args) {
66 f.format(fs, args);
67 ck(fs, "fail", f.toString());
70 private static void test(String fs) {
72 f.format(fs, "fail");
73 ck(fs, "fail", f.toString());
76 private static void testSysOut(String fs, String exp, Object ... args) {
83 System.out.format(Locale.US, fs, args);
91 fail(fs, exp, got);
92 ck(fs, exp, got);
96 fail(fs, ex.getClass());
98 fail(fs, ex.getClass());
106 fail(fs, ex.getClass());
111 private static void tryCatch(String fs, Class<?> ex) {
114 test(fs);
120 fail(fs, ex);
125 private static void tryCatch(String fs, Class<?> ex, Object ... args) {
128 test(fs, args);
134 fail(fs, ex);
140 private static void testDateTime(String fs, String exp, Calendar c) {
141 testDateTime(fs, exp, c, true);
144 private static void testDateTime(String fs, String exp, Calendar c, boolean upper) {
150 test(fs, exp, c);
151 test((Locale)null, fs, exp, c);
152 test(Locale.US, fs, exp, c);
156 String nexp = (fs.equals("%tZ") || fs.equals("%TZ")
157 || fs.equals("%tc") || fs.equals("%Tc")
163 test(fs, nexp, d);
164 test((Locale)null, fs, nexp, d);
165 test(Locale.US, fs, nexp, d);
169 test(fs, nexp, l);
170 test((Locale)null, fs, nexp, l);
171 test(Locale.US, fs, nexp, l);
175 testDateTime(Pattern.compile("t").matcher(fs).replaceFirst("T"),