Searched defs:expected (Results 51 - 75 of 221) sorted by relevance

123456789

/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DUnboundSocketTests.java36 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 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/jdk/src/share/classes/sun/tools/jstat/
H A DSyntaxException.java46 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 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/javax/swing/plaf/basic/BasicSplitPaneUI/
H A DTest6657026.java74 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 DTwrMultiCatch.java50 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 DVarargs1.java53 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 DMain.java72 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 DTestISO2022JPSubBytes.java43 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 DTestUTF8BOM.java40 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 DBadKdc.java70 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 DElementChecker.java13 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, Element actual) argument
/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/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/property/
H A DArrayElementNodeProperty.java50 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 DNISTWrapKAT.java29 * 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 DB6393710.java51 * 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 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/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/beans/PropertyEditor/6380849/
H A DTestPropertyEditor.java71 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 DSkipBytes.java34 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 DTrailingSlash.java38 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 DParseHexFloatingPoint.java43 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 DParseFloat.java32 private static void check(String val, float expected) { argument
34 if (n != expected)
/openjdk7/jdk/test/java/lang/Math/
H A DExpm1Tests.java185 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 DHypotTests.java198 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);

Completed in 99 milliseconds

123456789