- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testGetExpiration (0.21 seconds)
-
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); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0) -
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 expirationCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0)