Searched refs:expect (Results 26 - 50 of 112) sorted by relevance

12345

/openjdk7/langtools/test/tools/javac/literals/
H A DBinaryLiterals.java113 void test(int expect, int found) { argument
115 if (found != expect)
116 error("test " + count + "\nexpected: 0x" + Integer.toHexString(expect) + "\n found: 0x" + Integer.toHexString(found));
119 void test(long expect, long found) { argument
121 if (found != expect)
122 error("test " + count + "\nexpected: 0x" + Long.toHexString(expect) + "\n found: 0x" + Long.toHexString(found));
/openjdk7/jdk/src/share/classes/com/sun/security/auth/
H A DPolicyParser.java472 private boolean peekAndMatch(String expect) argument
475 if (peek(expect)) {
476 match(expect);
483 private boolean peek(String expect) { argument
489 if (expect.equalsIgnoreCase(st.sval))
493 if (expect.equalsIgnoreCase(","))
497 if (expect.equalsIgnoreCase("{"))
501 if (expect.equalsIgnoreCase("}"))
505 if (expect.equalsIgnoreCase("\""))
509 if (expect
518 match(String expect) argument
950 ParsingException(int line, String expect, String actual) argument
[all...]
/openjdk7/langtools/test/tools/javac/tree/
H A DSourceTreeScannerTest.java92 expect = new HashSet<Tree>();
95 if (found.equals(expect)) {
102 if (found.size() != expect.size())
103 error("Size mismatch; found: " + found.size() + ", expected: " + expect.size());
106 missing.addAll(expect);
113 excess.removeAll(expect);
137 expect.add(tree);
167 Set<Tree> expect; field in class:SourceTreeScannerTest.ScanTester
/openjdk7/jdk/src/share/classes/java/util/concurrent/atomic/
H A DAtomicInteger.java129 * @param expect the expected value
134 public final boolean compareAndSet(int expect, int update) { argument
135 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
146 * @param expect the expected value
150 public final boolean weakCompareAndSet(int expect, int update) { argument
151 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
H A DAtomicLong.java143 * @param expect the expected value
148 public final boolean compareAndSet(long expect, long update) { argument
149 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
160 * @param expect the expected value
164 public final boolean weakCompareAndSet(long expect, long update) { argument
165 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
H A DAtomicReferenceArray.java176 * @param expect the expected value
181 public final boolean compareAndSet(int i, E expect, E update) { argument
182 return compareAndSetRaw(checkedByteOffset(i), expect, update);
185 private boolean compareAndSetRaw(long offset, E expect, E update) { argument
186 return unsafe.compareAndSwapObject(array, offset, expect, update);
198 * @param expect the expected value
202 public final boolean weakCompareAndSet(int i, E expect, E update) { argument
203 return compareAndSet(i, expect, update);
/openjdk7/langtools/test/tools/javac/6402516/
H A DCheckIsAccessible.java56 boolean expect = args[args.length - 1].equals("yes");
62 if (actual != expect)
70 if (actual != expect)
78 return (actual == expect);
/openjdk7/langtools/test/tools/javac/6917288/
H A DGraphicalInstallerTest.java84 Set<String> expect = new TreeSet<String>(Arrays.asList(paths));
85 if (found.equals(expect))
88 if (!expect.contains(f))
91 for (String e: expect) {
/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/langtools/test/tools/javac/api/6431435/
H A DT6431435.java56 private static boolean check(String name, Iterable<?> iter, int expect) { argument
62 if (found == expect)
64 System.err.println(name + ": found " + found + " -- expected " + expect);
/openjdk7/langtools/test/tools/javadoc/6964914/
H A DTest.java45 void javadoc(String path, String expect) { argument
68 if (!out.contains(expect))
69 error("expected text not found: " + expect);
/openjdk7/langtools/test/tools/javap/4870651/
H A DT4870651.java72 for (String expect: expects) {
73 if (output.indexOf(expect)< 0)
74 error(expect + " not found");
/openjdk7/langtools/test/tools/javap/6937244/
H A DT6937244A.java76 void verify(String line, String expect) throws Exception { argument
77 if (!line.contains(expect)) {
79 System.err.println("expect: " + expect);
/openjdk7/langtools/test/tools/javap/
H A DT4880663.java77 for (String expect: expects) {
78 if (output.indexOf(expect)< 0)
79 error(expect + " not found");
H A DT4880672.java50 for (String expect: expects) {
51 if (output.indexOf(expect)< 0)
52 error(expect + " not found");
H A DT4975569.java54 for (String expect: expects) {
55 if (output.indexOf(expect)< 0)
56 error(expect + " not found");
H A DT6271787.java78 for (String expect: expects) {
79 if (output.indexOf(expect)< 0)
80 error(expect + " not found");
H A DT6868539.java61 for (String expect: expects) {
62 if (!output.matches("(?s).*" + expect + ".*"))
63 error(expect + " not found");
/openjdk7/jdk/src/share/classes/com/sun/security/auth/login/
H A DConfigFile.java484 private String match(String expect) throws IOException { argument
492 ("Configuration.Error.expected.expect.read.end.of.file.",
494 Object[] source1 = {expect};
500 if (expect.equalsIgnoreCase("module class name") ||
501 expect.equalsIgnoreCase("controlFlag") ||
502 expect.equalsIgnoreCase("option key") ||
503 expect.equalsIgnoreCase("option value")) {
508 ("Configuration.Error.Line.line.expected.expect.found.value.",
510 Object[] source = {new Integer(linenum), expect, st.sval};
517 if (expect
577 peek(String expect) argument
[all...]
/openjdk7/langtools/test/tools/javac/processing/filer/
H A DTestGetResource2.java76 expect(result, true);
95 expect(result, true);
112 expect(result, false);
157 void expect(boolean val, boolean expect) { argument
158 if (val != expect)
159 error("Unexpected value: " + val + "; expected: " + expect);
/openjdk7/langtools/test/tools/javac/processing/
H A DT6920317.java156 String expect = null;
179 expect = "CL";
190 if (expect == null && cp == Kind.NONE) {
192 expect = "SP_OLD";
199 if (expect == null) {
201 expect = "SP_NEW";
208 expect = "SP_GEN";
220 if (expect == null && sp == Kind.NONE) {
222 expect = "CP_OLD";
229 if (expect
446 checkEqual(String label, String actual, String expect) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/java/
H A DParser.java302 protected void expect(int t) throws SyntaxError, IOException { method in class:Parser
345 expect(IDENT);
368 expect(RPAREN);
378 expect(LPAREN);
386 expect(RPAREN);
540 expect(RPAREN);
597 expect(RBRACE);
608 expect(RPAREN);
619 expect(RSQBRACKET);
661 expect(RSQBRACKE
[all...]
/openjdk7/langtools/test/tools/javac/processing/model/element/TestMissingElement/
H A DTestMissingElement.java72 private void checkInterfaces(TypeElement te, String expect) { argument
73 System.err.println("check interfaces: " + te + " -- " + expect);
75 checkEqual("interfaces", te, found, expect);
78 private void checkSupertype(TypeElement te, String expect) { argument
79 System.err.println("check supertype: " + te + " -- " + expect);
81 checkEqual("supertype", te, found, expect);
84 private void checkEqual(String label, TypeElement te, String found, String expect) { argument
85 if (found.equals(expect)) {
86 // messager.printMessage(NOTE, "expected " + label + " found: " + expect, te);
90 + "expect
[all...]
/openjdk7/langtools/test/tools/javac/Diagnostics/7010608/
H A DTest.java56 void test(List<String> options, String expect) throws Exception { argument
71 if (!out.contains(expect))
72 throw new Exception("expected text not found: " + expect);
/openjdk7/langtools/test/tools/javac/
H A DT6665791.java68 String expect = test.replaceAll("\\s+", " ").trim();
69 if (!expect.equals(found)) {
70 System.out.println("expect: " + expect);

Completed in 95 milliseconds

12345