/openjdk7/jdk/test/java/io/pathNames/unix/ |
H A D | TrailingSlash.java | 38 boolean expected, boolean threw) 40 if (expected == threw) { 42 + (expected ? "failed" : "succeeded")); 37 check(String what, String fns, boolean expected, boolean threw) argument
|
/openjdk7/jdk/test/java/lang/String/ |
H A D | ToLowerCase.java | 108 static void test(String in, Locale locale, String expected) { argument 110 if (!result.equals(expected)) { 112 ", expected: " + expected + ", actual: " + result);
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | UnboundSocketTests.java | 36 static void check(String msg, Object actual, Object expected) { argument 37 System.out.format("%s expected: %s, actual: %s", msg, expected, actual); 38 if (actual == expected) {
|
/openjdk7/jdk/test/java/nio/charset/coders/ |
H A D | IsLegalReplacement.java | 62 static void test(String csn, byte[] repl, boolean expected) argument 67 if (enc.isLegalReplacement(repl) == expected) { 70 out.print("Wrong: Expected " + expected);
|
H A D | Check.java | 87 private void mismatch(String s, byte[] expected, byte[] got) { argument 91 + Util.toString(expected) 98 private void mismatch(int i, byte[] ba, String expected, String got) { argument 104 + Util.toString(expected)
|
/openjdk7/jdk/src/share/instrument/ |
H A D | Reentrancy.c | 60 const void * expected); 91 const void * expected) { 102 jplis_assert(test == expected); 89 assertTLSValue( jvmtiEnv * jvmtienv, jthread thread, const void * expected) argument
|
/openjdk7/jdk/test/javax/management/query/ |
H A D | CustomQueryTest.java | 109 private static void assertEquals(Object expected, Object actual) argument 111 if (!expected.equals(actual)) { 112 String failure = "FAILED: expected " + expected + ", got " + actual;
|
/openjdk7/langtools/test/tools/javac/ |
H A D | T6238612.java | 67 error("returned array is too small; expected: " + list.size() + ", found: " + result.length); 83 void check(String[] array, int i, String expected) { argument 84 if (!equal(array[i], expected)) 85 error("element " + i + " incorrect; expected: " + str(expected) + ", found: " + str(array[i]));
|
H A D | T6993301.java | 99 private <T> void assertEquals(T expected, T actual) { argument 100 if (expected == null ? actual == null : expected.equals(actual)) 102 throw new AssertionError("expected: " + expected + ", actual: " + actual);
|
/openjdk7/langtools/test/tools/javac/api/6731573/ |
H A D | T6731573.java | 73 void checkErrorLine(String output, boolean expected, List<String> options) { argument 77 if (errLinePresent != expected) { 79 (expected ? "" : " not") + " expected but" +
|
/openjdk7/langtools/test/tools/javac/processing/environment/round/ |
H A D | TestContext.java | 74 <T> void check(T actual, T expected) { argument 75 // messager.printMessage(NOTE, "expect: " + expected); 78 if (actual != expected) { 80 "round " + round + " unexpected value for " + expected.getClass().getName() + ": " + actual);
|
/openjdk7/langtools/test/tools/javac/processing/model/element/ |
H A D | TypeParamBounds.java | 57 // bounds that are expected. 62 String[] expected = Gen.boundNames.get(tparam + ""); 64 if (bounds.size() != expected.length) 69 String shoulda = expected[i++];
|
/openjdk7/langtools/test/tools/javac/util/ |
H A D | T6597678.java | 94 <T> void checkEqual(String label, T actual, T expected) { argument 95 if (actual != expected) 98 + "; expected: " + expected
|
/openjdk7/jdk/test/java/lang/Class/getEnclosingClass/ |
H A D | EnclosingClassTest.java | 79 static void match(String actual, String expected) { argument 80 assert((actual == null && expected == null) || actual.equals(expected)); 82 actual + "' matches expected `" + 83 expected + "'");
|
/openjdk7/jdk/test/java/lang/Thread/ |
H A D | UncaughtExceptions.sh | 62 echo "PASS: all tests gave expected results" 72 name="$1" expected="$2" got="$3" 74 if test -z "$expected"; then 78 grep "$expected" "$got" >/dev/null || \ 79 Fail "Expected \"$expected\", got `cat $got`" 91 echo "PASS: command completed as expected"
|
/openjdk7/jdk/test/java/net/Authenticator/ |
H A D | B4962064.java | 133 Authenticator.RequestorType expected; 135 expected = Authenticator.RequestorType.SERVER; 137 expected = Authenticator.RequestorType.PROXY; 139 if (getRequestorType() != expected) {
|
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | ClosedByInterrupt.java | 146 expected(e + " thrown and interrupt status set"); 157 expected(e); 165 static void expected(Exception e) { method in class:ClosedByInterrupt 166 System.out.format("%s (expected)%n", e); 169 static void expected(String msg) { method in class:ClosedByInterrupt 170 System.out.format("%s (expected)%n", msg); 174 System.err.format("%s (not expected)%n", e);
|
/openjdk7/jdk/test/java/util/BitSet/ |
H A D | ImportExport.java | 73 byte[] expected = new byte[k+1]; expected[k] = bytes[k]; 74 equal(BitSet.valueOf(bytes).toByteArray(), expected); 87 byte[] expected = s.toByteArray(); 88 equal(expected.length, (s.length()+7)/8); 91 if (expected.length > 0) 92 check(expected[expected.length-1] != 0); 94 equal(bytes, expected);
|
/openjdk7/jdk/test/javax/crypto/CipherSpi/ |
H A D | DirectBBRemaining.java | 115 // Set up data and encrypt to known/expected values. 118 byte[] expected = cipher.doFinal(testdata); 162 if (outBB.remaining() != expected.length) { 164 "incomplete encryption output, expected " 165 + expected.length + " bytes but was only " 172 if (!Arrays.equals(expected, encrypted)) {
|
/openjdk7/jdk/test/java/lang/Double/ |
H A D | ParseHexFloatingPoint.java | 43 double result, double expected) { 46 if (Double.compare(result, expected) != 0 ) { 49 " expected " + expected + 56 static int testCase(String input, double expected) { argument 92 -expected: 93 expected)); 314 double expected = answers[i+offset]; 324 failures += testCase(s, expected); 417 float expected 42 test(String testName, String input, double result, double expected) argument [all...] |
/openjdk7/jdk/test/java/lang/Math/ |
H A D | IeeeRecommendedTests.java | 88 static int testGetExponentCase(float f, int expected) { argument 93 Math.getExponent(f), expected); 95 Math.getExponent(minus_f), expected); 98 StrictMath.getExponent(f), expected); 100 StrictMath.getExponent(minus_f), expected); 107 static int testGetExponentCase(double d, int expected) { argument 112 Math.getExponent(d), expected); 114 Math.getExponent(minus_d), expected); 117 StrictMath.getExponent(d), expected); 119 StrictMath.getExponent(minus_d), expected); 339 testNextAfterCase(float start, double direction, float expected) argument 357 testNextAfterCase(double start, double direction, double expected) argument 939 testScalbCase(float value, int scale_factor, float expected) argument 1146 testScalbCase(double value, int scale_factor, double expected) argument 1358 testUlpCase(float f, float expected) argument 1373 testUlpCase(double d, double expected) argument [all...] |
/openjdk7/jdk/src/macosx/native/jobjc/src/tests/java/com/apple/jobjc/ |
H A D | VarArgsTest.java | 35 String expected = "1 + 0.2 = 1.2 abracadabra"; 43 assertEquals(expected, actual);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/property/ |
H A D | ArrayElementNodeProperty.java | 50 public void serializeItem(JaxBeanInfo expected, ItemT item, XMLSerializer w) throws SAXException, IOException, XMLStreamException { argument 54 w.childAsXsiType(item,fieldName,expected, false);
|
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/AES/ |
H A D | TestShortBuffer.java | 55 private byte[] expected = null; field in class:TestShortBuffer 63 private void init(byte[] in, byte[] expected) { argument 65 this.expected = (byte[]) expected.clone(); 66 this.out = new byte[expected.length]; 82 byte[] expected = null; 109 if (!Arrays.equals(out, expected)) { 111 System.out.println("expect: " + new BigInteger(expected));
|
/openjdk7/jdk/test/com/sun/tools/extcheck/ |
H A D | TestExtcheckArgs.java | 65 static void verify(String[] args, String expected) throws Throwable { argument 70 if (ex.getMessage().startsWith(expected)) {
|