Searched refs:check (Results 126 - 150 of 986) sorted by relevance

1234567891011>>

/openjdk10/jdk/test/javax/swing/MultiUIDefaults/
H A DTest6860438.java41 void check(Object key, Object value, boolean present, int size) { method in class:Test6860438
42 check(UIManager.get(key) == value, "UIManager.get()");
43 check(UIManager.getDefaults().size() == size, "MultiUIDefaults.size()");
50 // check MultiUIDefaults.entrySet()
55 check(e.getValue() == value, "MultiUIDefaults.entrySet()");
59 check(found == present, "MultiUIDefaults.entrySet()");
70 check(found == present, error);
73 void check(boolean condition, String methodName) { method in class:Test6860438
84 check(KEY, VALUE, true, size + 1);
88 check(KE
[all...]
/openjdk10/langtools/test/tools/doclint/
H A DCoverageExtras.java43 check(HtmlTag.A, HtmlTag.valueOf("A"), HtmlTag.values());
44 check(HtmlTag.Attr.ABBR, HtmlTag.Attr.valueOf("ABBR"), HtmlTag.Attr.values());
45 check(HtmlTag.AttrKind.INVALID, HtmlTag.AttrKind.valueOf("INVALID"), HtmlTag.AttrKind.values());
46 check(HtmlTag.BlockType.BLOCK, HtmlTag.BlockType.valueOf("BLOCK"), HtmlTag.BlockType.values());
47 check(HtmlTag.EndKind.NONE, HtmlTag.EndKind.valueOf("NONE"), HtmlTag.EndKind.values());
48 check(HtmlTag.Flag.EXPECT_CONTENT, HtmlTag.Flag.valueOf("EXPECT_CONTENT"), HtmlTag.Flag.values());
50 check(Checker.Flag.TABLE_HAS_CAPTION, Checker.Flag.valueOf("TABLE_HAS_CAPTION"), Checker.Flag.values());
52 check(Entity.nbsp, Entity.valueOf("nbsp"), Entity.values());
54 check(Messages.Group.ACCESSIBILITY, Messages.Group.valueOf("ACCESSIBILITY"), Messages.Group.values());
57 <T extends Enum<T>> void check( method in class:CoverageExtras
[all...]
/openjdk10/jdk/test/java/util/concurrent/locks/StampedLock/
H A DBasic.java68 check(l.stamp() != 0L); // must have acquired the lock
70 check(l.stamp() == 0L); // must NOT have acquired the lock
113 check(sl.validate(stamp()));
114 check(sl.isReadLocked());
115 check(!sl.isWriteLocked());
126 check(sl.isReadLocked());
127 check(!sl.isWriteLocked());
146 check(sl.validate(stamp()));
147 check(sl.isReadLocked());
148 check(!s
665 static void check(boolean cond) {if (cond) pass(); else fail();} method in class:Basic
[all...]
/openjdk10/jdk/test/com/sun/nio/sctp/
H A DMessageInfoTests.java52 check(info.association().equals(assoc), "incorrect association");
57 check(info.address() == null, "address should be null");
58 check(info.association() == null, "association should be null");
60 check(info.address() == null, "address should be null");
84 check(info.isUnordered() == false, "default unordered value not false");
85 check(info.timeToLive() == 0L, "timeToLive should be 0L");
86 check(info.isComplete() == true, "default complete value not true");
87 check(info.payloadProtocolID() == 0, "default PPID not 0");
88 check(info.bytes() == 0, "default bytes value not 0");
89 check(inf
135 void check(boolean cond) {if (cond) pass(); else fail();} method in class:MessageInfoTests
136 void check(boolean cond, String failMessage) {if (cond) pass(); method in class:MessageInfoTests
[all...]
/openjdk10/jdk/test/java/util/PriorityQueue/
H A DForgetMeNot.java39 check(Arrays.equals(q.toArray(), elts));
45 check(! it.hasNext());
71 check(q.isEmpty());
72 check(! q.contains(1));
77 check(q.isEmpty());
84 check(! q.isEmpty());
85 check(q.contains(1));
88 check(it.hasNext());
92 check(q.isEmpty());
107 check(i
143 static void check(boolean cond) {if (cond) pass(); else fail();} method in class:ForgetMeNot
[all...]
H A DRemoveContains.java60 static void check(boolean condition, String msg) { method in class:RemoveContains
67 static void check(boolean condition) { method in class:RemoveContains
68 check(condition, "Assertion failure");
96 check(q.contains(word));
97 check(! q.contains("flurble"));
99 check(q.remove("fi"));
101 check(q.contains(word) ^ word.equals("fi"));
103 check(! q.remove("fi"));
104 check(! q.remove("flurble"));
/openjdk10/jdk/test/java/io/PrintWriter/
H A DOpsAfterClose.java27 * @summary Test if PrintWriter methods check if the stream
35 WRITE_BUF { boolean check(PrintWriter w) {
41 WRITE_BUF_OFF { boolean check(PrintWriter w) {
47 WRITE_INT { boolean check(PrintWriter w) {
51 WRITE_STR { boolean check(PrintWriter w) {
56 WRITE_STR_OFF { boolean check(PrintWriter w) {
62 abstract boolean check(PrintWriter w); method in class:OpsAfterClose
77 result = op.check(pw);
/openjdk10/jdk/test/java/util/Collections/
H A DSetFromMap.java38 static void check(boolean cond) { if (cond) pass(); else fail(); } method in class:SetFromMap
57 check(s.add(foo1));
58 check(s.add(foo2));
59 check(s.add(bar));
61 check(s.contains(foo1));
62 check(s.contains(foo2));
63 check(! s.contains(new String(foo1)));
/openjdk10/langtools/test/tools/javac/processing/environment/
H A DProcessingEnvAnnoDiscovery.java50 Assert.check(annos.contains(eltUtils.getTypeElement("java.lang.annotation.Target")));
51 Assert.check(annos.contains(eltUtils.getTypeElement("ProcessingEnvAnnoDiscovery.Anno1")));
52 Assert.check(annos.contains(eltUtils.getTypeElement("ProcessingEnvAnnoDiscovery.Anno2")));
53 Assert.check(annos.contains(eltUtils.getTypeElement("ProcessingEnvAnnoDiscovery.Anno3")));
54 Assert.check(annos.contains(eltUtils.getTypeElement("ProcessingEnvAnnoDiscovery.Anno4")));
55 Assert.check(annos.contains(eltUtils.getTypeElement("ProcessingEnvAnnoDiscovery.Anno5")));
56 Assert.check(annos.size() == 6, "Found extra annotations"); //Anno1-5 + @Target
/openjdk10/jdk/test/java/io/FileInputStream/
H A DOpsAfterClose.java27 * @summary Test if FileInputStream methods will check if the stream
35 READ { boolean check(FileInputStream r) {
45 READ_BUF { boolean check(FileInputStream r) {
55 READ_BUF_OFF { boolean check(FileInputStream r) {
66 GET_CHANNEL { boolean check(FileInputStream r) {
70 GET_FD { boolean check(FileInputStream r) {
79 SKIP { boolean check(FileInputStream r) {
88 CLOSE { boolean check(FileInputStream r) {
98 abstract boolean check(FileInputStream r); method in class:OpsAfterClose
112 " on FileInputStream, check th
[all...]
/openjdk10/langtools/test/tools/javac/processing/errors/EnsureAnnotationTypeMismatchException/
H A DProcessor.java55 Check check = ElementFilter.methodsIn(generated.getEnclosedElements()).get(0).getAnnotation(Check.class);
57 checkCorrectException(check::classValue, "java.lang.Class<java.lang.String>");
58 checkCorrectException(check::intConstValue, "boolean");
59 checkCorrectException(check::enumValue, "java.lang.String");
60 checkCorrectException(check::incorrectAnnotationValue, "java.lang.Deprecated");
61 checkCorrectException(check::incorrectArrayValue, "<any>");
62 checkCorrectException(check::incorrectClassValue, "<any>");
77 Assert.check(false); //Should not reach here
79 Assert.check(expectedType.equals(ex.foundType()), ex.foundType());
/openjdk10/jdk/test/java/util/zip/
H A DInfoZip.java47 static void check(boolean condition, String msg) { method in class:InfoZip
52 static void check(boolean condition) { method in class:InfoZip
53 check(condition, "Something's wrong");
72 check(ze.getName().equals("someFile"), "filename");
73 check(ze.getExtra() != null, "extra");
74 check(contents.equals("Message in a Bottle\n"), "contents");
75 check(ze.getSize() == "Message in a Bottle\n".length());
109 check(! entries.hasMoreElements());
118 check(is.getNextEntry() == null);
/openjdk10/jdk/test/javax/imageio/plugins/tiff/
H A DTIFFFieldTest.java47 private void check(boolean ok, String msg) { method in class:TIFFFieldTest
63 check(ok, CONSTRUCT + "null tag");
68 check(ok, CONSTRUCT + "negative value");
73 check(ok, CONSTRUCT + "value > 0xffffffff");
80 check(ok, CONSTRUCT + "value 0x10000 incompatible with TIFF_SHORT");
87 check(ok, CONSTRUCT + "value 0xffff incompatible with TIFF_LONG");
89 // check value type recognition
92 check(f.getType() == TIFFTag.TIFF_SHORT, "must be treated as short");
93 check(f.isIntegral(), "must be integral");
95 check(
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/security/cert/
H A DPKIXCertPathChecker.java37 * For example, an implementation may check for and process a critical private
44 * class. Each of the {@code PKIXCertPathChecker}s {@link #check check}
52 * check successive certificates. The {@link #init init} method is used
72 * Additional input parameters required for executing the check may be
102 * certificates will be passed to the {@link #check check} method
107 * the {@code check} method. If {@code true}, certificates
111 * {@code PKIXCertPathChecker} is unable to check certificates in
122 * its checks when certificates are presented to the {@code check}
164 public abstract void check(Certificate cert, method in class:PKIXCertPathChecker
175 public void check(Certificate cert) throws CertPathValidatorException { method in class:PKIXCertPathChecker
[all...]
/openjdk10/jdk/test/java/lang/System/LoggerFinder/modules/boot_usage/
H A DBootUsage.java36 check();
41 check();
45 private static void check() { method in class:BootUsage
/openjdk10/jdk/test/java/lang/System/LoggerFinder/modules/patched_usage/java.base/java/lang/
H A DPatchedUsage.java38 check();
43 check();
47 private static void check() { method in class:PatchedUsage
/openjdk10/jdk/test/java/util/AbstractCollection/
H A DToArrayTest.java101 check(res instanceof String[]);
102 check(res.length == 2);
103 check(res[1] == "2");
108 check(false);
110 check(t instanceof ArrayStoreException);
116 check(res != a);
117 check(res[LAST] != null);
122 check(res == a);
123 check(res[last()] != null);
128 check(re
208 static void check(boolean cond) { if (cond) pass(); else fail(); } method in class:ToArrayTest
[all...]
/openjdk10/langtools/test/tools/javac/lambda/methodReference/
H A DMethodRefNewInnerInLambdaVerify2.java41 run(() -> worker.check(field -> new SomeClass(field)));
42 run(() -> worker.check(SomeClass::new));
58 void check(Function<Object, SomeClass> i) { method in class:MethodRefNewInnerInLambdaVerify2.Worker
/openjdk10/nashorn/test/script/basic/
H A DJDK-8015959.js31 function check(global) { function
44 print("check with loadWithNewGlobal");
45 check(loadWithNewGlobal({
50 print("check with script engine");
53 check(e.eval("function Point(x, y) { this.x = x; this.y = y }; this"));
/openjdk10/langtools/test/tools/javac/file/
H A DT8143268.java47 check("classes/Test.class");
48 check("hdr/Test.h");
60 void check(String path) { method in class:T8143268
/openjdk10/jdk/test/javax/management/ObjectName/
H A DSerialCompatTest.java59 check(msg, on1.getDomain().equals("a"));
62 check(msg, on1.getCanonicalName().equals("a:b=c"));
65 check(msg, on1.getKeyPropertyListString()
69 check(msg, on1.getCanonicalKeyPropertyListString()
73 check(msg, on1.getKeyProperty("b").equals("c"));
76 check(msg, on1.getKeyPropertyList()
80 check(msg, !on1.isDomainPattern());
83 check(msg, !on1.isPattern());
86 check(msg, !on1.isPropertyPattern());
89 check(ms
256 private static void check(String msg, boolean condition) { method in class:SerialCompatTest
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/
H A DConcreteSubtypeTest.java38 abstract void check(); method in class:ConcreteSubtypeTest.AbstractBase
43 public void check() { method in class:ConcreteSubtypeTest.Subclass
50 public void check() { method in class:ConcreteSubtypeTest.SubSubclass
55 object.check();
/openjdk10/jdk/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/
H A DAttrFilter.java40 public boolean check(Attributes targetAttrs) throws NamingException; method in interface:AttrFilter
/openjdk10/jdk/test/javax/swing/border/
H A DTest4129681.java45 JCheckBox check = new JCheckBox("disable");
46 check.addItemListener(this);
50 this.label.setEnabled(!check.isSelected());
52 add(BorderLayout.NORTH, check);
/openjdk10/jdk/test/sun/net/www/protocol/https/
H A DClosedChannelList.java54 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

Completed in 182 milliseconds

1234567891011>>