/openjdk7/jdk/test/java/lang/String/ |
H A D | Regex.java | 32 static void ck(boolean x, boolean ans) throws Exception { argument 33 if (x != ans) 37 static void ck(String x, String ans) throws Exception { argument 38 if (!x.equals(ans)) 42 static void ck(String[] x, String[] ans) throws Exception { argument 43 if (x.length != ans.length) 46 if (!x[i].equals(ans[i]))
|
/openjdk7/jdk/test/java/io/File/ |
H A D | IsAbsolute.java | 34 private static void ck(String path, boolean ans) throws Exception { argument 37 if (x != ans) 38 throw new Exception(path + ": expected " + ans + ", got " + x);
|
H A D | GetAbsolutePath.java | 36 private static void ck(String path, String ans) throws Exception { argument 39 if ((ignoreCase && p.equalsIgnoreCase(ans)) || p.equals(ans)) 42 throw new Exception(path + ": expected " + ans + ", got " + p);
|
H A D | IsHidden.java | 37 private static void ck(String path, boolean ans) throws Exception { argument 40 if (x != ans) 41 throw new Exception(path + ": expected " + ans + ", got " + x);
|
H A D | Cons.java | 90 private static void ok(String ans, String exp) { argument 91 System.err.println(nos(ans) + " <== " + exp); 94 private static void err(String ans, String exp, String got) throws Exception { argument 95 System.err.println(nos(ans) + " <-- " + exp + " ==> " + nos(got)); 98 + ", should be " + nos(ans)); 102 private static void ck(String ans, String exp, String got) argument 105 if ((got == ans) || ((got != null) && got.equals(ans))) ok(ans, exp); 106 else err(ans, ex [all...] |
H A D | FileMethods.java | 34 private static void ck(String op, File got, File ans) throws Exception { argument 35 if (!got.equals(ans))
|
/openjdk7/jdk/test/java/io/pathNames/ |
H A D | General.java | 224 String ans = trimTrailingSlashes(answer); 243 System.err.println(ans + " <-- " + path + " ==> " + x); 247 if (cpath.equals(ans)) { 248 System.err.println(ans + " <== " + path); 250 System.err.println(ans + " <-- " + path + " ==> " + cpath + " MISMATCH"); 253 ", should be " + ans); 268 * String ans Expected answer for the check method (above) 275 String ans, String ask, String slash) 278 check(ans, ask + slash); 280 ans 274 checkSlash(int depth, boolean create, String ans, String ask, String slash) argument 286 checkSlashes(int depth, boolean create, String ans, String ask) argument 307 checkNames(int depth, boolean create, String ans, String ask) argument [all...] |
H A D | GeneralWin32.java | 79 String ans = y.getPath(); 80 check(ans, "XyZzY0123\\FOO_bar_BAZ\\GLORPified"); 81 check(ans, "xyzzy0123\\foo_bar_baz\\glorpified"); 82 check(ans, "XYZZY0123\\FOO_BAR_BAZ\\GLORPIFIED"); 134 String ans = exists ? df.getAbsolutePath() : d; 135 if (!ans.endsWith("\\")) 136 ans = ans + "\\"; 137 checkNames(depth, false, ans, d);
|
/openjdk7/jdk/test/java/net/URL/ |
H A D | Test.java | 161 private void check2(String s, String ans, int prop) { argument 162 if (s == null && ans == null) 164 if ((s == null) || !s.equals(ans))
|
/openjdk7/jdk/test/java/net/URI/ |
H A D | Test.java | 239 private void check2(String s, String ans, int prop) { argument 240 if ((s == null) || !s.equals(ans))
|