Searched refs:fail (Results 276 - 300 of 1065) sorted by relevance

<<11121314151617181920>>

/libcore/luni/src/test/java/libcore/java/net/
H A DOldPasswordAuthenticationTest.java30 fail("NullPointerException was not thrown.");
H A DOldUnixSocketTest.java64 fail("Should throw SocketException; got i=" + i);
72 fail("Should throw SocketException");
78 fail("Should throw SocketException");
96 fail("No interrupted exception when connecting to address nobody listening on with short timeout 200");
H A DOldSocketTestCase.java93 * it is expected on the current platform, do nothing. Otherwise, fail the
108 fail("Threw \""
114 fail("Exception during test : " + e.getMessage());
127 fail("Failed to throw exception for unsupported socket option: "
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DDirectoryIteratorExceptionTest.java34 fail();
H A DDefaultSecureDirectoryStreamTest.java54 import static org.junit.Assert.fail;
121 fail();
133 fail();
164 fail();
177 fail();
183 fail();
189 fail();
196 fail();
211 fail();
221 fail();
[all...]
H A DDefaultFileSystemProviderTest.java76 import static org.junit.Assert.fail;
101 fail();
106 fail();
112 fail();
137 fail();
142 fail();
160 fail();
178 fail();
199 fail();
220 fail();
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DOldMessageFormatFieldTest.java69 fail("Unexpected IllegalArgumentException: " + e);
74 fail("Expected InvalidObjectException for subclass instance with null name");
79 fail("unexpected IOException" + e);
81 fail("unexpected ClassNotFoundException" + e);
/libcore/luni/src/test/java/libcore/java/util/
H A DOptionalIntTest.java39 fail();
50 IntConsumer alwaysFails = value -> fail();
65 IntSupplier alwaysFails = () -> { fail(); return 57; };
80 fail();
H A DOptionalLongTest.java39 fail();
50 LongConsumer alwaysFails = value -> fail();
65 LongSupplier alwaysFails = () -> { fail(); return 57; };
80 fail();
H A DRemoveIfTester.java25 import static junit.framework.Assert.fail;
73 * Removing from an empty collection should not fail.
77 fail();
85 fail();
95 fail();
H A DOldCollectionsTest.java74 fail("ClassCastException expected");
92 fail("Should throw ClassCastException");
107 fail("ClassCastException expected");
148 fail("Assert 0: synchronizedCollection(null) must throw NPE");
161 fail("Assert 0: synchronizedSortedMap(null) must throw NPE");
174 fail("Assert 0: synchronizedMap(map) must throw NPE");
187 fail("Assert 0: synchronizedSet(set) must throw NPE");
200 fail("Assert 0: synchronizedSortedSet(null) must throw NPE");
213 fail("Assert 0: unmodifiableCollection(null) must throw NPE");
226 fail("Asser
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DKeyAgreementSpiTest.java95 fail("IllegalStateException must be thrown");
104 fail("NoSuchAlgorithmException must be thrown");
110 fail("IllegalArgumentException must be thrown");
116 fail("IllegalArgumentException must be thrown");
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKSSecretKeyEntryTest.java47 fail("NullPointerException must be thrown when secretKey is null");
58 fail("Unexpected exception was thrown when secretKey is not null");
72 fail("NullPointerException must be thrown when attributes is null");
116 fail("The returned set of attributed should be unmodifiable");
H A DKSTrustedCertificateEntryTest.java51 fail("NullPointerException must be thrown when trustCert is null");
61 fail("Unexpected exception was thrown when trustCert is not null");
74 fail("NullPointerException must be thrown when attributes is null");
120 fail("The returned set of attributed should be unmodifiable");
/libcore/luni/src/test/java/tests/security/cert/
H A DCertPathValidator3Test.java67 fail(NotSupportMsg);
91 fail(NotSupportMsg);
101 fail("InvalidAlgorithmParameterException must be thrown");
106 fail("NullPointerException must be thrown");
H A DCertificateCertificateRepTest.java43 fail("Unexpected exeption " + e.getMessage());
52 fail("Unexpected exeption " + e.getMessage());
66 fail("ObjectStreamException expected");
79 fail("Unexpected ObjectStreamException " + e.getMessage());
/libcore/luni/src/test/java/tests/security/spec/
H A DRSAOtherPrimeInfoTest.java58 fail("Expected NPE not thrown");
72 fail("Expected NPE not thrown");
86 fail("Expected NPE not thrown");
100 fail("Expected NPE not thrown");
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
H A DTCKValueRangeSerialization.java63 import static org.testng.Assert.fail;
150 fail("Invalid minSmallest > minLargest " + ValueRange.class.getName());
161 fail("Invalid maxSmallest > maxLargest " + ValueRange.class.getName());
172 fail("Invalid minLagest > maxLargest " + ValueRange.class.getName());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DShortBufferTest.java119 fail("Should throw Exception"); //$NON-NLS-1$
135 fail("Should throw Exception"); //$NON-NLS-1$
152 fail("Should throw Exception"); //$NON-NLS-1$
246 fail("Should throw Exception"); //$NON-NLS-1$
266 fail("Should throw Exception"); //$NON-NLS-1$
281 fail("Should throw Exception"); //$NON-NLS-1$
288 fail("Should throw Exception"); //$NON-NLS-1$
295 fail("Should throw Exception"); //$NON-NLS-1$
302 fail("Should throw Exception"); //$NON-NLS-1$
308 fail("Shoul
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedWriterTest.java87 fail("Writing to a closed stream should throw IOException");
162 fail("should throw IndexOutOfBoundsException");
169 fail();
176 fail("should throw NullPointerException");
183 fail("should throw NullPointerException");
196 fail("should throw IndexOutOfBoundsException");
205 fail("should throw IOException");
243 fail("should throw NullPointerException");
254 fail("should throw StringIndexOutOfBoundsException");
263 fail("shoul
[all...]
H A DPipedInputStreamTest.java139 fail("Failed to throw expected exception");
220 fail();
232 fail();
244 fail();
270 fail();
278 fail();
291 fail();
326 fail();
395 fail("Should throw IllegalArgumentException"); //$NON-NLS-1$
402 fail("Shoul
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
H A DAbstractSelectableChannelTest.java148 fail("Should throw IllegalArgumentException");
154 fail("Should throw NullPointerException");
162 fail("Should throw IllegalArgumentException");
168 fail("Should throw NullPointerException");
174 fail("Should throw IllegalSelectorException");
184 fail("Should throw IllegalArgumentException");
190 fail("Should throw IllegalBlockingModeException");
198 fail("Should throw IllegalArgumentException");
204 fail("Should throw IllegalBlockingModeException");
215 fail("Shoul
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DBreakIteratorTest.java87 fail("should throw illegal argument exception");
94 fail("should throw illegal argument exception");
103 fail("should throw illegal argument exception");
112 fail("should throw illegal argument exception");
139 fail("should throw illegal argument exception");
150 fail("should throw illegal argument exception");
247 fail();
261 fail();
289 fail("BreakIterator.getCharacterInstance(null); should throw NullPointerException");
297 fail("BreakIterato
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLServerSocketFactoryTest.java69 fail("Unexpected exception " + e.toString());
90 fail("Unexpected exception " + e);
103 fail("Unexpected exception " + e);
/libcore/luni/src/test/java/libcore/java/lang/
H A DEnumTest.java69 fail();
110 // This test has no positive or negative assertions. If it fails, it will fail because
115 fail();
121 fail();

Completed in 452 milliseconds

<<11121314151617181920>>