Searched refs:expected (Results 201 - 225 of 358) sorted by relevance

1234567891011>>

/openjdk7/langtools/test/tools/javac/
H A DT6397044.java104 String expected = "[" + name.toString().substring(2) + "]";
106 if (!found.equals(expected))
107 throw new AssertionError("expected: " + expected + "; found: " + found);
/openjdk7/langtools/test/tools/javac/enum/
H A DEnumImplicitPrivateConstructor.java87 System.out.println("\tTesting expected modifiers");
88 int expected = em.value();
90 if (expected != (classModifiers & (Modifier.ABSTRACT|Modifier.FINAL|Modifier.STATIC))) {
92 System.out.println("\tFAILED: Expected 0x" + Integer.toHexString(expected) +
/openjdk7/langtools/test/tools/javac/file/
H A DT7018098.java111 <T> void checkEqual(String label, T actual, T expected) { argument
112 if (actual != expected)
115 + "; expected: " + expected
/openjdk7/langtools/test/tools/javac/tree/
H A DClassTreeTest.java57 int expected = 4;
58 if (checks != expected)
59 error("Unexpected number of checks performed; expected: " + expected + ", found: " + checks);
87 error("Unexpected kind for node named " + name + ": expected: " + k + ", found: " + c.getKind());
/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/nio/channels/DatagramChannel/
H A DDisconnect.java54 * that disconnect works as expected.
73 } catch (NotYetConnectedException expected) {
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/GenSSLConfigs/
H A DTraffic.java34 // in is compared with what it's expected to be.
231 byte expected [];
236 expected = new byte [n];
237 prng.nextBytes (expected);
240 if (actual [i] != expected [i])
/openjdk7/jdk/test/tools/pack200/
H A DPackageVersionTest.java83 String expected = "Pack200, Vendor: " +
86 if (!versionStr.equals(expected)) {
87 System.out.println("Expected: " + expected);
89 throw new RuntimeException("did not get expected string " + expected);
149 String.format("test fails: expected:%d.%d but got %d.%d\n",
/openjdk7/langtools/test/tools/javac/ExtDirs/
H A DExtDirs.sh99 echo PASS: all tests gave expected results
/openjdk7/jdk/test/sun/net/idn/
H A DTestStringPrep.java153 fail("Did not get the expected exception");
166 Exception expected = testCase.expected;
172 fail("Did not get the expected output for nfs4_cis_prep at index " + i);
175 if(!((expected instanceof ParseException) && (e instanceof ParseException))) {
176 fail("Did not get the expected exception");
199 fail("Did not get expected output. Expected: "+ prettify(src)+
212 fail("Did not get expected output. Expected: "+ prettify(src)+
224 fail("Did not get expected output. Expected: "+ prettify(src)+
243 fail("Did not get the expected outpu
[all...]
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/
H A DParseException.java141 static ParseException badRepIDPrefix (Scanner scanner, String entry, String expected, String got) argument
143 return arg3 ("badRepIDPrefix", scanner, entry, expected, got);
322 static ParseException syntaxError (Scanner scanner, int expected, int got) argument
324 return arg2 ("syntax1", scanner, Token.toString (expected), Token.toString (got));
327 static ParseException syntaxError (Scanner scanner, String expected, String got) argument
329 return arg2 ("syntax1", scanner, expected, got);
332 static ParseException syntaxError (Scanner scanner, int[] expected, int got) argument
334 return syntaxError (scanner, expected, Token.toString (got));
337 static ParseException syntaxError (Scanner scanner, int[] expected, String got) argument
340 for (int i = 0; i < expected
[all...]
/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DCloseDuringWrite.java83 System.out.format("wrote %d, expected %d%n", n, limit);
85 } catch (ClosedChannelException expected) {
86 System.out.println(expected + " (expected)");
H A DConnectState.java50 // NO exceptions expected
53 // make a set of expected exception.
54 static Collection<Class<?>> expectedExceptions(Class<?>... expected) { argument
56 if (expected.length == 0) {
58 } else if (expected.length == 1) {
59 assert expected[0] != null;
60 exceptions = Collections.<Class<?>>singleton(expected[0]);
62 exceptions = new HashSet<>(Arrays.asList(expected));
128 log.println(name + ": As expected: "
138 // exceptions we expected
[all...]
/openjdk7/jdk/test/javax/management/query/
H A DQueryExpStringTest.java143 String expected = (String) tests[i + 1];
144 if (expected.equals(testString))
145 System.out.println("OK: " + expected);
147 System.err.println("Expected: {" + expected + "}; got: {" +
154 String[] expectedref = new String[] {expected};
162 if (parsedString.equals(expected))
165 System.err.println("Parse differs: expected: {" +
166 expected + "}; got: {" +
171 System.err.println("Parse got exception: {" + expected +
313 throw new Exception("Empty string found, expression expected");
[all...]
/openjdk7/hotspot/test/compiler/6823354/
H A DTest6823354.java164 static void check(int value, int result, int expected) { argument
165 //System.out.println(value + ": " + result + ", " + expected);
166 if (result != expected)
167 throw new InternalError(value + " failed: " + result + " != " + expected);
170 static void check(long value, long result, long expected) { argument
171 //System.out.println(value + ": " + result + ", " + expected);
172 if (result != expected)
173 throw new InternalError(value + " failed: " + result + " != " + expected);
/openjdk7/jdk/test/com/sun/jdi/
H A DPopSynchronousTest.java99 String expected = ""; field in class:PopSynchronousTest
139 if (!actual().equals(expected)) {
140 failure("FAIL: expected value: " + expected +
163 failure("FAIL: expected " + methodName +
196 expected = "";
197 ((ClassType)targetClass).setValue(field, vm().mirrorOf(expected));
203 expected += output[stateIndex];
H A DArrayRangeTest.java60 Sample(String name, ArrayReference arrRef, int[] expected) { argument
63 this.expected = expected;
67 int[] expected; field in class:ArrayRangeTest.Sample
98 if (ival != samp.expected[index]) {
115 ".getValue(" + index + ") - no expected exception");
118 ".getValue(" + index + ") - got expected: " + exc);
129 if (vals.size() != samp.expected.length) {
132 " , expected: " + samp.expected
[all...]
/openjdk7/jdk/test/java/lang/Math/
H A DCeilAndFloorTests.java34 private static int testCeilCase(double input, double expected) { argument
36 failures += Tests.test("Math.ceil", input, Math.ceil(input), expected);
37 failures += Tests.test("StrictMath.ceil", input, StrictMath.ceil(input), expected);
41 private static int testFloorCase(double input, double expected) { argument
43 failures += Tests.test("Math.floor", input, Math.floor(input), expected);
44 failures += Tests.test("StrictMath.floor", input, StrictMath.floor(input), expected);
/openjdk7/jdk/test/sun/util/logging/
H A DPlatformLoggerTest.java83 logger.getName() + " but expected " + name);
102 private static void checkLoggable(PlatformLogger logger, PlatformLogger.Level level, boolean expected) { argument
103 if (logger.isLoggable(level) != expected) {
105 (expected ? " not loggable" : " loggable"));
108 if (logger.isLoggable(level.intValue()) != expected) {
110 (expected ? " not loggable" : " loggable"));
114 if (expected && !logger.isLoggable(value)) {
195 + javaLevel + " is not the expected " + level);
221 + platformLevel.name() + " but expected " + level.getName());
225 + platformLevel.intValue() + " but expected "
[all...]
/openjdk7/langtools/test/tools/javac/api/
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/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/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/lang/management/ThreadMXBean/
H A DSynchronizationStatistics.java325 long expected = t.totalBlockedTimeMs(nowNano);
328 timeRangeCheck(blockedTime, expected, 5);
334 long expected = t.totalWaitTimeMs(nowNano);
337 timeRangeCheck(waitedTime, expected, 5);
340 private void timeRangeCheck(long time, long expected, int percent) argument
343 double diff = expected - time;
347 " expected = " + expected +
357 long range = (expected * percent) / 100;
365 " expected
[all...]
/openjdk7/jdk/test/java/util/ResourceBundle/Control/
H A DDefaultControlTest.java176 List<Locale> expected = Arrays.asList(candidateData.get(locale));
177 if (!candidates.equals(expected)) {
178 error("Wrong candidates for %s: got %s, expected %s%n",
179 toString(locale), candidates, expected);
201 error("getFallbackLocale: got %s, expected %s%n",
206 error("getFallbackLocale: got %s, expected null%n", toString(loc));
232 error("newBundle: #%d got %s, expected Japan%n", testNo, s);
240 error("newBundle: #%d got %s, expected %s%n", testNo, s, CLAZZ);
300 error("getTimeToLive: got %d, expected %d%n", ttl,
357 String expected
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/
H A DTypedAnnotationWriter.java207 private void checkType(Class<?> actual, Class<?> expected) { argument
208 if(expected==actual || expected.isAssignableFrom(actual))
211 if( expected==JCodeModel.boxToPrimitive.get(actual) )
214 throw new IllegalArgumentException("Expected "+expected+" but found "+actual);

Completed in 218 milliseconds

1234567891011>>