Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetException (0.06 sec)

  1. src/test/java/jcifs/util/transport/ResponseTest.java

            // Call the method
            mockResponse.reset();
    
            // Verify that the method was called
            verify(mockResponse, times(1)).reset();
        }
    
        @Test
        void testGetException() {
            Exception testException = new RuntimeException("Test Exception");
            when(mockResponse.getException()).thenReturn(testException);
            assertEquals(testException, mockResponse.getException());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            // Then
            verify(response).setExpiration(expiration);
        }
    
        @Test
        @DisplayName("Test Response interface methods - getException")
        void testGetException() {
            // Given
            Exception expectedException = new Exception("Test exception");
            when(response.getException()).thenReturn(expectedException);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
Back to top