- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for getExpiration (0.07 sec)
-
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
} @Test @DisplayName("Test Response interface methods - setExpiration") void testSetExpiration() { // Given Long expiration = System.currentTimeMillis() + 60000L; doNothing().when(response).setExpiration(expiration); // When response.setExpiration(expiration); // Then verify(response).setExpiration(expiration);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
when(mockResponse.getExpiration()).thenReturn(expiration); assertEquals(expiration, mockResponse.getExpiration()); // Test null expiration when(mockResponse.getExpiration()).thenReturn(null); assertNull(mockResponse.getExpiration()); // Verify the method was called verify(mockResponse, times(2)).getExpiration(); } @Test
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/DfsReferralDataTest.java
// Given long expiration = System.currentTimeMillis(); when(mockReferralData.getExpiration()).thenReturn(expiration); // When long result = mockReferralData.getExpiration(); // Then assertEquals(expiration, result); verify(mockReferralData).getExpiration(); } @Test @DisplayName("Should get next referral") void testNext() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
Long expiration = 1000L; echoResponse.setExpiration(expiration); assertEquals(expiration, echoResponse.getExpiration()); echoResponse.setExpiration(null); assertNull(echoResponse.getExpiration()); } } @Nested @DisplayName("Signature Verification Tests") class SignatureVerificationTests { @Test
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/dfs/DfsReferralDataInternalTest.java
// Test with mock when(mockReferralData.getExpiration()).thenReturn(expiration); assertEquals(expiration, mockReferralData.getExpiration()); verify(mockReferralData, times(1)).getExpiration(); // Test with concrete implementation long concreteExpiration = concreteImplementation.getExpiration(); assertTrue(concreteExpiration >= 0); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertEquals("share2", combined.getShare()); assertEquals("path2", combined.getPath()); assertEquals("DOMAIN", combined.getDomain()); assertEquals(second.getExpiration(), combined.getExpiration()); // Path consumed should be combined int expectedPathConsumed = 20 + 15; if (first.getPath() != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
} @Test @DisplayName("getExpiration: null when unset, value when positive") void testGetExpiration() { SmbSessionImpl session = newSession(); assertNull(session.getExpiration()); setField(session, "expiration", 123L); assertEquals(123L, session.getExpiration()); setField(session, "expiration", 0L); assertNull(session.getExpiration()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Response.java
/** * Gets the expiration time for this response. * * @return the message timeout */ Long getExpiration(); /** * Sets the expiration time for this response. * * @param exp the message timeout to set */ void setExpiration(Long exp); /** * Resets this response to its initial state. */ void reset(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
* {@inheritDoc} * * @see jcifs.util.transport.Response#getExpiration() */ @Override public Long getExpiration() { return this.expiration; } /** * {@inheritDoc} * * @see jcifs.util.transport.Response#setExpiration(java.lang.Long) */ @Override public void setExpiration(final Long exp) { this.expiration = exp; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/DfsReferralData.java
*/ String getPath(); /** * Get the expiration time of this referral entry * * @return the expiration time of this entry */ long getExpiration(); /** * Get the next referral in the chain * * @return pointer to next referral, points to self if there is no further referral */ DfsReferralData next(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0)