- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 3,030 for thrown (0.06 sec)
-
src/test/java/jcifs/pac/PacSignatureTest.java
baos.write(buffer.array(), 0, 4); } /** * Test constructor with KERB_CHECKSUM_HMAC_MD5 type. * * @throws IOException if an I/O error occurs * @throws PACDecodingException if the PAC is malformed */ @Test void testConstructorKerbChecksumHmacMd5() throws IOException, PACDecodingException { // Prepare data ByteArrayOutputStream baos = new ByteArrayOutputStream();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
SomeCheckedException cause = new SomeCheckedException(); SomeChainingException thrown = new SomeChainingException(cause); assertThat(thrown).hasCauseThat().isSameInstanceAs(cause); assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause); assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause); ClassCastException expected = assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/DynamicProperties.java
* @throws FileAccessException * If the file cannot be accessed or created. */ public DynamicProperties(final File file) { // check path if (file == null) { throw new FileAccessException("ECL0108"); } this.propertiesFile = file;Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
verifyNoMoreInteractions(smbFile); } @Test @DisplayName("accept: propagates SmbException thrown by dependency") void accept_propagatesSmbException() throws Exception { // Arrange: filter delegates to isDirectory which may throw SmbException SmbFileFilter filter = f -> f.isDirectory(); SmbException boom = new SmbException("io error");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
for (Thread t : threads) { t.join(); } if (thrown.get() != null) { throw thrown.get(); } assertEquals(1, count.get()); } @J2ktIncompatible @GwtIncompatible // Thread @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races public void testSynchronizedSupplierThreadSafe() throws InterruptedException { Supplier<Integer> nonThreadSafe =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
// Arrange String msg = "downgrade not allowed"; // Act & Assert - verify thrown type and message SMBProtocolDowngradeException thrown = assertThrows(SMBProtocolDowngradeException.class, () -> { throw new SMBProtocolDowngradeException(msg); }); assertEquals(msg, thrown.getMessage()); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
CIFSException thrown = assertThrows(CIFSException.class, () -> { watchHandle.close(); }); assertEquals("Failed to close handle", thrown.getMessage()); verify(watchHandle, times(1)).close(); } /** * Test AutoCloseable behavior with try-with-resources */ @Test void testAutoCloseable() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java
/** * Ensures the exception is thrown and captured via assertThrows with the right message. */ @Test void assertThrowsCapturesExceptionAndMessage() { // Act & Assert SmbEndOfFileException thrown = assertThrows(SmbEndOfFileException.class, () -> { throw new SmbEndOfFileException(); }); assertEquals("Unexpectedly reached end of file", thrown.getMessage()); } /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
throw new TransportException(expectedMessage); }); // Test throwing and catching with cause RuntimeException cause = new RuntimeException("Cause"); TransportException thrown = assertThrows(TransportException.class, () -> { throw new TransportException(cause); }); assertEquals(cause, thrown.getCause());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionList.java
* order that they are added. * * <p>Exceptions thrown by a listener will be propagated up to the executor. Any exception thrown * during {@code Executor.execute} (e.g., a {@code RejectedExecutionException} or an exception * thrown by {@linkplain MoreExecutors#directExecutor direct execution}) will be caught and logged. * * @author Nishant ThakkarRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.9K bytes - Viewed (0)