- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 185 for getters (0.2 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
// Act – serialise and parse back byte[] bytes = original.toByteArray(); NegTokenTarg roundTrip = new NegTokenTarg(bytes); // Assert – all getters match the original values assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip"); assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
if ((caps & Smb2Constants.SMB2_GLOBAL_CAP_ENCRYPTION) != 0) capCount++; assertEquals(expectedCapabilityCount, capCount); } @Test @DisplayName("Should handle all getters correctly") void testAllGetters() { // Given when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311); when(mockConfig.isEncryptionEnabled()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java
assertEquals(12, qos.length); assertEquals(2, qos.impersonation_level); assertEquals(1, qos.context_mode); assertEquals(0, qos.effective_only); // Assert ptype and flags using getters assertEquals(0, msrpcLsarOpenPolicy2.getPtype()); assertEquals(MsrpcLsarOpenPolicy2.DCERPC_FIRST_FRAG | MsrpcLsarOpenPolicy2.DCERPC_LAST_FRAG, msrpcLsarOpenPolicy2.getFlags());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/entity/PingResponseTest.java
// we'll test the class behavior through unit tests that verify the logic // The actual integration with ClusterHealthResponse is tested in integration tests // Test that the constructor and getters work with proper setup FessConfig mockConfig = new FessConfig.SimpleImpl() { private static final long serialVersionUID = 1L; @Override public Set<String> getApiPingEsFieldSet() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
as an intermediate step. #### Vars and Vals Java doesn’t have language support for properties so developers make do with getters and setters. Kotlin does have properties and we take advantage of them in OkHttp. * **Address**: certificatePinner, connectionSpecs, dns, hostnameVerifier, protocols, proxy,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0)