/openjdk7/langtools/test/tools/javac/api/6431435/ |
H A D | T6431435.java | 56 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/hotspot/test/compiler/6778657/ |
H A D | Test.java | 32 public static void check_f2i(int expect) { argument 33 float check = expect; 36 if (actual != expect) 37 throw new RuntimeException("expecting " + expect + ", got " + actual); 40 public static void check_f2l(long expect) { argument 41 float check = expect; 44 if (actual != expect) 45 throw new RuntimeException("expecting " + expect + ", got " + actual); 48 public static void check_d2i(int expect) { argument 49 double check = expect; 56 check_d2l(long expect) argument [all...] |
/openjdk7/langtools/test/tools/javac/ |
H A D | StringConversion.java | 42 static void check(int testid, String have, String expect) argument 44 if ((have == null && have != expect) || 45 (have != null && !have.equals(expect))) { 48 have + "\" EXPECT \"" + expect + "\"";
|
H A D | VersionOpt.java | 94 void checkEqual(String kind, String found, String expect) { argument 95 if (!found.equals(expect)) { 97 System.err.println("expect: >>" + expect + "<<");
|
H A D | T6873845.java | 45 void test(List<String> opts, String expect) throws Exception { argument 54 if (!out.equals(expect))
|
H A D | T6873849.java | 47 void test(String opt, String expect) throws Exception { argument 64 if (!out.equals(expect))
|
/openjdk7/langtools/test/tools/javac/options/ |
H A D | T6986895.java | 52 void test(String expect, String... args) throws Exception { argument 53 System.err.println("Test " + expect + ": " + Arrays.asList(args)); 62 if (!out.contains(expect)) 63 throw new Exception("expected text not found: " + expect);
|
/openjdk7/langtools/test/tools/javadoc/6964914/ |
H A D | Test.java | 45 void javadoc(String path, String expect) { argument 68 if (!out.contains(expect)) 69 error("expected text not found: " + expect);
|
/openjdk7/jdk/test/java/io/InputStreamReader/ |
H A D | One.java | 39 String expect; field in class:One.Test 41 Test(byte[] in, String expect) throws Exception { argument 43 sb = new StringBuffer(expect.length()); 44 this.expect = expect; 50 if (!expect.equals(sb.toString())) 51 throw new Exception("Expected " + expect 60 private static void test(String expect) throws Exception { argument 61 byte[] in = expect.getBytes("UTF-8"); 63 new Test(in, expect) { [all...] |
/openjdk7/jdk/test/java/net/URLClassLoader/closetest/ |
H A D | Common.java | 100 /* 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/Diagnostics/7010608/ |
H A D | Test.java | 56 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/jdk/test/javax/management/mxbean/ |
H A D | OverloadTest.java | 61 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/literals/ |
H A D | BinaryLiterals.java | 113 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));
|
H A D | UnderscoreLiterals.java | 170 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/policy/test1/ |
H A D | Test1b.java | 130 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 D | ClassProcessor.java | 42 @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/tree/ |
H A D | JavacTreeScannerTest.java | 90 expect = new HashSet<JCTree>(); 93 if (found.equals(expect)) { 100 if (found.size() != expect.size()) 101 error("Size mismatch; found: " + found.size() + ", expected: " + expect.size()); 104 missing.addAll(expect); 111 excess.removeAll(expect); 135 expect.add(tree); 154 Set<JCTree> expect; field in class:JavacTreeScannerTest.ScanTester
|
H A D | SourceTreeScannerTest.java | 92 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/langtools/test/tools/javah/ |
H A D | T6893943.java | 55 expect("testSimpleAPI", sw.toString(), rc, expect_rc); 80 expect("testCommand", sw.toString(), rc, expect_rc); 83 void expect(String name, String out, int actual_rc, int expect_rc) throws Exception { method in class:T6893943
|
/openjdk7/langtools/test/tools/javap/6937244/ |
H A D | T6937244A.java | 76 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 D | T6715251.java | 51 void test(int expect, String ... args) { argument 53 if (rc != expect) 54 error("bad result: expected: " + expect + ", found " + rc + "\n"
|
H A D | T6824493.java | 69 void test(String option, String... expect) { argument 87 for (String e: expect) {
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/atomic/ |
H A D | AtomicBoolean.java | 93 * @param expect the expected value 98 public final boolean compareAndSet(boolean expect, boolean update) { argument 99 int e = expect ? 1 : 0; 112 * @param expect the expected value 116 public boolean weakCompareAndSet(boolean expect, boolean update) { argument 117 int e = expect ? 1 : 0;
|
H A D | AtomicReference.java | 108 * @param expect the expected value 113 public final boolean compareAndSet(V expect, V update) { argument 114 return unsafe.compareAndSwapObject(this, valueOffset, expect, update); 125 * @param expect the expected value 129 public final boolean weakCompareAndSet(V expect, V update) { argument 130 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
|
/openjdk7/jdk/test/java/lang/invoke/7157574/ |
H A D | Test7157574.java | 105 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);
|