/openjdk10/jdk/test/sun/net/www/httptest/ |
H A D | ClosedChannelList.java | 54 public synchronized void check () { method in class:ClosedChannelList 55 check (false); 59 check (true); 62 public synchronized void check (boolean forceClose) { method in class:ClosedChannelList
|
/openjdk10/langtools/test/tools/javac/ |
H A D | QualifiedThisExactMatch.java | 59 void check(Object x, Object y) throws Exception { method in class:QualifiedThisExactMatch 69 check(a, a.getThisA()); 70 check(a, b.getThisA()); 71 check(b, b.getThisB());
|
/openjdk10/nashorn/test/script/basic/ |
H A D | dataview_new.js | 33 // check ArrayBufferView property values of DataView instance 34 function check(dv, buf, offset, length) { function 49 check(new DataView(buffer), buffer, 0, 12); 50 check(new DataView(buffer, 2), buffer, 2, 10); 51 check(new DataView(buffer, 4, 8), buffer, 4, 8);
|
/openjdk10/jdk/test/javax/imageio/plugins/tiff/ |
H A D | TIFFImageReadParamTest.java | 28 * @summary check TIFFDirectory manipulation 84 private void check(boolean ok, String msg) { method in class:TIFFImageReadParamTest 105 check(f.getType() == TIFFTag.TIFF_ASCII, "field type != ASCII"); 106 check(f.getCount() == 1, "invalid " + what + " data count"); 107 check(f.getValueAsString(0).equals(data), 150 check(img.getWidth() == SZ, "invalid image width"); 151 check(img.getHeight() == SZ, "invalid image height"); 153 check(c.equals(C), "invalid image color"); 165 check(ni == 1, "invalid number of images: " + ni); 173 // just in case, check imag [all...] |
/openjdk10/jdk/test/java/io/InputStream/ |
H A D | ReadNBytes.java | 68 check(nread == readBytes.length, 70 check(Arrays.equals((tmp = Arrays.copyOf(inputBytes, nread)), readBytes), 72 check(!in.isClosed(), "Stream unexpectedly closed"); 77 check(nread == length - readBytes.length, 79 check(Arrays.equals((tmp = Arrays.copyOfRange(inputBytes, readBytes.length, length)), 83 check((x = in.read()) == -1, 85 check((x = in.read(tmp)) == -1, 87 check((x = in.read(tmp, 0, tmp.length)) == -1, 89 check((x = in.readNBytes(tmp, 0, tmp.length)) == 0, 91 check(!i 100 static void check(boolean cond, Object ... failedArgs) { method in class:ReadNBytes [all...] |
H A D | ReadAllBytes.java | 68 check((x = in.read()) == -1, 70 check((x = in.read(tmp)) == -1, 72 check((x = in.read(tmp, 0, tmp.length)) == -1, 74 check(in.readAllBytes().length == 0, 76 check(expectedLength == readBytes.length, 78 check(Arrays.equals(expectedBytes, readBytes), 80 check(!in.isClosed(), "Stream unexpectedly closed"); 89 static void check(boolean cond, Object ... failedArgs) { method in class:ReadAllBytes
|
/openjdk10/jdk/test/java/security/cert/CertPathValidatorException/ |
H A D | Serial.java | 72 check(!cpve1.getMessage().equals(cpve2.getMessage()), 74 check(!cpve1.getCause().getMessage().equals(cpve2.getCause().getMessage()), 76 check(!cpve1.getCertPath().equals(cpve2.getCertPath()), 78 check(cpve1.getIndex() != cpve2.getIndex(), 80 check(cpve1.getReason() != cpve2.getReason(), 89 check(!cpve1.getMessage().equals(cpve2.getMessage()), 91 check(!cpve1.getCause().getMessage().equals(cpve2.getCause().getMessage()), 93 check(!cpve1.getCertPath().equals(cpve2.getCertPath()), 95 check(cpve1.getIndex() != cpve2.getIndex(), 98 check(cpve 107 private static void check(boolean expr, String message) { method in class:Serial [all...] |
/openjdk10/jdk/test/java/util/Collections/ |
H A D | AsLifoQueue.java | 39 check(deq.addAll(Arrays.asList("b", "a", "c"))); 41 check(deq.add("d")); 44 check(q.add("e")); 52 check(q.isEmpty()); equal(q.size(), 0); 53 check(q.add("a")); check(! q.isEmpty()); equal(q.size(), 1); 54 check(q.offer("b")); 55 check(q.add("c")); 57 check(! q.offer("d")); 70 check( 83 static void check(boolean cond) {if (cond) pass(); else fail();} method in class:AsLifoQueue [all...] |
H A D | EmptyIterator.java | 59 check(e == emptyEnumeration()); 60 check(!e.hasMoreElements()); 66 check(it == emptyIterator()); 67 check(! it.hasNext()); 75 check(m == emptyMap()); 76 check(m.entrySet().iterator() == 78 check(m.values().iterator() == emptyIterator()); 79 check(m.keySet().iterator() == emptyIterator()); 96 check(c.toArray(t) == t); 101 check( 124 void check(boolean cond) {if (cond) pass(); else fail();} method in class:EmptyIterator [all...] |
/openjdk10/jdk/test/java/io/FileOutputStream/ |
H A D | OpsAfterClose.java | 27 * @summary Test if FileOutputStream methods will check if the stream 35 WRITE { boolean check(FileOutputStream r) { 45 WRITE_BUF { boolean check(FileOutputStream r) { 55 WRITE_BUF_OFF { boolean check(FileOutputStream r) { 66 GET_CHANNEL { boolean check(FileOutputStream r) { 70 GET_FD { boolean check(FileOutputStream r) { 79 CLOSE { boolean check(FileOutputStream r) { 89 abstract boolean check(FileOutputStream r); method in class:OpsAfterClose 103 " on FileOutputStream, check the messages"); 114 result = op.check( [all...] |
/openjdk10/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/ |
H A D | StateTestService.java | 54 static void check(boolean okay) { method in class:StateTestService 89 check( sc.isBlocking() ); 90 check( sc.socket().isBound() ); 91 check( sc.socket().isConnected() ); 96 check( ssc.isBlocking() ); 97 check( ssc.socket().isBound() ); 102 check( dc.isBlocking() ); 103 check( dc.socket().isBound() );
|
/openjdk10/jdk/test/java/util/concurrent/ExecutorService/ |
H A D | Invoke.java | 56 static void check(boolean condition, String msg) { method in class:Invoke 60 static void check(boolean condition) { method in class:Invoke 61 check(condition, "Assertion failure"); 76 check(futures.size() == tasks.size()); 77 check(count.get() == tasks.size()); 81 check(gauss == ((tasks.size()+1)*tasks.size())/2); 85 check(single.invokeAny(tasks) == save + 1); 86 check(count.get() == save + 1);
|
/openjdk10/langtools/test/tools/javac/lambda/methodReference/ |
H A D | MethodRefSingleRefEvalBridge.java | 56 ZZ check() { method in class:MethodRefSingleRefEvalBridge 63 SAM s = check()::four;
|
H A D | MethodRefQualifier1.java | 43 MethodRefQualifier1 check() { method in class:MethodRefQualifier1 56 SAM s = check()::ido;
|
/openjdk10/nashorn/test/script/sandbox/ |
H A D | doprivileged.js | 31 function check(e) { function 48 check(e);
|
/openjdk10/jdk/test/java/util/concurrent/CompletableFuture/ |
H A D | Basic.java | 73 check(cf.isDone(), "Expected isDone to be true, got:" + cf); 74 check(!cf.isCompletedExceptionally(), "Expected isCompletedExceptionally to return false"); 75 check(!cf.isCancelled(), "Expected isCancelled to be false"); 76 check(!cf.cancel(true), "Expected cancel to return false"); 77 check(cf.toString().contains("[Completed normally]")); 78 check(cf.complete(null) == false, "Expected complete() to fail"); 79 check(cf.completeExceptionally(new Throwable()) == false, 101 catch (ExecutionException x) { if (cancelled) check(x.getCause() instanceof CancellationException); else pass(); } 104 catch (ExecutionException x) { if (cancelled) check(x.getCause() instanceof CancellationException); else pass(); } 105 check(c 869 static void check(boolean cond) {if (cond) pass(); else fail();} method in class:Basic 870 static void check(boolean cond, String msg) {if (cond) pass(); else fail(msg);} method in class:Basic [all...] |
/openjdk10/hotspot/test/compiler/codegen/ |
H A D | Test6378821.java | 51 static void check(int i, int expected, int result) { method in class:Test6378821 57 static void check(long l, int expected, int result) { method in class:Test6378821 63 static void sub(int i) { check(i, fint(i), fcomp(i) ); } 64 static void sub(int[] ia) { check(ia[0], fint(ia), fcomp(ia)); } 65 static void sub(long l) { check(l, fint(l), fcomp(l) ); } 66 static void sub(long[] la) { check(la[0], fint(la), fcomp(la)); }
|
/openjdk10/jdk/src/java.base/share/native/libjava/ |
H A D | SecurityManager.c | 38 check(JNIEnv *env, jobject this) function 73 if (!check(env, this)) { 84 if (!check(env, this)) { 95 if (!check(env, this)) { 107 if (!check(env, this)) { 123 if (!check(env, this)) {
|
/openjdk10/jdk/test/java/io/DataInputStream/ |
H A D | OpsAfterClose.java | 27 * @summary Test if DataInputStream methods will check if the stream 35 READ { boolean check(DataInputStream is) { 46 READ_BUF { boolean check(DataInputStream is) { 57 READ_BUF_OFF { boolean check(DataInputStream is) { 69 AVAILABLE { boolean check(DataInputStream is) { 79 SKIP { boolean check(DataInputStream is) { 89 MARK { boolean check(DataInputStream is) { 93 RESET { boolean check(DataInputStream is) { 102 MARK_SUPPORTED { boolean check(DataInputStream is) { 106 CLOSE { boolean check(DataInputStrea 235 abstract boolean check(DataInputStream is); method in class:OpsAfterClose [all...] |
/openjdk10/jdk/test/java/lang/Float/ |
H A D | ParseFloat.java | 42 private static void check(String val) { method in class:ParseFloat 120 private static void check(String val, float expected) { method in class:ParseFloat 124 check(val); 128 check(new String(""+Float.MIN_VALUE), Float.MIN_VALUE); 129 check(new String(""+Float.MAX_VALUE), Float.MAX_VALUE); 131 check("10", (float) 10.0); 132 check("10.0", (float) 10.0); 133 check("10.01", (float) 10.01); 135 check("-10", (float) -10.0); 136 check(" [all...] |
/openjdk10/jdk/test/java/security/SecureRandom/ |
H A D | GetAlgorithm.java | 52 check(mech, SecureRandom.getInstance(mech)); 56 check("DRBG", SecureRandom.getInstance("DRBG")); 62 check("unknown", new MySecureRandom()); 69 check("unknown", sr); 75 check("SHA1PRNG", sr); 80 private static void check(String s1, SecureRandom sr) throws Exception { method in class:GetAlgorithm
|
/openjdk10/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | ChangingAddress.java | 36 static void check(DatagramSocket ds, DatagramChannel dc) { method in class:ChangingAddress 57 check(ds, dc); 61 check(ds, dc); 65 check(ds, dc); 70 check(ds, dc); 74 check(ds, dc);
|
/openjdk10/langtools/test/tools/javac/processing/model/element/8009367/ |
H A D | TestQualifiedNameUsed.java | 59 Assert.check(qs.length == 1); 60 Assert.check(qs[0] instanceof Q); 63 Assert.check(ps.length == 1); 64 Assert.check(ps[0] instanceof p.Q); 67 Assert.check(rs.length == 1); 68 Assert.check(rs[0] instanceof p.R.Q);
|
/openjdk10/jdk/test/javax/management/mxbean/ |
H A D | OverloadTest.java | 45 check(p.notOverloaded(5), "notOverloaded"); 46 check(p.overloaded(), "overloaded()"); 47 check(p.overloaded(5), "overloaded(int)"); 48 check(p.overloaded("x"), "overloaded(String)"); 49 check(p.overloaded(36, 64), "overloaded(int, int)"); 62 private static void check(String got, String expect) { method in class:OverloadTest
|
/openjdk10/jdk/test/java/util/concurrent/BlockingQueue/ |
H A D | LastElement.java | 58 check(! q.isEmpty() && q.size() == 2); 59 check(q.remove(one)); 60 check(q.remove(two)); 61 check(q.isEmpty() && q.size() == 0); 63 try {check(q.take() == three);} 65 check(q.isEmpty() && q.size() == 0); 66 check(noRetention(q)); 71 check(q.offer(two)); 72 check(! q.isEmpty() && q.size() == 2); 74 check( 111 void check(boolean cond) {if (cond) pass(); else fail();} method in class:LastElement [all...] |