/openjdk7/jdk/test/java/lang/Thread/ |
H A D | ThreadStateTest.java | 106 private static void checkThreadState(Thread t, Thread.State expected) { argument 107 // wait for the thread to transition to the expected state. 112 while ((state = t.getState()) != expected && retryCount < MAX_RETRY) { 114 throw new RuntimeException("Thread not in expected state yet," + 123 throw new RuntimeException(t.getName() + " expected to have " + 124 expected + " but got null."); 127 if (state != expected) { 128 throw new RuntimeException(t.getName() + " expected to have " + 129 expected + " but got " + state);
|
/openjdk7/langtools/test/tools/javac/api/ |
H A D | TestJavacTaskScanner.java | 100 void check(int value, String name, int expected) { argument 103 if (value < expected * 9 / 10) 104 throw new Error(name + " lower than expected; expected " + expected + "; found: " + value); 105 if (value > expected * 11 / 10) 106 throw new Error(name + " higher than expected; expected " + expected + "; found: " + value);
|
/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | quickSort.cpp | 79 bool QuickSort::compare_arrays(int* actual, int* expected, int length) { argument 81 if (actual[i] != expected[i]) { 83 print_array("Expected array", expected, length);
|
/openjdk7/jdk/test/com/sun/jdi/ |
H A D | CountFilterTest.java | 103 String expected = (String)whereMap.get(event.request()); 104 if (!got.equals(expected)) { 105 failure("FAIL: expected event in " + expected +
|
H A D | FinalLocalsTest.java | 100 private void test(Method method, int which, String name, String expected) { argument 102 System.out.println(" test() comparing expected = " + expected + 104 TreeSet expectedSet = buildSet(expected); 117 //assert expectedSet.isEmpty() : name + " expected set should have been emptied";
|
/openjdk7/jdk/test/demo/zipfs/ |
H A D | Basic.java | 60 String expected = uri.toString() + "!/foo"; 62 if (!actual.equals(expected)) { 64 "', expected '" + expected + "'");
|
/openjdk7/jdk/test/java/beans/PropertyEditor/6380849/ |
H A D | TestPropertyEditor.java | 71 private static void test(Class<?> type, Class<? extends PropertyEditor> expected) { argument 73 if ((actual == null) && (expected != null)) { 74 throw new Error("expected editor is not found"); 76 if ((actual != null) && !actual.getClass().equals(expected)) {
|
/openjdk7/jdk/test/java/lang/Character/ |
H A D | CheckScript.java | 81 Character.UnicodeScript expected = 91 if (script != expected) { 96 expected + "> is expected"); 111 ", of(cp)=<" + script + "> but UNKNOWN is expected");
|
/openjdk7/jdk/test/java/lang/invoke/ |
H A D | CallSiteTest.java | 73 private static void assertEquals(int expected, int actual) { argument 74 if (expected != actual) 75 throw new AssertionError("expected: " + expected + ", actual: " + actual);
|
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/ |
H A D | LotsOfWrites.java | 145 byte expected = 0; 149 if (buf[j] != expected) { 154 expected++;
|
/openjdk7/jdk/test/java/nio/channels/Selector/ |
H A D | ChangingInterests.java | 88 int expected = (to == 0) ? 0 : 1; 89 assertTrue(selected == expected, "Expected " + expected); 102 assertTrue(!readable, "Not expected to be readable"); 108 assertTrue(!writable, "Not expected to be writable");
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | VectorIO.java | 166 String expected = "buffer" + i; 173 if (!message.equals(expected)) 175 + message + ", expected " 176 + expected);
|
H A D | ShortWrite.java | 50 * A task that reads the expected number of bytes and returns the CRC32 98 long expected = computeChecksum(buf); 100 if (actual != expected)
|
/openjdk7/jdk/test/java/nio/file/attribute/AclFileAttributeView/ |
H A D | Basic.java | 78 throw new RuntimeException("Entry 0 is not expected"); 96 throw new RuntimeException("Entry 0 is not expected"); 108 static void assertEquals(List<AclEntry> actual, List<AclEntry> expected) { argument 109 if (!actual.equals(expected)) { 111 System.err.format("Expected: %s\n", expected); 112 throw new RuntimeException("ACL not expected");
|
/openjdk7/langtools/test/tools/javac/6304921/ |
H A D | TestLog.java | 88 private static void check(int found, int expected, String name) { argument 89 if (found == expected) 90 System.err.println(found + " " + name + " found, as expected."); 93 System.err.println("expected: " + expected);
|
/openjdk7/jdk/test/java/text/Format/DateFormat/ |
H A D | ISO8601ZoneTest.java | 37 // time zone name, expected output at TIMESTAMP 149 static void formatTest(String fmt, String expected) throws Exception { argument 152 if (!expected.equals(s)) { 154 + ", expected " + expected); 161 + ", expected " + TIMESTAMP.getTime()); 169 + ", expected " + TIMESTAMP.getTime()); 173 + pos.getIndex() + ", expected " + s.length()); 212 + ", expected=" + expectedErrorIndex
|
/openjdk7/jdk/test/java/util/ResourceBundle/Control/ |
H A D | ExpirationTest.java | 111 private static void check(String s, String expected) { argument 113 if (!s.equals(expected)) { 114 throw new RuntimeException("got '" + s + "', expected '" + expected + "' at " 133 + "expected %d [ms] latency rate: %+.2f%% (expected not more than 1%%)%n"
|
H A D | LoadingStrategiesTest.java | 75 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/sun/net/idn/ |
H A D | PunycodeTest.java | 263 public static void checkResult(String actual, String expected) { argument 264 if (!actual.equals(expected)) { 266 System.out.printf("%15s: %s\n\n", "should be", expected);
|
/openjdk7/langtools/test/tools/javac/ |
H A D | QualifiedThisAndSuper_2.java | 37 void check(String expr, String result, String expected) { argument 38 if (!result.equals(expected)) { 40 " : result " + result + ", expected " + expected);
|
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/KeyWrap/ |
H A D | NISTWrapKAT.java | 29 * expected using NIST test vectors. 60 String expected) throws Exception { 83 byte[] expectedVal = new BigInteger(expected, 16).toByteArray(); 59 testKeyWrap(int keyLen, int dataLen, String expected) argument
|
/openjdk7/jdk/test/java/net/URLConnection/ |
H A D | ResendPostBody.java | 66 byte expected = w[c]; 71 if ((byte)b != expected) {
|
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | SocketOptionTests.java | 45 throw new RuntimeException("value not as expected"); 53 List<? extends SocketOption<?>> expected = Arrays.asList(SO_SNDBUF, SO_RCVBUF, 56 for (SocketOption opt: expected) {
|
/openjdk7/jdk/test/java/nio/charset/CharsetEncoder/ |
H A D | Flush.java | 91 byte[] expected = "\u001b$B!\"\u001b(B".getBytes("ASCII"); 93 check(Arrays.equals(contents, expected));
|
/openjdk7/jdk/src/macosx/native/jobjc/src/tests/java/com/apple/jobjc/ |
H A D | SubclassingTest.java | 149 final String expected = "foobarfoobarfoobar"; 156 assertEquals(expected, Utils.get().strings().javaString(ret)); 165 final double expected = 12.5D; 175 assertEquals(expected, ret);
|