/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/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/jdk/src/share/classes/sun/tools/jstat/ |
H A D | SyntaxException.java | 46 public SyntaxException(int lineno, String expected, String found) { argument 48 + ": Expected " + expected 52 public SyntaxException(int lineno, String expected, Token found) { argument 54 + ": Expected " + expected 58 public SyntaxException(int lineno, Token expected, Token found) { argument 60 + ": Expected " + expected.toMessage() 64 public SyntaxException(int lineno, Set expected, Token found) { argument 70 for (Iterator i = expected.iterator(); i.hasNext(); /* empty */) {
|
/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/javax/swing/plaf/basic/BasicSplitPaneUI/ |
H A D | Test6657026.java | 74 private static void test(JSplitPane pane, String action, int expected) { argument 75 ActionEvent event = new ActionEvent(pane, expected, action); 78 if (actual != expected) { 79 throw new Error(actual + ", but expected " + expected);
|
/openjdk7/langtools/test/tools/javac/TryWithResources/ |
H A D | TwrMultiCatch.java | 50 Class<? extends Exception> expected) { 55 if (!exception.getClass().equals(expected) ) { 49 test(TwrMultiCatch twrMultiCatch, Class<? extends Exception> expected) argument
|
/openjdk7/langtools/test/tools/javac/varargs/ |
H A D | Varargs1.java | 53 static void check(int expected, int actual) { argument 54 if (actual != expected) throw new AssertionError(actual);
|
/openjdk7/langtools/test/tools/javadoc/enum/docComments/ |
H A D | Main.java | 72 private static boolean checkComment(String found, String expected) { argument 73 System.out.println("expected: \"" + expected + "\""); 75 return expected.equals(found);
|
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | TestISO2022JPSubBytes.java | 43 static byte[][] expected = { {0x1b, 0x24, 0x42, 0x21, 0x7b, field in class:TestISO2022JPSubBytes 64 test(enc, in[0], expected[0]); 67 test(enc, in[1], expected[1]); 71 test(enc, in[2], expected[2]); 74 test(enc, in[3], expected[3]);
|
H A D | TestUTF8BOM.java | 40 private static void testDecode(String expected, byte[] input) argument 44 if (!out.equals(expected)) { 45 failureReport (out, expected); 55 if (!out.equals(expected)) { 56 failureReport (out, expected); 62 String expected) { 65 for (int i = 0; i < expected.length() ; i++) { 66 System.out.println("expected char[" + i + "] : " + 67 Integer.toHexString((int)expected.charAt(i)) + 61 failureReport(String testStr, String expected) argument
|
/openjdk7/jdk/test/sun/security/krb5/auto/ |
H A D | BadKdc.java | 70 public static void go(String... expected) argument 73 go0(expected); 86 public static void go0(String... expected) argument 114 test(expected[0]); 115 test(expected[1]); 117 test(expected[2]); 121 test(expected[3]); 123 test(expected[4]); 138 private static void test(String expected) throws Exception { argument 142 test0(bo, expected); 155 test0(ByteArrayOutputStream bo, String expected) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/ |
H A D | ElementChecker.java | 13 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, Element actual) argument
|
/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/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/KeyWrap/ |
H A D | NISTWrapKAT.java | 29 * expected using NIST test vectors. 60 String expected) throws Exception { 83 byte[] expectedVal = new BigInteger(expected, 16).toByteArray(); 59 testKeyWrap(int keyLen, int dataLen, String expected) argument
|
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/ |
H A D | B6393710.java | 51 * has the expected authorization credentials 89 System.out.println ("Did not received expected data"); 105 /* check for expected string and return true if found in stream */ 107 static boolean readAndCheck (InputStream is, String expected) throws IOException { argument 110 int expLen = expected.length(); 111 expected = expected.toLowerCase(); 115 if (c == expected.charAt (count)) { 143 System.out.println ("Handler expected 22. got " + count);
|
/openjdk7/jdk/test/java/awt/font/NumericShaper/ |
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/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/beans/PropertyEditor/6380849/ |
H A D | TestPropertyEditor.java | 71 private static void test(Class<?> type, Class<? extends PropertyEditor> expected) { argument 73 if ((actual == null) && (expected != null)) { 74 throw new Error("expected editor is not found"); 76 if ((actual != null) && !actual.getClass().equals(expected)) {
|
/openjdk7/jdk/test/java/io/DataInputStream/ |
H A D | SkipBytes.java | 34 int toskip, int expected) { 40 System.err.println("Expected result = " + expected); 43 if (skipped != expected) { 45 ("DataInputStream.skipBytes does not return expected value"); 33 dotest(DataInputStream dis, int pos, int total, int toskip, int expected) argument
|
/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/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/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/Math/ |
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 | 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);
|