Searched defs:expected (Results 101 - 125 of 221) sorted by relevance

123456789

/openjdk7/jdk/test/sun/nio/cs/
H A DTestUTF_16.java37 String expected,
42 if (!out.equals(expected)) {
43 failureReport (out, expected);
50 byte[] expected)
54 for (int i = 0; i< expected.length; i++)
55 if (testBytes[i] != expected[i])
66 String expected) {
69 for (int i = 0; i < expected.length() ; i++) {
70 warn("expected char[" + i + "] : " +
71 Integer.toHexString((int)expected
36 testDecode(String charset, String expected, byte[] input) argument
48 testEncode(String charset, String input, byte[] expected) argument
65 failureReport(String testStr, String expected) argument
[all...]
/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/src/share/classes/com/sun/org/apache/xml/internal/security/utils/
H A DElementCheckerImpl.java18 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, argument
21 String localnameSHOULDBE = expected.getBaseLocalName();
22 String namespaceSHOULDBE = expected.getBaseNamespace();
37 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, argument
40 String localnameSHOULDBE = expected.getBaseLocalName();
41 String namespaceSHOULDBE = expected.getBaseNamespace();
56 public void guaranteeThatElementInCorrectSpace(ElementProxy expected, argument
/openjdk7/hotspot/test/compiler/5057225/
H A DTest5057225.java85 static void check(long result, long expected) { argument
86 if (result != expected)
87 throw new InternalError(result + " != " + expected);
/openjdk7/jdk/test/com/sun/tools/extcheck/
H A DTestExtcheckArgs.java65 static void verify(String[] args, String expected) throws Throwable { argument
70 if (ex.getMessage().startsWith(expected)) {
/openjdk7/jdk/test/java/beans/Introspector/
H A DTest4498236.java182 private static void test(String expected, Object object) { argument
184 if (!actual.equals(object.getClass().getName() + expected)) {
H A DTest6422403.java45 private static void test(Class type, String name, Class expected) { argument
48 if (!expected.equals(pd.getPropertyType()))
49 throw new Error("expected " + expected + " but " + pd.getPropertyType() + " is resolved");
H A DTest6447751.java47 private static void test(Class<?> type, Class<?> expected) { argument
55 if (actual != expected) {
58 if (expected != null) {
59 sb.append("expected ").append(expected);
/openjdk7/jdk/test/java/lang/Double/
H A DParseDouble.java35 private static void check(String val, double expected) { argument
37 if (n != expected)
586 final double expected = 0x0.0000008000001p-1022;
597 if (conversion != expected) {
/openjdk7/jdk/test/java/lang/Math/
H A DHyperbolicTests.java271 // Result and expected are the same.
307 * So, we can calculate the approximate expected result as
328 * than exp(x+offset) alone. (The expected result cannot be
337 double expected =
341 failures += testSinhCaseWithUlpDiff(input, expected, 4.0);
349 // Result and expected are the same.
358 double expected,
363 expected, tolerance);
366 -expected, tolerance);
370 expected, toleranc
357 testSinhCaseWithTolerance(double input, double expected, double tolerance) argument
377 testSinhCaseWithUlpDiff(double input, double expected, double ulps) argument
715 testCoshCaseWithTolerance(double input, double expected, double tolerance) argument
735 testCoshCaseWithUlpDiff(double input, double expected, double ulps) argument
1009 testTanhCaseWithTolerance(double input, double expected, double tolerance) argument
1029 testTanhCaseWithUlpDiff(double input, double expected, double ulps) argument
[all...]
H A DTests.java30 * and finally the expected result.
53 boolean result, boolean expected) {
54 if (expected != result) {
57 "\texpected " + expected + "\n" +
66 boolean result, boolean expected) {
67 if (expected != result) {
70 "\texpected " + expected + "\n" +
79 boolean result, boolean expected) {
80 if (expected != result) {
84 "\texpected " + expected
52 test(String testName, float input, boolean result, boolean expected) argument
65 test(String testName, double input, boolean result, boolean expected) argument
78 test(String testName, float input1, float input2, boolean result, boolean expected) argument
91 test(String testName, double input1, double input2, boolean result, boolean expected) argument
104 test(String testName, float input, int result, int expected) argument
116 test(String testName, double input, int result, int expected) argument
129 test(String testName, float input, float result, float expected) argument
143 test(String testName, double input, double result, double expected) argument
156 test(String testName, float input1, double input2, float result, float expected) argument
171 test(String testName, double input1, double input2, double result, double expected) argument
186 test(String testName, float input1, int input2, float result, float expected) argument
201 test(String testName, double input1, int input2, double result, double expected) argument
216 testUlpCore(double result, double expected, double ulps) argument
243 testUlpDiff(String testName, double input, double result, double expected, double ulps) argument
257 testUlpDiff(String testName, double input1, double input2, double result, double expected, double ulps) argument
274 testUlpDiffWithAbsBound(String testName, double input, double result, double expected, double ulps, double absBound) argument
299 testUlpDiffWithLowerBound(String testName, double input, double result, double expected, double ulps, double lowerBound) argument
321 testTolerance(String testName, double input, double result, double expected, double tolerance) argument
[all...]
/openjdk7/jdk/test/java/net/Authenticator/
H A DB4722333.java40 static String [][] expected = { field in class:B4722333
137 if (f != expected.length) {
138 except ("Authenticator was called "+f+" times. Should be " + expected.length);
163 if (!scheme.equals (expected [count][0])) {
164 B4722333.except ("wrong scheme received, " + scheme + " expected " + expected [count][0]);
166 if (!prompt.equals (expected [count][1])) {
167 B4722333.except ("wrong realm received, " + prompt + " expected " + expected [count][1]);
/openjdk7/jdk/test/java/nio/Buffer/
H A DBasic.java77 String expected, char expectedChar,
96 + expected
101 static void fail(Buffer b, long expected, long got) { argument
103 Long.toHexString(expected), (char)expected,
112 static void ck(Buffer b, long got, long expected) { argument
113 if (expected != got)
114 fail(b, expected, got);
117 static void ck(Buffer b, float got, float expected) { argument
118 if (expected !
76 fail(Buffer b, String expected, char expectedChar, String got, char gotChar) argument
124 ck(Buffer b, double got, double expected) argument
[all...]
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DClosedByInterrupt.java146 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/nio/charset/coders/
H A DCheck.java87 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/test/java/nio/file/WatchService/
H A DBasic.java51 static void takeExpectedKey(WatchService watcher, WatchKey expected) { argument
57 // not expected
60 if (key != expected)
432 throw new RuntimeException("key not expected");
445 throw new RuntimeException("key not expected");
/openjdk7/langtools/test/tools/javac/6304921/
H A DTestLog.java88 private static void check(int found, int expected, String name) { argument
89 if (found == expected)
90 System.err.println(found + " " + name + " found, as expected.");
93 System.err.println("expected: " + expected);
/openjdk7/jdk/test/java/text/Format/DateFormat/
H A DISO8601ZoneTest.java37 // time zone name, expected output at TIMESTAMP
149 static void formatTest(String fmt, String expected) throws Exception { argument
152 if (!expected.equals(s)) {
154 + ", expected " + expected);
161 + ", expected " + TIMESTAMP.getTime());
169 + ", expected " + TIMESTAMP.getTime());
173 + pos.getIndex() + ", expected " + s.length());
212 + ", expected=" + expectedErrorIndex
/openjdk7/jdk/test/java/util/Locale/
H A DInternationalBAT.java52 + "failures are expected and OK.\n"
201 // expected conversion results for the date strings of the sample locales
239 byte[] expected = expectedBytes[i];
240 if (out.length != expected.length) {
241 reportConversionError(encoding, expected, out);
245 if (out[j] != expected[j]) {
246 reportConversionError(encoding, expected, out);
261 byte[] expected, byte[] actual) {
265 dumpBytes(expected);
260 reportConversionError(String encoding, byte[] expected, byte[] actual) argument
/openjdk7/jdk/test/java/util/ResourceBundle/Control/
H A DLoadingStrategiesTest.java75 private static void check(String msg, String got, String expected) { argument
76 if (!got.equals(expected)) {
77 error("%s: got \"%s\", expected \"%s\"%n", msg, got, expected);
/openjdk7/jdk/test/javax/rmi/ssl/
H A DSocketFactoryTest.java93 public static void testEquals(Object a, Object b, boolean expected) { argument
95 if (found != expected)
/openjdk7/jdk/src/share/classes/sun/net/
H A DProgressEvent.java45 // bytes expected
46 private long expected; field in class:ProgressEvent
53 public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, long progress, long expected) { argument
59 this.expected = expected;
96 * Return expected maximum progress value; -1 if expected is unknown.
99 return expected;
111 + ", content-type=" + contentType + ", progress=" + progress + ", expected=" + expected
[all...]
/openjdk7/langtools/test/tools/javac/
H A DQualifiedThisAndSuper_1.java64 void check(String expr, String result, String expected) { argument
65 if (!result.equals(expected)) {
67 " : result " + result + ", expected " + expected);
H A DQualifiedThisAndSuper_2.java37 void check(String expr, String result, String expected) { argument
38 if (!result.equals(expected)) {
40 " : result " + result + ", expected " + expected);
/openjdk7/langtools/test/tools/javac/api/6731573/
H A DT6731573.java73 void checkErrorLine(String output, boolean expected, List<String> options) { argument
77 if (errLinePresent != expected) {
79 (expected ? "" : " not") + " expected but" +

Completed in 88 milliseconds

123456789