- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for testException (0.15 sec)
-
src/test/java/jcifs/util/transport/ResponseTest.java
} @Test void testException() { Exception testException = new IllegalArgumentException("Another Test Exception"); mockResponse.exception(testException); // Verify that the method was called with the correct argument verify(mockResponse, times(1)).exception(testException); } @Test void testGetNextResponse() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
@Test @DisplayName("Should handle exception") void testException() { Exception testException = new Exception("Test exception"); response.exception(testException); assertTrue(response.isError()); assertTrue(response.isReceived()); assertSame(testException, response.getException()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
@Test @DisplayName("Should handle exception") void testException() { Exception testException = new Exception("Test exception"); assertFalse(echoResponse.isError()); assertFalse(echoResponse.isReceived()); assertNull(echoResponse.getException()); echoResponse.exception(testException); assertTrue(echoResponse.isError());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
@Test @DisplayName("Test exception state") void testExceptionState() { Exception testException = new RuntimeException("Test error"); assertNull(testBlock.getException()); testBlock.exception(testException); assertEquals(testException, testBlock.getException()); } @Test @DisplayName("Test error state")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.TestExceptions.SomeCheckedException; import com.google.common.collect.TestExceptions.SomeUncheckedException; import com.google.common.testing.GcFinalization; import java.lang.ref.WeakReference; import java.util.Iterator; import java.util.NoSuchElementException;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbSessionTest.java
void shouldHandleCloseExceptionGracefully() throws Exception { SmbSession mockSession = mock(SmbSession.class); Exception testException = new Exception("Test close exception"); doThrow(testException).when(mockSession).close(); Exception thrownException = assertThrows(Exception.class, mockSession::close, "close() should propagate exceptions");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
// Given RuntimeException testException = new RuntimeException("Test exception"); when(mockDelegate.getResponseTimeout()).thenThrow(testException); // When & Then RuntimeException thrownException = assertThrows(RuntimeException.class, () -> { delegatingConfig.getResponseTimeout(); });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
// Then assertEquals(expectedException, actualException); verify(response).getException(); } @Test @DisplayName("Test Response interface methods - exception") void testException() { // Given Exception ex = new RuntimeException("Runtime error"); doNothing().when(response).exception(ex); // When response.exception(ex); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Object value = new Object(); assertSame( value, new AbstractFuture<Object>() { { set(value); } }.get()); } public void testException() throws InterruptedException { Throwable failure = new Throwable(); AbstractFuture<String> future = new AbstractFuture<String>() { { setException(failure); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Object value = new Object(); assertSame( value, new AbstractFuture<Object>() { { set(value); } }.get()); } public void testException() throws InterruptedException { Throwable failure = new Throwable(); AbstractFuture<String> future = new AbstractFuture<String>() { { setException(failure); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0)