- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 185 for getters (1.01 sec)
-
src/main/java/jcifs/internal/witness/WitnessNotification.java
* * @param address the old IP address */ public void addOldIPAddress(InetAddress address) { oldIPAddresses.add(new WitnessIPAddress(address)); } // Getters and Setters /** * Gets the event type. * * @return the event type */ public WitnessEventType getEventType() { return eventType; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
Arguments.of(-1, -2L, -3L, -4L, -5L) // negative values ); } // --- Mockito interaction: verify each getter is invoked and returns stubbed values --- @Test void mockitoMock_verifiesGetterInteractions() { // Arrange: mock and stub each getter with distinct values SmbBasicFileInfo mock = Mockito.mock(SmbBasicFileInfo.class); Mockito.when(mock.getAttributes()).thenReturn(7);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
if (message != null && !message.isEmpty()) { assertTrue(ts.contains(message), "toString should include non-empty message"); } // Ensure constructors/getters don't interact with the cause verifyNoInteractions(mockCause); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegistration.java
* @return true if the registration is expired */ public boolean isExpired(long timeoutMs) { return System.currentTimeMillis() - lastHeartbeat > timeoutMs; } // Getters and setters /** * Gets the last heartbeat timestamp. * * @return the last heartbeat timestamp in milliseconds */ public long getLastHeartbeat() { return lastHeartbeat;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java
return data; } /** * Get size of this message * * @return size in bytes (32) */ public static int size() { return 32; } // Getters and setters /** * Get the minimum SMB Direct protocol version * * @return minimum protocol version */ public int getMinVersion() { return minVersion; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
} } @Nested @DisplayName("Getter Tests") class GetterTests { @Test @DisplayName("Should return correct values from getters") void testGetters() throws CIFSException { // When/Then: All getters should return expected values assertEquals(mockBinding, handle.getBinding());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
assertEquals("DOM", auth.getUserDomain()); } } @Test @DisplayName("Protected setSubject: updates subject used by getters") void setSubject_updatesSubject() { Kerb5Authenticator auth = new Kerb5Authenticator((Subject) null); assertNull(auth.getSubject()); Subject subject = new Subject();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java
/** * Check if negotiation was successful * * @return true if successful */ public boolean isSuccess() { return status == STATUS_SUCCESS; } // Getters and setters /** * Get the minimum SMB Direct protocol version * * @return minimum protocol version */ public int getMinVersion() { return minVersion; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertThrows(RuntimeCIFSException.class, a::getURLPath); assertThrows(RuntimeCIFSException.class, a::getUNCPath); } @Test @DisplayName("Server, port, URL passthrough getters") void testServerPortUrl() throws Exception { // No context mocks needed for this test SmbResourceLocatorImpl a = locator("smb://server:444/share"); assertEquals("server", a.getServer());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
assertEquals("Unsupported encryption type 99", exception.getMessage()); } /** * Test getters with null values. * * @throws IOException if an I/O error occurs * @throws PACDecodingException if a PAC decoding error occurs */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.7K bytes - Viewed (0)