- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,030 for thrown (0.32 sec)
-
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause()); assertEquals("boom", thrown.getCause().getMessage()); verify(supplier, times(1)).get(); verifyNoMoreInteractions(supplier); } @Test @DisplayName("No collaborator interaction occurs if exception is thrown beforehand")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true); doClose(mockCloseable, true); } public void testClose_closeableWithThrownException() throws IOException { // make sure that the exception is thrown if 'swallowException' is false // when the mock does throw an exception.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TearDown.java
* not fail a test when an exception is thrown from one of its {@link TearDown} instances, but * this is subject to change. Also, {@code junit4.TearDownTestCase} will. * * @throws Exception for any reason. {@code TearDownTestCase} ensures that any exception thrown * will not interfere with other TearDown operations. */ void tearDown() throws Exception;Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
try { customCb.executeWithCircuitBreaker(() -> { throw new RuntimeException("non-critical error"); }, isFailure); fail("Should have thrown exception"); } catch (CIFSException e) { // Expected - exception is thrown but not counted as failure } }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
doThrow(expectedException).when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class)); DcerpcException thrown = assertThrows(DcerpcException.class, () -> { new SamrPolicyHandle(mockHandle, server, access); }); assertEquals(expectedException, thrown); verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect4.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
byte[] buffer = new byte[6]; // Assert that an IOException is thrown with the expected message. IOException thrown = assertThrows(IOException.class, () -> { packet.readTrailerWireFormat(mockInputStream, buffer, 0); }); assertTrue(thrown.getMessage().contains("unexpected EOF reading netbios retarget session response")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java
} public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Thrown exception"; try { throw new UnsupportedSearchException(expectedMessage); // fail("Exception was not thrown"); } catch (UnsupportedSearchException e) { assertEquals(expectedMessage, e.getMessage());Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEndOfFileException.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb; /** * Exception thrown when reaching the end of an SMB file. * * This exception is thrown during read operations when * attempting to read beyond the end of a file. * * @author mbechler */ public class SmbEndOfFileException extends SmbException { /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
android/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/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
// Act & Assert SmbException thrown = assertThrows(SmbException.class, () -> { new SamrAliasHandle(mockDcerpcHandle, mockSamrDomainHandle, access, rid); }); assertEquals(errorCode, thrown.getNtStatus()); } @Test void close_shouldCloseAliasSuccessfully() throws IOException { // Arrange int access = 1; int rid = 100;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0)