/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/ |
H A D | ElementCheckerImpl.java | 18 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 D | EqualsTests.java | 69 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 D | Load.java | 38 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 D | ProgressSource.java | 48 //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 D | TestUTF_16.java | 37 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 D | LatinCharReplacementTWTest.java | 54 char[] expected = { (char) 0xa7, 71 if (numChars != expected.length) { 76 if (decoded[i] != expected[i])
|
/openjdk7/jdk/test/java/beans/Introspector/ |
H A D | Test6528714.java | 38 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 D | Atan2Tests.java | 34 static int testAtan2Case(double input1, double input2, double expected) { argument 37 StrictMath.atan2(input1, input2), expected); 39 Math.atan2(input1, input2), expected);
|
H A D | PowTests.java | 36 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 D | RoundTests.java | 62 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 D | Bug4807540.java | 40 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 D | Test6625450.java | 53 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 D | IsSynthetic.java | 38 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 D | Basic.java | 77 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 D | BinaryName.java | 53 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 D | SkipEOL.java | 37 byte[] expected = {12, 10, 23, 11, 10, 12, 10, 10}; 50 if (in.read() != expected[i]) {
|
/openjdk7/langtools/test/tools/apt/lib/ |
H A D | TestProcessor.java | 101 * 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 D | Test6378821.java | 47 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 D | Bug6653944.java | 59 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 D | PermitOverflow.java | 52 } 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 D | Annotate.java | 135 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 D | Supplementary.java | 401 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 D | EasternArabicTest.java | 71 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 D | ShapingTest.java | 27 * @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 D | MeteredStream.java | 38 /* 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...] |