Searched refs:expect (Results 51 - 75 of 112) sorted by relevance

12345

/openjdk7/langtools/test/tools/javap/
H A DT6729471.java90 for (String expect: expects) {
91 if (output.indexOf(expect)< 0)
92 error(expect + " not found");
H A DT6824493.java69 void test(String option, String... expect) { argument
87 for (String e: expect) {
H A DTestSuperclass.java121 String expect = js.source.replaceAll("(?s)^(.* Test[^{]+?) *\\{.*", "$1");
126 checkEqual("class signature", expect, found);
145 void checkEqual(String label, String expect, String found) { argument
146 if (!expect.equals(found))
147 error("Unexpected " + label + " found: '" + found + "', expected: '" + expect + "'");
/openjdk7/langtools/test/tools/javap/classfile/
H A DT6887895.java63 Set<String> expect = new TreeSet<String>(Arrays.asList(expectNames));
64 if (!found.equals(expect)) {
66 System.err.println("expect: " + expect);
/openjdk7/langtools/test/tools/javac/4241573/
H A DT4241573.java79 Set<File> expect = getFiles(outDir,
91 if (!found.equals(expect)) {
92 if (found.containsAll(expect))
93 throw new Exception("unexpected files found: " + diff(found, expect));
94 else if (expect.containsAll(found))
95 throw new Exception("expected files not found: " + diff(expect, found));
112 String expect = f.getName().replaceAll("([$.].*)?\\.class", ".java");
113 if (!expect.equals(found)) {
114 error("bad value found: " + found + ", expected: " + expect);
/openjdk7/langtools/test/tools/javac/literals/
H A DUnderscoreLiterals.java170 void test(int value, int expect) { argument
172 if (value != expect)
173 error("test " + count + "\nexpected: 0x" + Integer.toHexString(expect) + "\n found: 0x" + Integer.toHexString(value));
176 void test(double value, double expect) { argument
178 if (value != expect)
179 error("test " + count + "\nexpected: 0x" + expect + "\n found: 0x" + value);
182 void test(long value, long expect) { argument
184 if (value != expect)
185 error("test " + count + "\nexpected: 0x" + Long.toHexString(expect) + "\n found: 0x" + Long.toHexString(value));
/openjdk7/langtools/test/tools/javac/
H A DT6873849.java47 void test(String opt, String expect) throws Exception { argument
64 if (!out.equals(expect))
H A DT6358024.java66 static void test(JavacFileManager fm, JavaFileObject f, Option[] opts, int expect) throws Throwable { argument
86 if (tl.started != expect)
88 + "expected " + expect + ", found " + tl.started);
H A DT6406771.java76 int expect = Integer.parseInt(s.substring(prefix.length()));
77 if (expect != found) {
80 + " expect=" + expect + " found=" + found);
H A DT6423583.java81 Class expect = map.get(tree.getKind());
82 if (!check(tree.getValue(), expect)) {
84 System.err.println("expected class: " + expect);
H A DT6999210.java72 String expect = "C.class:-:-: compiler.warn.future.attr: Signature, 49, 0, 48, 0";
73 if (!out3.contains(expect))
74 error("expected output \"" + expect + "\" not found");
H A DVersionOpt.java94 void checkEqual(String kind, String found, String expect) { argument
95 if (!found.equals(expect)) {
97 System.err.println("expect: >>" + expect + "<<");
/openjdk7/jdk/src/share/classes/java/util/concurrent/atomic/
H A DAtomicLongFieldUpdater.java97 * @param expect the expected value
103 public abstract boolean compareAndSet(T obj, long expect, long update); argument
117 * @param expect the expected value
123 public abstract boolean weakCompareAndSet(T obj, long expect, long update); argument
307 public boolean compareAndSet(T obj, long expect, long update) { argument
309 return unsafe.compareAndSwapLong(obj, offset, expect, update);
312 public boolean weakCompareAndSet(T obj, long expect, long update) { argument
314 return unsafe.compareAndSwapLong(obj, offset, expect, update);
388 public boolean compareAndSet(T obj, long expect, long update) { argument
392 if (v != expect)
399 weakCompareAndSet(T obj, long expect, long update) argument
[all...]
/openjdk7/jdk/make/tools/src/build/tools/dtdbuilder/
H A DDTDParser.java96 boolean expect(int c) throws IOException { method in class:DTDParser
289 expect(')');
440 expect('>');
471 expect(')');
526 expect('-');
562 expect('>');
685 expect('>');
747 expect('[');
755 expect(']');
756 expect(']');
[all...]
/openjdk7/langtools/test/tools/javac/processing/model/util/elements/doccomments/
H A DTestDocComments.java223 String expect = (e.getKind() + " " + e.getSimpleName()); // default
233 expect = null;
239 expect = null;
247 expect = null;
254 expect = null;
259 System.err.println(" expect " + expect);
261 if (dc == null ? expect == null : dc.trim().equals(expect))
268 "unexpected comment: \"" + dc + "\", expected \"" + expect
[all...]
/openjdk7/jdk/test/java/lang/invoke/7157574/
H A DTest7157574.java105 private static void assertEquals(Object expect, Object observe) { argument
106 if (java.util.Objects.equals(expect, observe)) return;
107 String msg = ("expected "+expect+" but observed "+observe);
/openjdk7/jdk/test/java/net/URLClassLoader/closetest/
H A DCommon.java100 /* expect is true if you expect to find it, false if you expect not to */
101 static Class loadClass (String name, URLClassLoader loader, boolean expect){ argument
104 if (!expect) {
109 if (expect) {
/openjdk7/langtools/test/tools/javac/api/
H A DT6392782.java58 private static void check(TreeScanner<?,?> scanner, int expect, int found) { argument
59 if (found != expect)
60 throw new AssertionError(scanner.getClass().getName() + ": expected: " + expect + " found: " + found);
H A DTestDocComments.java120 int check(Trees trees, String expect) { argument
124 if (dc != null && dc.trim().equals(expect))
131 error("unexpected doc comment for " + k + "\nexpect: " + expect + "\nfound: " + dc);
H A DTestJavacTask_Multiple.java75 int expect = TestKind.values().length * MAX_TASKS;
76 if (count != expect) {
78 + ", expected: " + expect);
H A DTestJavacTask_ParseAttrGen.java94 int expect = (gk ? 2 : 0); // main class and anon class for TaskListener
95 if (genFiles.length != expect)
97 + ", expected: " + expect);
/openjdk7/langtools/test/tools/javac/policy/test1/
H A DTest1b.java130 void check(String prefix, int expect) { argument
133 if (found == 0 || found == expect) {
137 error("Found " + found + " files for " + prefix + ": expected 0 or " + expect + " " + names);
/openjdk7/langtools/test/tools/javac/processing/6499119/
H A DClassProcessor.java42 @SupportedOptions({ "gen", "expect" })
116 private void checkEqual(String label, String actual, String expect) { argument
117 if (!actual.equals(expect)) {
118 error("Unexpected value for " + label + "; actual=" + actual + ", expected=" + expect);
/openjdk7/langtools/test/tools/javac/processing/model/element/
H A DTestTypeParameter.java45 if (found == expect) {
48 error("unexpected number of results: expected " + expect
128 final int expect = 5; // top level class, plus preceding examples field in class:TestTypeParameter
/openjdk7/langtools/test/tools/javadoc/6942366/
H A DT6942366.java103 boolean expect = useSourcePath;
106 if (expect)
111 if (expect)

Completed in 70 milliseconds

12345