Searched defs:expected (Results 176 - 200 of 221) sorted by relevance

123456789

/openjdk7/jdk/test/sample/chatserver/
H A DChatTest.java130 private static void assertEqual(List<Exception> exception, Object value, Object expected) { argument
131 if (expected == value) {
134 if (expected == null) {
138 if (!expected.equals(value)) {
139 exception.add(new RuntimeException("Expected: " + expected + " but was: " + value));
/openjdk7/jdk/test/sun/net/idn/
H A DTestData.java276 public Exception expected; field in class:TestData.ErrorCase
284 expected = ex;
435 Exception expected; field in class:TestData.ConformanceTestCase
458 expected = ex;
/openjdk7/jdk/test/sun/nio/cs/
H A DFindOneCharEncoderBugs.java89 private static void testChar(byte[] expected, CharBuffer cb, Charset cs, char c) { argument
92 if (! equals(expected, bb))
95 toString(expected), toString(bb));
H A DTestISO2022CNDecoder.java70 System.err.print(" ... expected 0x"
140 CoderResult expected,
146 if (!equal(result, expected)) {
160 if (!equal(result, expected)) {
189 + ", expected exception");
139 decodeResultTest(byte encoded[], CoderResult expected, String label) argument
/openjdk7/jdk/src/share/classes/sun/net/
H A DProgressSource.java48 //bytes expected
49 private long expected = -1; field in class:ProgressSource
69 public ProgressSource(URL url, String method, long expected) { argument
75 this.expected = expected;
131 * Return expected maximum progress; -1 if expected is unknown.
134 return expected;
164 expected = expectedProgress;
196 if (expected !
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/http/
H A DKeepAliveStream.java56 public KeepAliveStream(InputStream is, ProgressSource pi, long expected, HttpClient hc) { argument
57 super(is, pi, expected);
83 if (expected > count) {
84 long nskip = (long) (expected - count);
91 } else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) {
131 if (closed || count >= expected) {
133 } else if (in.available() < (expected - count)) {
140 int size = (int) (expected - count);
200 return expected - count;
/openjdk7/langtools/test/tools/javac/api/
H A DTestJavacTaskScanner.java100 void check(int value, String name, int expected) { argument
103 if (value < expected * 9 / 10)
104 throw new Error(name + " lower than expected; expected " + expected + "; found: " + value);
105 if (value > expected * 11 / 10)
106 throw new Error(name + " higher than expected; expected " + expected + "; found: " + value);
H A DTestContainTypes.java157 boolean expected; field in class:TestContainTypes.ContainTypesTester
160 ContainTypesTester(boolean expected, JavaSource source) { argument
161 this.expected = expected;
207 if (processingEnv.getTypeUtils().contains(t1, t2) != expected) {
211 "expected answer : " + expected +"\n");
/openjdk7/langtools/test/tools/javac/types/
H A DBoxingConversionTest.java63 void check(TypeHarness harness, Type from, Type to, Result expected) {
64 harness.assertAssignable(from, to, resSet.contains(expected));
69 void check(TypeHarness harness, Type from, Type to, Result expected) {
70 harness.assertConvertible(from, to, resSet.contains(expected));
80 abstract void check(TypeHarness harness, Type from, Type to, Result expected); argument
H A DPrimitiveConversionTest.java63 void check(TypeHarness harness, Type from, Type to, Result expected) {
64 harness.assertAssignable(from, to, resSet.contains(expected));
69 void check(TypeHarness harness, Type from, Type to, Result expected) {
70 harness.assertConvertible(from, to, resSet.contains(expected));
80 abstract void check(TypeHarness harness, Type from, Type to, Result expected); argument
H A DTypeHarness.java95 public void assertSubtype(Type s, Type t, boolean expected) { argument
96 if (types.isSubtype(s, t) != expected) {
97 String msg = expected ?
110 public void assertSameType(Type s, Type t, boolean expected) { argument
111 if (types.isSameType(s, t) != expected) {
112 String msg = expected ?
125 public void assertCastable(Type s, Type t, boolean expected) { argument
126 if (types.isCastable(s, t) != expected) {
127 String msg = expected ?
140 public void assertConvertible(Type s, Type t, boolean expected) { argument
155 assertAssignable(Type s, Type t, boolean expected) argument
170 assertValidGenericType(Type t, boolean 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/src/share/classes/java/lang/invoke/
H A DInvokers.java347 WrongMethodTypeException newWrongMethodTypeException(MethodType actual, MethodType expected) { argument
349 return new WrongMethodTypeException("expected "+expected+" but found "+actual);
357 MethodType expected = (MethodType) expectedObj;
359 if (actual != expected)
360 throw newWrongMethodTypeException(expected, actual);
368 MethodType expected = (MethodType) expectedObj;
370 MethodHandle gamh = expected.form().genericInvoker;
372 return prepareForGenericCall(expected);
/openjdk7/hotspot/src/share/vm/ci/
H A DciInstanceKlass.hpp106 void update_if_shared(instanceKlass::ClassState expected) { argument
107 if (_is_shared && _init_state != expected) {
/openjdk7/jdk/test/demo/zipfs/
H A DPathOps.java69 void check(Object result, String expected) { argument
70 out.format("\tExpected: %s\n", expected);
73 if (expected == null) return;
76 if (expected != null && result.toString().equals(expected.toString()))
82 void check(Object result, boolean expected) { argument
83 check(result, Boolean.toString(expected));
86 PathOps root(String expected) { argument
89 check(path.getRoot(), expected);
93 PathOps parent(String expected) { argument
100 name(String expected) argument
107 element(int index, String expected) argument
114 subpath(int startIndex, int endIndex, String expected) argument
167 resolve(String other, String expected) argument
174 relativize(String other, String expected) argument
182 normalize(String expected) argument
189 string(String expected) argument
[all...]
/openjdk7/jdk/test/java/lang/Math/
H A DIeeeRecommendedTests.java88 static int testGetExponentCase(float f, int expected) { argument
93 Math.getExponent(f), expected);
95 Math.getExponent(minus_f), expected);
98 StrictMath.getExponent(f), expected);
100 StrictMath.getExponent(minus_f), expected);
107 static int testGetExponentCase(double d, int expected) { argument
112 Math.getExponent(d), expected);
114 Math.getExponent(minus_d), expected);
117 StrictMath.getExponent(d), expected);
119 StrictMath.getExponent(minus_d), expected);
339 testNextAfterCase(float start, double direction, float expected) argument
357 testNextAfterCase(double start, double direction, double expected) argument
939 testScalbCase(float value, int scale_factor, float expected) argument
1146 testScalbCase(double value, int scale_factor, double expected) argument
1358 testUlpCase(float f, float expected) argument
1373 testUlpCase(double d, double expected) argument
[all...]
/openjdk7/jdk/test/java/lang/String/
H A DSupplementary.java401 int expected = Character.codePointCount(str, j, length);
402 check(result != expected, "codePointCount(input["+i+"], "+j+", "+length+")",
403 result, expected);
408 check(result != expected, "substring:codePointCount(input["+i+"], "+j+", "+length+")",
409 result, expected);
413 int expected = Character.codePointCount(str, 0, j);
414 check(result != expected, "codePointCount(input["+i+"], 0, "+j+")",
415 result, expected);
418 check(result != expected, "substring:codePointCount(input["+i+"], 0, "+j+")",
419 result, expected);
544 testCodePoint(boolean isAt, String s, int index, int expected) argument
566 testIndexOf(String s, int c, int expected) argument
582 testIndexOf2(String s, int c, int expected) argument
590 testLastIndexOf(String s, int c, int expected) argument
606 testLastIndexOf2(String s, int c, int expected) argument
614 testIndexOf(String s, int fromIndex, int c, int expected) argument
625 testLastIndexOf(String s, int fromIndex, int c, int expected) argument
680 check(boolean err, String s, int got, int expected) argument
[all...]
/openjdk7/jdk/test/java/net/ipv6tests/
H A DTests.java137 /* check the time got is within 50% of the time expected */
138 public static void checkTime (long got, long expected) { argument
139 dprintln ("checkTime: got " + got + " expected " + expected);
140 long upper = expected + (expected / 2);
141 long lower = expected - (expected / 2);
143 throw new RuntimeException ("checkTime failed: got " + got + " expected " + 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/jdk/src/share/native/sun/awt/image/jpeg/
H A Djdphuff.c145 int expected = (coef_bit_ptr[coefi] < 0) ? 0 : coef_bit_ptr[coefi]; local
146 if (cinfo->Ah != expected)
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DSignatureAndHashAlgorithm.java235 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/text/Format/DateFormat/
H A DBug4823811.java490 String expected = formattedDatesEG[basePattern][i]
497 expected, locale.toString());
518 String expected = formattedDatesUS[basePattern][i]
525 expected, locale.toString());
532 String expected,
536 if (expected.equals(str)) {
552 System.out.println(" Expected: \"" + expected + "\"");
652 System.out.println(" threw ParseException as expected");
703 String expected,
706 if (expected
529 testDateFormatFormatting(SimpleDateFormat sdf, String pattern, GregorianCalendar givenGC, String expected, String locale) argument
701 testNumberFormatFormatting(NumberFormat nf, int given, String expected, String locale) argument
724 testNumberFormatParsing(NumberFormat nf, String given, Number expected, String locale) argument
756 testNumberFormatParsingCheckException(NumberFormat nf, String given, int expected, String locale) argument
[all...]
/openjdk7/jdk/test/java/util/concurrent/FutureTask/
H A DCustomized.java40 static void equal(long expected, AtomicLong actual) { argument
41 equal(expected, actual.get());
/openjdk7/jdk/test/javax/management/descriptor/
H A DDescriptorTest.java182 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...]
H A DMBeanInfoInteropTest.java111 private static void showMismatch(Object read, Serializable expected) argument
119 if (x == expected) {
126 System.out.println("...expected: " + expected);

Completed in 110 milliseconds

123456789