Searched refs:expected (Results 26 - 50 of 358) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/
H A DElementCheckerImpl.java18 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, argument
21 String localnameSHOULDBE = expected.getBaseLocalName();
22 String namespaceSHOULDBE = expected.getBaseNamespace();
37 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, argument
40 String localnameSHOULDBE = expected.getBaseLocalName();
41 String namespaceSHOULDBE = expected.getBaseNamespace();
56 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, argument
/openjdk7/jdk/test/java/math/BigDecimal/
H A DEqualsTests.java69 boolean expected = Boolean.TRUE;
71 failures += equalsTest(testValuePair[0], testValuePair[1], expected);
72 expected = !expected;
81 private static int equalsTest(BigDecimal l, BigDecimal r, boolean expected) { argument
83 int failed = (result == expected) ? 0 : 1;
87 "\n\tExpected " + expected);
/openjdk7/jdk/test/java/util/ServiceLoader/
H A DLoad.java38 List<String> expected = new ArrayList<String>(Arrays.asList(args));
39 if (!expected.isEmpty() && expected.get(0).equals("-i")) {
40 expected.remove(0);
43 if (expected.isEmpty())
51 Iterator<String> ei = expected.iterator();
61 out.format("Failed as expected: %s%n", x);
69 Exception(String.format("Wrong provider %s; expected %s",
75 throw new Exception("Missing providers: " + expected);
/openjdk7/jdk/src/share/classes/sun/net/
H A DProgressSource.java48 //bytes expected
49 private long expected = -1; field in class:ProgressSource
69 public ProgressSource(URL url, String method, long expected) { argument
75 this.expected = expected;
131 * Return expected maximum progress; -1 if expected is unknown.
134 return expected;
164 expected = expectedProgress;
196 if (expected !
[all...]
/openjdk7/jdk/test/sun/nio/cs/
H A DTestUTF_16.java37 String expected,
42 if (!out.equals(expected)) {
43 failureReport (out, expected);
50 byte[] expected)
54 for (int i = 0; i< expected.length; i++)
55 if (testBytes[i] != expected[i])
66 String expected) {
69 for (int i = 0; i < expected.length() ; i++) {
70 warn("expected char[" + i + "] : " +
71 Integer.toHexString((int)expected
36 testDecode(String charset, String expected, byte[] input) argument
48 testEncode(String charset, String input, byte[] expected) argument
65 failureReport(String testStr, String expected) argument
[all...]
H A DLatinCharReplacementTWTest.java54 char[] expected = { (char) 0xa7,
71 if (numChars != expected.length) {
76 if (decoded[i] != expected[i])
/openjdk7/jdk/test/java/beans/Introspector/
H A DTest6528714.java38 private static void test(Class type, String name, Class expected) { argument
41 if (!expected.equals(pd.getPropertyType()))
42 throw new Error("expected " + expected + " but " + pd.getPropertyType() + " is resolved");
/openjdk7/jdk/test/java/lang/Math/
H A DAtan2Tests.java34 static int testAtan2Case(double input1, double input2, double expected) { argument
37 StrictMath.atan2(input1, input2), expected);
39 Math.atan2(input1, input2), expected);
H A DPowTests.java36 static int testPowCase(double input1, double input2, double expected) { argument
39 StrictMath.pow(input1, input2), expected);
41 Math.pow(input1, input2), expected);
46 static int testStrictPowCase(double input1, double input2, double expected) { argument
49 StrictMath.pow(input1, input2), expected);
53 static int testNonstrictPowCase(double input1, double input2, double expected) { argument
56 Math.pow(input1, input2), expected);
140 double expected=NaN;
145 expected = NaN;
147 expected
[all...]
H A DRoundTests.java62 private static int testNearHalfCases(double input, double expected) { argument
65 failures += Tests.test("Math.round", input, Math.round(input), expected);
66 failures += Tests.test("StrictMath.round", input, StrictMath.round(input), expected);
90 private static int testNearHalfCases(float input, float expected) { argument
93 failures += Tests.test("Math.round", input, Math.round(input), expected);
94 failures += Tests.test("StrictMath.round", input, StrictMath.round(input), expected);
/openjdk7/jdk/test/sun/text/resources/Format/
H A DBug4807540.java40 String expected = "30.4.2008";
45 if (expected.compareTo(siString) != 0) {
46 throw new RuntimeException("Error: " + siString + " should be " + expected);
/openjdk7/jdk/test/javax/swing/border/
H A DTest6625450.java53 private static void test(boolean expected, int width, int height) { argument
57 if (expected) {
58 throw new Error("expected IllegalArgumentException");
62 if (!expected) {
/openjdk7/jdk/test/java/lang/Class/
H A DIsSynthetic.java38 static int test(Class<?> clazz, boolean expected) { argument
39 if (clazz.isSynthetic() == expected)
43 clazz.getName() + " expected: " + expected +
44 " got: " + (!expected));
/openjdk7/jdk/test/java/nio/Buffer/
H A DBasic.java77 String expected, char expectedChar,
96 + expected
101 static void fail(Buffer b, long expected, long got) { argument
103 Long.toHexString(expected), (char)expected,
112 static void ck(Buffer b, long got, long expected) { argument
113 if (expected != got)
114 fail(b, expected, got);
117 static void ck(Buffer b, float got, float expected) { argument
118 if (expected !
76 fail(Buffer b, String expected, char expectedChar, String got, char gotChar) argument
124 ck(Buffer b, double got, double expected) argument
[all...]
/openjdk7/langtools/test/tools/javac/processing/model/util/
H A DBinaryName.java53 String expected = t.getAnnotation(HelloIm.class).value();
55 if (expected.contentEquals(found)) {
56 System.out.println(expected + " == " + found);
59 System.out.println(expected + " != " + found + " [FAIL]");
/openjdk7/jdk/test/java/io/LineNumberInputStream/
H A DSkipEOL.java37 byte[] expected = {12, 10, 23, 11, 10, 12, 10, 10};
50 if (in.read() != expected[i]) {
/openjdk7/langtools/test/tools/apt/lib/
H A DTestProcessor.java101 * its expected value.
103 private boolean verifyResult(Object result, String[] expected) { argument
104 assert expected.length == 1 :
105 "Single-valued test expecting " + expected.length + " results";
106 return expected[0].equals(String.valueOf(result));
111 * its expected values.
114 String[] expected, boolean ordered) {
115 if (result.size() != expected.length) {
128 Arrays.sort(expected);
130 return Arrays.equals(res, expected);
113 verifyResults(Collection result, String[] expected, boolean ordered) argument
[all...]
/openjdk7/hotspot/test/compiler/6378821/
H A DTest6378821.java47 static void check(int i, int expected, int result) { argument
48 if (result != expected) {
49 throw new InternalError("Wrong population count for " + i + ": " + result + " != " + expected);
53 static void check(long l, int expected, int result) { argument
54 if (result != expected) {
55 throw new InternalError("Wrong population count for " + l + ": " + result + " != " + expected);
/openjdk7/jdk/test/sun/util/calendar/
H A DBug6653944.java59 private static void compare(int got, int expected) { argument
60 if (got != expected) {
61 System.err.println("got " + got + ", expected " + expected);
66 private static void compare(Calendar got, Calendar expected) { argument
67 if (!got.equals(expected)) {
68 System.err.println("got " + got + ", expected " + expected);
/openjdk7/jdk/test/java/util/concurrent/Semaphore/
H A DPermitOverflow.java52 } catch (Error expected) {
60 } catch (Error expected) {
65 } catch (Error expected) {
85 } catch (Error expected) {
93 } catch (Error expected) {
98 } catch (Error expected) {
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/comp/
H A DAnnotate.java135 Type expected,
142 a.type = chk.checkType(a.annotationType.pos(), at, expected);
190 Attribute enterAttributeValue(Type expected, argument
197 expected.tsym.complete();
200 return new Attribute.Error(expected);
202 if (expected.isPrimitive() || types.isSameType(expected, syms.stringType)) {
203 Type result = attr.attribExpr(tree, env, expected);
205 return new Attribute.Error(expected);
208 return new Attribute.Error(expected);
134 enterAnnotation(JCAnnotation a, Type expected, Env<AttrContext> env) argument
[all...]
/openjdk7/jdk/test/java/lang/String/
H A DSupplementary.java401 int expected = Character.codePointCount(str, j, length);
402 check(result != expected, "codePointCount(input["+i+"], "+j+", "+length+")",
403 result, expected);
408 check(result != expected, "substring:codePointCount(input["+i+"], "+j+", "+length+")",
409 result, expected);
413 int expected = Character.codePointCount(str, 0, j);
414 check(result != expected, "codePointCount(input["+i+"], 0, "+j+")",
415 result, expected);
418 check(result != expected, "substring:codePointCount(input["+i+"], 0, "+j+")",
419 result, expected);
544 testCodePoint(boolean isAt, String s, int index, int expected) argument
566 testIndexOf(String s, int c, int expected) argument
582 testIndexOf2(String s, int c, int expected) argument
590 testLastIndexOf(String s, int c, int expected) argument
606 testLastIndexOf2(String s, int c, int expected) argument
614 testIndexOf(String s, int fromIndex, int c, int expected) argument
625 testLastIndexOf(String s, int fromIndex, int c, int expected) argument
680 check(boolean err, String s, int got, int expected) argument
[all...]
/openjdk7/jdk/test/java/awt/font/NumericShaper/
H A DEasternArabicTest.java71 String expected = testData[i][1];
72 test(data, expected);
74 cExpected.append(expected).append(' ');
83 private static void test(String data, String expected) { argument
88 if (!expected.equals(got)) {
93 System.err.println(" expected = " + expected);
98 System.err.println(" expected = " + expected);
105 if (!expected
[all...]
H A DShapingTest.java27 * @summary confirm that shaping works as expected. (Mainly for new characters which were added in Unicode 5 and 6)
116 String expected = "\u1a20 \u1a80\u1a81\u1a82";
117 checkResult("Range.TAI_THAM_HORA", ns, given, expected);
122 expected = "\u1a20 \u1a90\u1a91\u1a92"; // Tham digits are prioritized.
123 checkResult("Range.TAI_THAM_HORA, Range.TAI_THAM_THAM", ns, given, expected);
127 expected = "\ua984 \ua9d0\ua9d1\ua9d2";
128 checkResult("Range.JAVANESE", ns, given, expected);
132 expected = "\u1a20 \u1a90\u1a91\u1a92";
133 checkResult("Range.TAI_THAM_THAM", ns, given, expected);
137 expected
141 checkResult(String ranges, NumericShaper ns, String given, String expected) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/
H A DMeteredStream.java38 /* if expected != -1, after we've read >= expected, we're "closed" and return -1
42 protected long expected; field in class:MeteredStream
48 public MeteredStream(InputStream is, ProgressSource pi, long expected) argument
53 this.expected = expected;
56 pi.updateProgress(0, expected);
83 pi.updateProgress(count, expected);
89 // if expected length is known, we could determine if
91 if (expected >
[all...]

Completed in 59 milliseconds

1234567891011>>