- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 54 for getters (0.15 seconds)
-
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
/** * Tests for the {@link AllocInfo} interface. * Since {@code AllocInfo} only declares getters, the tests focus on * verifying that implementations honour the contract. */ @ExtendWith(MockitoExtension.class) public class AllocInfoTest { @Mock AllocInfo mockAllocInfo; /** * Happy path – verifies that getters return the values supplied by the * implementation. */ @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java
throw new RuntimeException("Failed to access protected fields via reflection", e); } // Since SamrOpenAlias's constructor parameters are not directly exposed via getters in MsrpcSamrOpenAlias, // we cannot directly verify them here without reflection or extending SamrOpenAlias for testing.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.5K bytes - Click Count (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());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.1K bytes - Click Count (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");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
// Current behavior of test impl: returns same reference assertSame(raw, t.toByteArray(), "should return the same reference as mechanismToken"); } @Test @DisplayName("Setters accept null and getters return null") void settersAcceptNull() { TestSpnegoToken t = new TestSpnegoToken(); t.setMechanismToken(null); t.setMechanismListMIC(null);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.6K bytes - Click Count (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; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacUnicodeStringTest.java
// Verify that the object was created assertNotNull(pacString, "The PacUnicodeString object should not be null."); // Verify that the getters return the correct values assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.7K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (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); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Mon Aug 25 14:34:10 GMT 2025 - 6.7K bytes - Click Count (0)