/openjdk7/jdk/test/java/lang/Byte/ |
H A D | Decode.java | 48 private static void check(String val, byte expected) { argument 50 if (n != expected)
|
/openjdk7/jdk/test/java/lang/Float/ |
H A D | ParseFloat.java | 32 private static void check(String val, float expected) { argument 34 if (n != expected)
|
/openjdk7/jdk/test/java/lang/Integer/ |
H A D | Decode.java | 47 private static void check(String val, int expected) { argument 49 if (n != expected) 99 throw new RuntimeException("Integer.decode(null) expected to throw NPE");
|
/openjdk7/jdk/test/java/lang/Long/ |
H A D | Decode.java | 49 private static void check(String val, long expected) { argument 51 if (n != expected) 103 throw new RuntimeException("Long.decode(null) expected to throw NPE");
|
/openjdk7/jdk/test/java/lang/Math/ |
H A D | HypotTests.java | 198 static int testHypotCase(double input1, double input2, double expected) { argument 199 return testHypotCase(input1,input2, expected, 1); 202 static int testHypotCase(double input1, double input2, double expected, argument 205 if (expected < 0.0) { 219 Math.hypot(x, y), expected, ulps); 221 Math.hypot(y, x ), expected, ulps); 224 StrictMath.hypot(x, y), expected, ulps); 226 StrictMath.hypot(y, x), expected, ulps);
|
H A D | Expm1Tests.java | 185 double expected) { 186 return testExpm1CaseWithUlpDiff(input, expected, 1, null); 190 double expected, 208 expected, mathUlps, -1.0); 211 expected, strictUlps, -1.0); 184 testExpm1Case(double input, double expected) argument 189 testExpm1CaseWithUlpDiff(double input, double expected, double ulps, boolean [] reachedLimit) argument
|
H A D | Log1pTests.java | 177 double expected) { 178 return testLog1pCaseWithUlpDiff(input, expected, 1); 182 double expected, 187 expected, ulps); 190 expected, ulps); 176 testLog1pCase(double input, double expected) argument 181 testLog1pCaseWithUlpDiff(double input, double expected, double ulps) argument
|
/openjdk7/jdk/test/java/lang/Short/ |
H A D | Decode.java | 48 private static void check(String ashort, short expected) { argument 50 if (sh != expected)
|
/openjdk7/jdk/test/javax/crypto/spec/DESKeySpec/ |
H A D | CheckParity.java | 61 byte [] expected, KeySpec ks) throws Exception { 71 if (!Arrays.equals(expected, encoded)) { 72 throw new Exception("encoded key is not the expected key"); 60 check(String alg, byte [] key, byte [] expected, KeySpec ks) argument
|
/openjdk7/jdk/test/javax/management/openmbean/ |
H A D | CompositeDataStringTest.java | 68 String[] expected = { 75 for (String expect : expected) { 87 throw new Exception("TEST FAILED: string did not contain expected substrings");
|
/openjdk7/jdk/test/javax/swing/plaf/metal/MetalBorders/ |
H A D | Test6657026.java | 80 Insets expected = (Insets) actual.clone(); 87 if (!expected.equals(border.getBorderInsets(null))) {
|
/openjdk7/jdk/test/sample/mergesort/ |
H A D | MergeSortTest.java | 95 private void assertEqual(int[] expected, int[] array) { argument 96 if (!Arrays.equals(expected, array)) {
|
/openjdk7/jdk/test/sun/net/www/protocol/http/ |
H A D | UserAgent.java | 43 String expected = "foo Java/"+version; 47 if (!expected.equals (v)) {
|
/openjdk7/langtools/test/tools/javac/processing/filer/ |
H A D | TestInvalidRelativeNames.java | 88 } catch (IllegalArgumentException expected) { 89 System.out.println("expected exception thrown: " + expected);
|
/openjdk7/jdk/test/java/util/PluggableLocale/ |
H A D | DateFormatProviderTest.java | 140 String pattern, expected; 148 expected = String.format("%s={0,%s}", type, type); 150 expected = pattern; 158 if (!toPattern.equals(expected)) { 160 + "', expected '" + expected + "'");
|
/openjdk7/jdk/test/sun/security/pkcs11/KeyStore/ |
H A D | SecretKeysBasic.java | 94 SecretKey expected, 98 ks.setKeyEntry(alias, expected, null, null); 108 c.init(Cipher.ENCRYPT_MODE, expected); 116 if (!Arrays.equals(result.getEncoded(), expected.getEncoded())) { 117 dumpKey("\texpected:", expected); 93 checkSecretKeyEntry(String alias, SecretKey expected, boolean saveBeforeCheck) argument
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | SignatureAndHashAlgorithm.java | 235 Collection<SignatureAndHashAlgorithm> algorithms, String expected) { 238 algorithms, expected, null); 243 String expected, PrivateKey signingKey) { 245 if (expected == null && !algorithms.isEmpty()) { 255 if (expected == null ) { 256 return null; // no expected algorithm, no supported algorithm 265 expected.equalsIgnoreCase("rsa")) { 295 if (expected.equalsIgnoreCase("rsa") && 301 (expected.equalsIgnoreCase("dsa") && 303 (expected 234 getPreferableAlgorithm( Collection<SignatureAndHashAlgorithm> algorithms, String expected) argument 241 getPreferableAlgorithm( Collection<SignatureAndHashAlgorithm> algorithms, String expected, PrivateKey signingKey) argument [all...] |
/openjdk7/jdk/test/java/nio/file/attribute/FileTime/ |
H A D | Basic.java | 114 throw new RuntimeException("NullPointerException expected"); 121 throw new RuntimeException("NullPointerException expected"); 125 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { argument 127 if (result != expected) 151 long expected = u.convert(v, unit); 152 if (result != expected) { 158 static void ts(long v, TimeUnit unit, String expected) { argument 160 if (!result.equals(expected)) { 162 System.err.format("Expected: %s\n", expected);
|
/openjdk7/hotspot/test/compiler/5057225/ |
H A D | Test5057225.java | 85 static void check(long result, long expected) { argument 86 if (result != expected) 87 throw new InternalError(result + " != " + expected);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/addressing/ |
H A D | WsaClientTube.java | 94 String expected = helper.getOutputAction(packet); 96 if (expected != null && !gotA.equals(expected))
|
/openjdk7/jdk/test/com/sun/jdi/ |
H A D | FramesTest.java | 90 failure("expected IndexOutOfBoundsException " + 106 String expected = expectedNames[start+i]; 107 if (!name.equals(expected)) { 109 ") - expected " + expected +
|
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | TransferToChannel.java | 92 byte[] expected = new byte[size]; 93 rand.nextBytes(expected); 95 if (incoming[i] != expected[i])
|
/openjdk7/jdk/test/java/nio/file/etc/ |
H A D | Exceptions.java | 77 throw new RuntimeException("NullPointerException expected"); 78 } catch (NullPointerException expected) { } 92 throw new RuntimeException("InvalidObjectException expected"); 93 } catch (InvalidObjectException expected) { } 98 throw new RuntimeException("InvalidObjectException expected"); 99 } catch (InvalidObjectException expected) { }
|
/openjdk7/jdk/test/javax/management/descriptor/ |
H A D | DescriptorTest.java | 182 Object expected = testFieldValues[i]; 184 if ((expected == null) ? 186 !expected.equals(found)) 188 " was " + expected + " now " + found; 244 Object[] expected = new Object[names.length]; 247 expected[i / 2] = fieldsAndValues[i + 1]; 252 strings(foundNames) + ", expected " + strings(names); 255 if (!Arrays.deepEquals(expected, found)) { 259 Arrays.asList(expected); 294 return "did not throw exception: " + expected(); 308 String expected() { method in class:DescriptorTest.ExceptionCase [all...] |
/openjdk7/langtools/test/tools/javac/StringsInSwitch/ |
H A D | StringSwitches.java | 220 int expected = testExpected[i]; 223 if (result != expected) { 227 testStrings[i], result, expected);
|