Searched refs:expected (Results 301 - 325 of 358) sorted by relevance

<<1112131415

/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/
H A DSocketOptionTests.java54 ") not as expected (" + expectedValue + ")");
80 List<? extends SctpSocketOption<?>> expected = Arrays.<SctpSocketOption<?>>asList(
86 for (SctpSocketOption opt: expected) {
96 + streams.maxInStreams() + ", expected 1024 ");
98 + streams.maxOutStreams() + ", expected 1024 ");
/openjdk7/jdk/test/java/net/Authenticator/
H A DB6870935.java101 String expected = computeDigest(
105 if (!expected.equals(clientrsp)) {
/openjdk7/jdk/test/java/nio/channels/Selector/
H A DLotsOfCancels.java161 int expected)
166 while (channels.size() < expected) {
159 acceptAndAddAll(Selector selector, ServerSocketChannel server, int expected) argument
/openjdk7/jdk/test/java/util/ResourceBundle/Control/
H A DStressTest.java45 static final String[] expected = { field in class:StressTest
155 str = expected[index];
158 System.out.println("Worker" + i + ": locale="+locale+", expected="+str+
170 ", got " + s + ", expected " + str);
/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/remote/mandatory/notif/
H A DNotificationEmissionTest.java103 List<ObjectName> expected) {
117 ObjectName nb = expected.get(index);
152 echo("Did not get expected exception for value: " + propValue);
159 echo("Got expected exception for value: " + propValue);
101 checkNotifs(int size, List<Notification> received, List<ObjectName> expected) argument
H A DNotificationAccessControllerTest.java157 List<ObjectName> expected) {
171 ObjectName nb = expected.get(index);
253 echo("Didn't get expected exception");
258 echo("Got expected exception: " + e);
289 echo("Didn't get expected exception");
294 echo("Got expected exception: " + e);
155 checkNotifs(int size, List<Notification> received, List<ObjectName> expected) argument
/openjdk7/jdk/test/java/lang/invoke/
H A DInvokeGenericTest.java125 Object expected = logEntry(name, args);
127 if (expected.equals(actual) && verbosity < 9) return;
129 System.out.println("expected: "+expected);
131 System.out.println("ex. types: "+getClasses(expected));
133 assertEquals("previous method call", expected, actual);
/openjdk7/jdk/test/java/util/logging/
H A DTestAppletLoggerContext.java458 Logger expected = (System.getSecurityManager() != null
461 assertEquals(logger3, expected); // in applet context, we will not see
463 assertEquals(logger3b, expected); // in applet context, we will not see
473 assertEquals(logger4, expected); // adding a global logger will not work in applet context
474 assertEquals(logger4b, expected); // adding a global logger will not work in applet context
596 if (obj != null) throw new TestError("Null expected, got "+obj);
/openjdk7/langtools/test/tools/javac/types/
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
/openjdk7/jdk/test/java/lang/ProcessBuilder/
H A DBasic.java106 String expected,
109 check(got.equals(expected),
111 "Expected: \"" + expected + "\"\n" +
289 String expected = "standard input";
290 char[] buf = new char[expected.length()+1];
292 if (n != expected.length())
294 if (! new String(buf,0,n).equals(expected))
1127 String expected = Windows.is() ? "SystemRoot="+systemRoot+",": "";
1135 equal(result, expected);
1500 String expected
105 checkCommandOutput(ProcessBuilder pb, String expected, String failureMsg) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/sourcemodel/
H A DXmlPolicyModelUnmarshaller.java323 * Method checks whether the actual name of the end tag is equal to the expected name - the name of currently unmarshalled
324 * XML policy model element. Throws exception, if the two FQNs are not equal as expected.
326 * @param expected The expected element name.
328 * @throws PolicyException If the actual element name did not match the expected element.
330 private void checkEndTagName(final QName expected, final EndElement element) throws PolicyException { argument
332 if (!expected.equals(actual)) {
333 throw LOGGER.logSevereException(new PolicyException(LocalizationMessages.WSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH(expected, actual)));
/openjdk7/jdk/test/java/util/regex/
H A DRegExTest.java158 private static void check(Matcher m, String expected) { argument
160 if (!m.group().equals(expected))
164 private static void check(Matcher m, String result, boolean expected) { argument
166 if (m.group().equals(result) != expected)
170 private static void check(Pattern p, String s, boolean expected) { argument
171 if (p.matcher(s).find() != expected)
175 private static void check(String p, String s, boolean expected) { argument
177 if (matcher.find() != expected)
181 private static void check(String p, char c, boolean expected) { argument
182 String propertyPattern = expected
190 check(String p, int codePoint, boolean expected) argument
199 check(String p, int flag, String input, String s, boolean expected) argument
468 check(String regex, String input, String[] expected) argument
3150 explainFailure(String pattern, String data, String expected, String actual) argument
3342 check(Pattern p, String s, String g, String expected) argument
3349 checkReplaceFirst(String p, String s, String r, String expected) argument
3357 checkReplaceAll(String p, String s, String r, String expected) argument
[all...]
/openjdk7/jdk/test/javax/xml/jaxp/Encodings/
H A DCheckEncodingPropertiesFile.java386 final String expected = preferred.get(javaName.toUpperCase());
387 if (Arrays.deepEquals(new String[] {mime}, new String[] {expected})) {
390 throw new Error("Bad preferred mime type for: '"+javaName+"': expected '"+
391 expected+"' but got '"+mime+"'");
/openjdk7/jdk/test/sun/java2d/OpenGL/
H A DDrawBufImgOp.java378 Color expected = new Color(refImg.getRGB(x, y));
380 if (!isSameColor(expected, actual, tolerance)) {
382 " (expected="+expected+
H A DGradientPaints.java261 Color expected = new Color(refImg.getRGB(x, y));
263 if (!isSameColor(expected, actual, tolerance)) {
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DTransfer.java324 static void checkFileData(File file, String expected) throws Exception { argument
332 if (! contents.equals(expected))
333 throw new Exception("expected: " + expected
522 throw new RuntimeException("NonReadableChannelException expected");
523 } catch (NonReadableChannelException expected) {
/openjdk7/jdk/test/java/nio/file/DirectoryStream/
H A DBasic.java62 " not expected");
82 throw new RuntimeException("entry not expected");
96 throw new RuntimeException("no matching entries expected");
108 throw new RuntimeException("DirectoryIteratorException expected");
143 throw new RuntimeException("UnsupportedOperationException expected");
153 throw new RuntimeException("IllegalStateException not thrown as expected");
163 throw new RuntimeException("IllegalStateException not thrown as expected");
179 } catch (NoSuchElementException expected) { }
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DSignatureFileVerifier.java421 byte[] expected =
433 debug.println(" expected " + toHex(expected));
438 if (MessageDigest.isEqual(computed, expected)) {
445 if (MessageDigest.isEqual(computed, expected)) {
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/encoding/
H A DStreamSOAPCodec.java122 * Checks against expected Content-Type headers that is handled by a codec
125 * @param expected expected Content-Types for a codec
129 private static boolean isContentTypeSupported(String ct, List<String> expected) { argument
130 for(String contentType : expected) {
/openjdk7/jdk/test/com/sun/nio/sctp/SctpMultiChannel/
H A DSocketOptionTests.java62 ") not as expected (" + expectedValue + ")");
88 List<? extends SctpSocketOption<?>> expected = Arrays.<SctpSocketOption<?>>asList(
94 for (SctpSocketOption opt: expected) {
104 + streams.maxInStreams() + ", expected 1024 ");
106 + streams.maxOutStreams() + ", expected 1024 ");
/openjdk7/jdk/test/java/lang/StrictMath/
H A DLog1pTests.java45 static int testLog1pCase(double input, double expected) { argument
47 StrictMath.log1p(input), expected);
/openjdk7/jdk/test/sun/security/util/Resources/
H A DNewResourcesNames.java146 Set<String> expected = loadClass(clazz);
150 if (!expected.equals(found)) {
/openjdk7/langtools/test/tools/javadoc/lib/
H A DTester.java46 private final File expectedOutputFile = new File(TEST_SRC, "expected.out");
49 // True if we should "set expectations" by writing the expected output file
103 * Compare output of test run to expected output.
109 BufferedReader expected =
114 String line2 = expected.readLine();
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DHttpURLConnection.java2383 * The second request is (erroneously) expected to be GET
2446 * the expected number of bytes, probably 0
3138 long expected; field in class:HttpURLConnection.StreamingOutputStream
3147 * In the 2nd case, we make sure the expected number of
3152 expected = expectedLength;
3162 if (expected != -1L && written > expected) {
3177 if (expected != -1L && written > expected) {
3210 if (expected !
[all...]

Completed in 59 milliseconds

<<1112131415