- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 471 for correctly (0.06 sec)
-
src/test/java/jcifs/dcerpc/UUIDTest.java
assertEquals(CLOCK_SEQ_HI_AND_RESERVED, uuid.clock_seq_hi_and_reserved, "clock_seq_hi_and_reserved should be parsed correctly"); assertEquals(CLOCK_SEQ_LOW, uuid.clock_seq_low, "clock_seq_low should be parsed correctly"); assertArrayEquals(NODE, uuid.node, "node array should be parsed correctly"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
// Test with zero buffer.putInt(0, 0); assertEquals(0, NtlmMessage.readULong(data, 0), "Should read zero ULong correctly."); // Test with max int value (unsigned interpretation) buffer.putInt(0, 0xFFFFFFFF); assertEquals(0xFFFFFFFF, NtlmMessage.readULong(data, 0), "Should read max ULong correctly.");
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/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Then assertEquals(mid, request.getMid(), "MID should be set correctly"); assertEquals(asyncId, request.getAsyncId(), "AsyncId should be set correctly"); assertEquals(credits, request.getCredit(), "Credits should be set correctly"); assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
return 0; } } @Nested @DisplayName("Interface Tests") class InterfaceTests { @Test @DisplayName("Should implement getContextType correctly") void testGetContextType() { // Test with different context types TestNegotiateContextRequest request1 = new TestNegotiateContextRequest(0x1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
// Then assertEquals(currentTime, lastModified, "Should return correct last modified time"); assertEquals(currentTime - 1000, lastAccess, "Should return correct last access time"); assertEquals(currentTime - 2000, createTime, "Should return correct create time"); assertTrue(createTime <= lastAccess, "Create time should be before or equal to last access");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
byte[] token = { 0x0A, 0x0B, 0x0C }; Smb2SessionSetupRequest req = new Smb2SessionSetupRequest(mockContext, securityMode, capabilities, previousSessionId, token); // Then - verify fields are set correctly using reflection Field commandField = ServerMessageBlock2.class.getDeclaredField("command"); commandField.setAccessible(true); int command = (int) commandField.get(req);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
} } @Nested @DisplayName("Encoding Tests") class EncodingTests { @Test @DisplayName("Should encode single cipher correctly") void testEncodeSingleCipher() { int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM }; EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
@Test @DisplayName("Should handle zero value correctly") void testConstructorZero() { // Given/When: Creating NdrShort with zero NdrShort ndrShort = new NdrShort(0); // Then: Value should be zero assertEquals(0, ndrShort.value); } @Test @DisplayName("Should handle maximum byte value correctly") void testConstructorMaxByte() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
@Mock private NdrBuffer mockDeferredBuffer; @Nested @DisplayName("UUID Tests") class UuidTests { @Test @DisplayName("Should encode UUID correctly") void testUuidTEncode() throws NdrException { // Given: A UUID with test values rpc.uuid_t uuid = new rpc.uuid_t(); uuid.time_low = 0x12345678;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
class SamrCloseHandleTests { @Test @DisplayName("Should construct with correct opnum") void testConstructorAndOpnum() { // When: Creating close handle message samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle); // Then: Should have correct opnum and handle assertEquals(0x01, message.getOpnum());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0)