Searched refs:expect (Results 1 - 25 of 112) sorted by relevance

12345

/openjdk7/hotspot/test/compiler/6778657/
H A DTest.java32 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/jdk/test/java/io/InputStreamReader/
H A DOne.java39 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/beans/Introspector/
H A DTestTypeResolver.java65 * called "expect" which
87 Object expect = null;
89 Field f = c.getDeclaredField("expect");
90 expect = f.get(null);
95 Field f = outer.getDeclaredField("expect" + c.getSimpleName());
96 expect = f.get(null);
101 if (expect == null) {
104 "but not expect field");
114 if (expect.equals(t) && t.equals(expect))
273 static final Type expect = new ClassTypeVariable("T", Super.class); field in class:TestTypeResolver.Super
281 static final Type expect = Integer.class; field in class:TestTypeResolver.Int
285 static final Type expect = Integer.class; field in class:TestTypeResolver.IntOverride
293 static final Type expect = new ClassTypeVariable("X", Mid.class); field in class:TestTypeResolver.Mid
297 static final Type expect = String.class; field in class:TestTypeResolver.Str
301 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListInt
306 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListIntSub
315 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListU
320 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListUInt
325 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListUSub
334 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListUSubInt
339 static final Type expect = new ClassTypeVariable("S", TwoParams.class); field in class:TestTypeResolver.TwoParams
343 static final Type expect = new ClassTypeVariable("T", TwoParamsSub.class); field in class:TestTypeResolver.TwoParamsSub
347 static final Type expect = String.class; field in class:TestTypeResolver.TwoParamsSubSub
351 static final Type expect = new ClassTypeVariable("T", Intf.class); field in interface:TestTypeResolver.Intf
357 static final Type expect = String.class; field in class:TestTypeResolver.Impl
361 static final Type expect = String.class; field in class:TestTypeResolver.Impl2
365 static final Type expect = new ClassTypeVariable("T", Bound.class, Number.class); field in class:TestTypeResolver.Bound
369 static final Type expect = Integer.class; field in class:TestTypeResolver.BoundInt
373 static final Type expect = Number.class; field in class:TestTypeResolver.RawBound
377 static final Type expect = Integer.class; field in class:TestTypeResolver.RawBoundInt
391 static final Type expect = new MethodTypeVariable("T", m); field in class:TestTypeResolver.MethodParam
399 static final Type expect = Object.class; field in class:TestTypeResolver.Raw
403 static final Type expect = Object.class; field in class:TestTypeResolver.RawSub
407 static final Type expect = String[].class; field in class:TestTypeResolver.SimpleArray
411 static final Type expect = GenericArrayTypeImpl.make( field in class:TestTypeResolver.GenericArray
416 static final Type expect = GenericArrayTypeImpl.make( field in class:TestTypeResolver.GenericArrayT
421 static final Type expect = String[][].class; field in class:TestTypeResolver.GenericArrayTSub
425 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.Wildcard
430 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.WildcardT
440 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.WildcardTSub
451 static final Type expect = WildcardTSub.expect; field in class:TestTypeResolver.WildcardTSubSub
455 static final Type expect = List.class; field in class:TestTypeResolver.RawWildcardTSubSub
459 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.WildcardTSuper
469 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.WildcardTSuperSub
479 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.SuperMap
492 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.SubMap
499 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListListT
510 static final Type expect = ParameterizedTypeImpl.make( field in class:TestTypeResolver.ListListString
521 static final Type expect = new ClassTypeVariable( field in class:TestTypeResolver.UExtendsT
526 static final Type expect = Integer.class; field in class:TestTypeResolver.UExtendsTSub
530 static final Type expect = field in class:TestTypeResolver.SelfRef
535 static final Type expect = SelfRefSub.class; field in class:TestTypeResolver.SelfRefSub
[all...]
/openjdk7/jdk/test/tools/launcher/
H A DEnvironmentVariables.java38 String expect = args[1];
62 "' expecting the value: '" + expect + "'");
69 if (!expect.equals(System.getenv().get(key))) {
70 throw new RuntimeException("ERROR: expected: '" + expect +
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DCryptoPolicyParser.java305 private boolean peekAndMatch(String expect) argument
308 if (peek(expect)) {
309 match(expect);
315 private boolean peek(String expect) { argument
321 if (expect.equalsIgnoreCase(st.sval))
325 if (expect.equalsIgnoreCase("number")) {
330 if (expect.equals(","))
334 if (expect.equals("{"))
338 if (expect.equals("}"))
342 if (expect
388 match(String expect) argument
703 ParsingException(int line, String expect, String actual) argument
[all...]
/openjdk7/langtools/test/tools/javac/api/6440333/
H A DT6440333.java45 URI expect = src.getCanonicalFile().toURI();
46 System.err.println("Expect " + expect);
48 if (!expect.equals(fo.toUri())) {
/openjdk7/langtools/test/tools/javap/
H A DT4501660.java64 for (String expect: expects) {
65 if (output.indexOf(expect)< 0)
66 error(expect + " not found");
H A DT4876942.java58 for (String expect: expects) {
59 if (output.indexOf(expect)< 0)
60 error(expect + " not found");
H A DT6715251.java51 void test(int expect, String ... args) { argument
53 if (rc != expect)
54 error("bad result: expected: " + expect + ", found " + rc + "\n"
/openjdk7/jdk/test/java/lang/Class/getMethods/
H A DStarInheritance.java61 private static void test(Method [] ma, ArrayList expect) { argument
64 if (expect.size() != ma.length) {
66 System.err.println(" expected locations: " + expect);
68 +"; expected = " + expect.size());
76 && (n = expect.indexOf(m.getDeclaringClass())) != -1) {
77 expect.remove(n);
/openjdk7/jdk/test/sun/net/www/
H A DHeaderTests.java109 static void checkHeader (Iterator iter, String[][][] expect) { argument
113 boolean empty = check (p, expect[i]);
120 static boolean check (HeaderParser p, String[][]expect) {
134 if (!expect[j][0].equals (key)) {
135 throw new RuntimeException ("Error "+key+"/" + expect[j][0]);
137 if (expect[j][1] != null && !expect[j][1].equals (val)) {
138 throw new RuntimeException ("Error "+val+"/" + expect[j][1]);
/openjdk7/langtools/test/tools/javac/policy/test3/
H A DTest.java47 ShouldStopPolicy(boolean needOption, String expect, String dontExpect) { argument
49 this.expect = expect;
53 String expect; field in class:Test.ShouldStopPolicy
104 boolean foundExpected = (ssp.expect == null);
107 if (ssp.expect != null && line.startsWith("[" + ssp.expect))
116 error("Expected output not found: " + ssp.expect + "\n" + sw);
/openjdk7/langtools/test/tools/javac/tree/
H A DJavacTreeScannerTest.java90 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
/openjdk7/jdk/src/share/classes/java/util/concurrent/atomic/
H A DAtomicBoolean.java93 * @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 DAtomicReference.java108 * @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);
H A DAtomicIntegerArray.java162 * @param expect the expected value
167 public final boolean compareAndSet(int i, int expect, int update) { argument
168 return compareAndSetRaw(checkedByteOffset(i), expect, update);
171 private boolean compareAndSetRaw(long offset, int expect, int update) { argument
172 return unsafe.compareAndSwapInt(array, offset, expect, update);
184 * @param expect the expected value
188 public final boolean weakCompareAndSet(int i, int expect, int update) { argument
189 return compareAndSet(i, expect, update);
H A DAtomicLongArray.java162 * @param expect the expected value
167 public final boolean compareAndSet(int i, long expect, long update) { argument
168 return compareAndSetRaw(checkedByteOffset(i), expect, update);
171 private boolean compareAndSetRaw(long offset, long expect, long update) { argument
172 return unsafe.compareAndSwapLong(array, offset, expect, update);
184 * @param expect the expected value
188 public final boolean weakCompareAndSet(int i, long expect, long update) { argument
189 return compareAndSet(i, expect, update);
/openjdk7/langtools/make/test/lib/
H A Dclasses.sh43 LANG=C sort -u expect1.lst expect2.lst > expect.lst
45 if diff ${TESTSRC}/classes.gold.txt expect.lst ; then
H A Dsrc.sh43 LANG=C sort -u expect1.lst expect2.lst > expect.lst
45 if diff ${TESTSRC}/src.gold.txt expect.lst ; then
/openjdk7/jdk/test/javax/management/openmbean/
H A DCompositeDataStringTest.java75 for (String expect : expected) {
76 if (s.contains(expect))
77 System.out.println("OK: string contains <" + expect + ">");
81 expect + ">");
/openjdk7/langtools/test/tools/javac/
H A DStringConversion.java42 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 + "\"";
/openjdk7/langtools/test/tools/javac/api/6440528/
H A DT6440528.java54 File expect = new File(test_src, "package-info.class");
56 if (!got.equals(expect))
57 throw new AssertionError(String.format("Expected: %s; got: %s", expect, got));
58 System.err.println("Expected: " + expect);
/openjdk7/langtools/test/tools/javac/options/
H A DT6986895.java52 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/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DSignatureIterator.java55 protected void expect(char c) { method in class:SignatureIterator
144 expect('(');
148 expect(')');
156 expect('(');
160 expect(')');
173 expect('(');
177 expect(')');
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DPolicyParser.java673 private boolean peekAndMatch(String expect) argument
676 if (peek(expect)) {
677 match(expect);
684 private boolean peek(String expect) { argument
690 if (expect.equalsIgnoreCase(st.sval))
694 if (expect.equalsIgnoreCase(","))
698 if (expect.equalsIgnoreCase("{"))
702 if (expect.equalsIgnoreCase("}"))
706 if (expect.equalsIgnoreCase("\""))
710 if (expect
719 match(String expect) argument
1204 ParsingException(int line, String expect, String actual) argument
[all...]

Completed in 72 milliseconds

12345