Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetExpiration (0.09 sec)

  1. src/test/java/jcifs/DfsReferralDataTest.java

            // Then
            assertEquals(path, result);
            verify(mockReferralData).getPath();
        }
    
        @Test
        @DisplayName("Should get expiration")
        void testGetExpiration() {
            // Given
            long expiration = System.currentTimeMillis();
            when(mockReferralData.getExpiration()).thenReturn(expiration);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/ResponseTest.java

            // Call the method
            mockResponse.error();
    
            // Verify that the method was called
            verify(mockResponse, times(1)).error();
        }
    
        @Test
        void testGetExpiration() {
            Long expiration = 123456789L;
            when(mockResponse.getExpiration()).thenReturn(expiration);
            assertEquals(expiration, mockResponse.getExpiration());
    
            // Test null expiration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top