Searched refs:expected (Results 126 - 150 of 358) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/math/BigDecimal/
H A DPrecisionTests.java70 // The array below contains the expected precision of the above numbers
82 private static int testPrecision(BigDecimal bd, int expected) { argument
85 // System.out.printf("Testing %s, expected %d%n", bd, expected);
87 if (precision != expected) {
88 System.err.printf("For (%s).precision expected %d, got %d%n",
89 bd, expected, precision);
/openjdk7/jdk/test/java/net/URL/
H A DConstructor.java31 * result with an expected value.
39 * expected: jar:http://www.foo.com/dir1/jar.jar!/
41 * where URL is the context, spec is the spec and expected is the
42 * expected result. The first : must be followed by a space. Each test
68 String expected = getValue(in.readLine());
75 if (!(url.toString().equals(expected))) {
78 "\n\texpected: " + expected +
/openjdk7/jdk/test/java/nio/Buffer/
H A DOrder.java38 static void ck(ByteOrder ord, ByteOrder expected) { argument
39 if (ord != expected)
41 + ", expected " + expected);
/openjdk7/jdk/test/sun/security/rsa/
H A DInvalidBitString.java122 String title, boolean expected) throws Exception {
123 System.out.print("Checking " + title + ": expected: " +
124 (expected ? " verified" : "NOT verified"));
135 return actual == expected;
121 test(Certificate target, Certificate signer, String title, boolean expected) argument
/openjdk7/langtools/test/tools/javac/6668794/badClass/
H A DTest.java56 String expected = "B.java:6:6: compiler.err.cant.access: p.A, " +
60 if (!out[0].equals(expected)) {
61 System.err.println("expected: " + expected);
/openjdk7/jdk/test/java/util/Locale/
H A DBug4184873Test.java86 final Locale expected = new Locale(lang, "XX");
87 if (!(expected.equals(loc))) {
90 errln(" excpeted: "+expected);
/openjdk7/jdk/test/java/util/Random/
H A DNextBytes.java35 byte[] expected = new byte[]
38 for (int i = 0; i <= expected.length; i++) {
43 check(Arrays.equals(actual, Arrays.copyOf(expected,i)));
/openjdk7/jdk/test/javax/management/mxbean/
H A DMXBeanAnnotationTest.java83 private static boolean checkMXBean(MBeanInfo mbi, boolean expected, argument
88 if (is == expected)
91 failure = "MBean should " + (expected ? "" : "not ") +
/openjdk7/jdk/test/javax/xml/jaxp/PrecisionDecimalDV/
H A DXPrecisionDecimalToString.java91 private static void test(String ival, String fval, int sign, int pvalue, String expected) { argument
97 if (!expected.equals(canonical)) {
98 throw new Error("expected: "+expected+" got: "+ canonical);
/openjdk7/langtools/test/tools/javac/annotations/pos/
H A DPrimitives.java51 static void check(Object actual, Object expected) { argument
52 if (actual != expected)
53 throw new Error("expected: " + expected + "; actual = " + actual);
/openjdk7/langtools/test/tools/javac/api/7086261/
H A DT7086261.java27 * @summary javac doesn't report error as expected, it only reports ClientCodeWrapper$DiagnosticSourceUnwrapper
56 throw new AssertionError("Wrapped diagnostic expected!");
60 String expected = jd.toString();
61 if (!actual.equals(expected)) {
62 throw new AssertionError("expected = " + expected + "\nfound = " + actual);
/openjdk7/langtools/test/tools/javac/tree/
H A DT6963934.java54 int expected = 7;
55 if (count != expected)
56 throw new Exception("unexpected number of imports found: " + count + ", expected: " + expected);
/openjdk7/langtools/test/tools/javap/
H A DT6866657.java70 void expectEqual(int found, int expected) { argument
71 if (found != expected)
72 error("bad value found: " + found + " expected: " + expected);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/
H A DParseException.java115 * values) that is expected at this point of the parse.
137 StringBuffer expected = new StringBuffer();
144 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
147 expected.append("...");
149 expected.append(eol).append(" ");
172 retval += expected.toString();
/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);
H A DFixedLengthInputStream.java101 long expected; field in class:FixedLengthInputStream.MyHandler
103 MyHandler(long expected){ argument
104 this.expected = expected;
118 check(count == expected, "Expected: " + expected + ", received "
/openjdk7/jdk/test/sun/security/pkcs11/KeyGenerator/
H A DTestKeyGenerator.java51 TestResult expected)
71 if (expected == TestResult.FAIL) {
81 if (expected != TestResult.TBD && expected != actual) {
82 throw new Exception("Expected to " + expected + ", but " +
50 test(String algorithm, int keyLen, Provider p, TestResult expected) argument
/openjdk7/jdk/test/javax/management/proxy/
H A DNotificationEmitterProxy.java149 final int expected = 2*registered;
150 final int reg = counter.waitfor(expected,3000);
151 if (reg != expected)
153 ", expected " +expected);
154 System.out.println("Received expected "+reg+
164 System.out.println("Received expected "+mxnotifs+
168 final int unreg = counter.waitfor(expected+reg,3000);
169 if (unreg != (expected+reg))
171 ", expected "
[all...]
/openjdk7/jdk/test/java/nio/file/Path/
H A DPathOps.java66 void check(Object result, String expected) { argument
67 out.format("\tExpected: %s\n", expected);
70 if (expected == null) return;
73 if (expected != null && result.toString().equals(expected.toString()))
79 void check(Object result, boolean expected) { argument
80 check(result, Boolean.toString(expected));
83 PathOps root(String expected) { argument
86 check(path.getRoot(), expected);
90 PathOps parent(String expected) { argument
97 name(String expected) argument
104 element(int index, String expected) argument
111 subpath(int startIndex, int endIndex, String expected) argument
164 resolve(String other, String expected) argument
171 resolveSibling(String other, String expected) argument
178 relativize(String other, String expected) argument
186 normalize(String expected) argument
193 string(String expected) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/regexp/internal/
H A DRETest.java475 String[] expected = {"xxxx", "xxxx", "yyyy", "zzz"};
478 for (int i = 0; i < expected.length && i < s.length; i++) {
479 assertEquals("Wrong splitted part", expected[i], s[i]);
481 assertEquals("Wrong number of splitted parts", expected.length,
485 expected = new String[] {"xxxx", "xxxx"};
490 assertEquals("Grep fails", expected[i], s[i]);
492 assertEquals("Wrong number of string found by grep", expected.length,
499 String expected = "-foo-garply-wacky-";
501 assertEquals("Wrong result of substitution in \"a*b\"", expected, actual);
529 public void assertEquals(String message, String expected, Strin argument
539 assertEquals(String message, int expected, int actual) argument
848 assertEquals(StringBuffer log, String message, String expected, String actual) argument
860 assertEquals(StringBuffer log, String message, int expected, int actual) argument
[all...]
/openjdk7/jdk/test/com/sun/jdi/
H A DVars.java126 void test(Method method, int which, String name, String expected) { argument
128 if (got.equals(expected)) {
129 System.out.println(name + ": got expected: " + got);
132 System.out.println(name + ": ERROR expected: " + expected);
137 void test2(Method method, int which, String name, String expected, String expected2) { argument
139 if (got.equals(expected) || got.equals(expected2)) {
140 System.out.println(name + ": got expected: " + got);
143 System.out.println(name + ": ERROR expected: " + expected);
[all...]
/openjdk7/jdk/test/java/awt/regtesthelpers/
H A DAbstractPolicyTest.java116 void assertEquals(final String message, final Object expected, final Object actual) { argument
117 assertEquals(null, message, expected, actual);
120 void assertEquals(final String cont_id, final String message, final Object expected, final Object actual) { argument
121 if (actual == null && expected == null
122 || actual != null && actual.equals(expected))
128 "(actual = " + actual + ", expected = " + expected + ")");
/openjdk7/jdk/test/java/lang/Double/
H A DToHexString.java132 ", expected hex output " + testCases1[i][1] + ", got " + result +".");
165 ", expected hex output\n" + floatTestCases[i][1] + ", got\n" + result +".");
217 String expected;
219 equals( expected=hexLongStringtoHexDoubleString(testCases2[i][1]) )) {
222 ", expected hex output " + expected + ", got " + result +".");
231 String expected;
233 if(! (expected=doubleToHexString(d)).equals(result=Double.toHexString(d)) ) {
236 ", expected hex output " + expected
[all...]
/openjdk7/langtools/test/tools/javac/
H A DTestPkgInfo.java109 boolean expected;
112 expected = true;
117 expected = (sr || cr || rr ); // any annotation
121 expected = (cr || rr ); // any annotation in class file
128 if (exists && !expected)
129 error("package-info.class found but not expected");
130 if (!exists && expected)
131 error("package-info.class expected but not found");
/openjdk7/jdk/test/java/awt/Toolkit/ScreenInsetsTest/
H A DScreenInsetsTest.java80 Insets expected = new Insets(fBounds.y - gcBounds.y,
85 if (!expected.equals(gcInsets))
89 System.err.println("\tExpected: " + expected);

Completed in 56 milliseconds

1234567891011>>