Searched defs:got (Results 1 - 18 of 18) sorted by relevance

/openjdk7/jdk/test/java/io/File/
H A DFileMethods.java34 private static void ck(String op, File got, File ans) throws Exception { argument
35 if (!got.equals(ans))
H A DCons.java94 private static void err(String ans, String exp, String got) throws Exception { argument
95 System.err.println(nos(ans) + " <-- " + exp + " ==> " + nos(got));
97 throw new Exception("Mismatch: " + exp + " ==> " + nos(got)
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, exp, got);
H A DGetXSpace.java82 static void fail(String p, long exp, String cmp, long got) { argument
83 String s = String.format("'%s': %d %s %d", p, exp, cmp, got);
/openjdk7/jdk/test/java/lang/StringBuffer/
H A DExceptions.java33 private static void fail(Throwable ex, String s, Throwable got) { argument
38 + " got "
39 + got.getClass().getName() + ": " + got.getMessage()
H A DSupplementary.java378 static void check(boolean err, String s, int got, int expected) { argument
381 + " returned an unexpected value. got "
382 + toHexString(got)
388 static void check(boolean err, String s, StringBuffer got, String expected) { argument
391 + " returned an unexpected value. got <"
392 + toHexString(new String(got))
/openjdk7/jdk/test/java/lang/StringBuilder/
H A DExceptions.java33 private static void fail(Throwable ex, String s, Throwable got) { argument
38 + " got "
39 + got.getClass().getName() + ": " + got.getMessage()
H A DSupplementary.java378 static void check(boolean err, String s, int got, int expected) { argument
381 + " returned an unexpected value. got "
382 + toHexString(got)
388 static void check(boolean err, String s, StringBuilder got, String expected) { argument
391 + " returned an unexpected value. got <"
392 + toHexString(got.toString())
/openjdk7/jdk/test/sun/util/calendar/
H A DBug6653944.java59 private static void compare(int got, int expected) { argument
60 if (got != expected) {
61 System.err.println("got " + got + ", expected " + expected);
66 private static void compare(Calendar got, Calendar expected) { argument
67 if (!got.equals(expected)) {
68 System.err.println("got " + got + ", expected " + expected);
/openjdk7/jdk/test/java/util/Formatter/
H A DBasic.java54 static void fail(String fs, String exp, String got) { argument
55 String s = "'" + fs + "': Expected '" + exp + "', got '" + got + "'";
70 static void ck(String fs, String exp, String got) { argument
71 if (!exp.equals(got))
72 fail(fs, exp, got);
/openjdk7/jdk/test/javax/management/mxbean/
H A DOverloadTest.java61 private static void check(String got, String expect) { argument
62 if (!expect.equals(got)) {
63 failure = "FAILED: got \"" + got + "\", expected \"" + expect + "\"";
/openjdk7/jdk/test/java/nio/Buffer/
H A DBasic.java78 String got, char gotChar)
97 + ", got '" + gotChar + "'=0x"
98 + got);
101 static void fail(Buffer b, long expected, long got) { argument
104 Long.toHexString(got), (char)got);
112 static void ck(Buffer b, long got, long expected) { argument
113 if (expected != got)
114 fail(b, expected, got);
117 static void ck(Buffer b, float got, floa argument
76 fail(Buffer b, String expected, char expectedChar, String got, char gotChar) argument
124 ck(Buffer b, double got, double expected) argument
[all...]
/openjdk7/jdk/test/java/nio/charset/coders/
H A DCheck.java87 private void mismatch(String s, byte[] expected, byte[] got) { argument
92 + "}, got {"
93 + Util.toString(got)
98 private void mismatch(int i, byte[] ba, String expected, String got) { argument
105 + "\", got \""
106 + Util.toString(got)
/openjdk7/jdk/test/java/util/ResourceBundle/Control/
H A DLoadingStrategiesTest.java75 private static void check(String msg, String got, String expected) { argument
76 if (!got.equals(expected)) {
77 error("%s: got \"%s\", expected \"%s\"%n", msg, got, expected);
/openjdk7/jdk/test/java/lang/Appendable/
H A DBasic.java92 static void fail(String fs, String exp, String got) { argument
93 String s = "'" + fs + "': Expected '" + exp + "', got '" + got + "'";
100 static void ck(String s, String exp, String got) { argument
101 if (!exp.equals(got))
102 fail(s, exp, got);
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/
H A DNonAutoClose.java94 void expectValue(int got, int expected, String msg) throws IOException { argument
96 System.out.println(msg + ": read (" + got + ")");
98 if (got != expected) {
99 throw new IOException(msg + ": read (" + got
/openjdk7/jdk/test/java/lang/String/
H A DSupplementary.java680 static void check(boolean err, String s, int got, int expected) { argument
683 + " returned an unexpected value. got "
684 + toHexString(got)
/openjdk7/jdk/test/java/net/ipv6tests/
H A DTests.java137 /* check the time got is within 50% of the time expected */
138 public static void checkTime (long got, long expected) { argument
139 dprintln ("checkTime: got " + got + " expected " + expected);
142 if (got > upper || got < lower) {
143 throw new RuntimeException ("checkTime failed: got " + got + " expected " + expected);
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/
H A DParseException.java141 static ParseException badRepIDPrefix (Scanner scanner, String entry, String expected, String got) argument
143 return arg3 ("badRepIDPrefix", scanner, entry, expected, got);
322 static ParseException syntaxError (Scanner scanner, int expected, int got) argument
324 return arg2 ("syntax1", scanner, Token.toString (expected), Token.toString (got));
327 static ParseException syntaxError (Scanner scanner, String expected, String got) argument
329 return arg2 ("syntax1", scanner, expected, got);
332 static ParseException syntaxError (Scanner scanner, int[] expected, int got) argument
334 return syntaxError (scanner, expected, Token.toString (got));
337 static ParseException syntaxError (Scanner scanner, int[] expected, String got) argument
342 return arg2 ("syntax2", scanner, tokenList, got);
[all...]

Completed in 1913 milliseconds