- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for 0x1234567 (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
byte[] buffer = new byte[] { 0x00, 0x00, // padding 0x78, 0x56, 0x34, 0x12, // little-endian 0x12345678 0x00, 0x00 // padding }; int readLen = response.readParameterWordsWireFormat(buffer, 2); assertEquals(0x12345678L, response.getOffset(), "Offset should match decoded value"); assertEquals(4, readLen, "Byte count returned should be 4"); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/util/EncdecTest.java
assertEquals(0x12, buffer[1] & 0xFF); } @Test @DisplayName("Should encode and decode 32-bit integers") void testInt32Operations() { // Given int value = 0x12345678; byte[] buffer = new byte[4]; // When - encode little endian Encdec.enc_uint32le(value, buffer, 0); long decoded = Encdec.dec_uint32le(buffer, 0); // Then
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
cmd/lock-rest-server-common_test.go
testPath, locker, _ := createLockTestServer(ctx, t) defer os.RemoveAll(testPath) lockRequesterInfo1 := lockRequesterInfo{ Owner: "owner", Writer: true, UID: "0123-4567", Timestamp: UTCNow().UnixNano(), TimeLastRefresh: UTCNow().UnixNano(), } lockRequesterInfo2 := lockRequesterInfo{ Owner: "owner", Writer: true, UID: "89ab-cdef",
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
public void testContextWithFlags() { CompressionNegotiateContext contextWithFlags = new CompressionNegotiateContext(config, new int[] { CompressionNegotiateContext.COMPRESSION_LZ77 }, 0x12345678); assertEquals(0x12345678, contextWithFlags.getFlags()); } @Test @DisplayName("Test toString representation") public void testToString() { String str = context.toString();
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
} @Test public void testReadInt() throws IOException { // Little-endian 0x12345678 -> 0x78 0x56 0x34 0x12 byte[] data = new byte[] { 0x78, 0x56, 0x34, 0x12 }; PacDataInputStream pdis = createInputStream(data); assertEquals(0x12345678, pdis.readInt()); } @Test public void testReadLong() throws IOException {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
*/ @Test void testConstructorWithError_unknownCode() { int errorCode = 0x12345678; // An arbitrary unknown error code DcerpcException exception = new DcerpcException(errorCode); assertEquals(errorCode, exception.getErrorCode(), "Error code should match the input."); assertEquals("0x12345678", exception.getMessage(), "Message should be hex string for unknown error code."); } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
when(mockNegotiate.getNegotiatedSendBufferSize()).thenReturn(65535); when(mockNegotiate.getNegotiatedMpxCount()).thenReturn(65535); when(mockNegotiate.getNegotiatedSessionKey()).thenReturn(0x12345678); } /** Simple test stub of {@link ServerData} */ private static class ServerDataStub extends ServerData { public ServerDataStub() { this.security = SmbConstants.SECURITY_USER;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
serverData.encryptedPasswords = true; serverData.encryptionKey = new byte[8]; // Configure mock transport mockTransport.server = serverData; mockTransport.sessionKey = 0x12345678; mockTransport.capabilities = SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS; mockTransport.snd_buf_size = 16644; mockTransport.maxMpxCount = 50; // Configure mock sessionCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java
} /** * Test constructor with integer flags. */ @Test void testAvFlagsIntConstructor() { // Test with a positive integer int flags = 0x12345678; AvFlags avFlags = new AvFlags(flags); assertNotNull(avFlags, "AvFlags object should not be null"); assertEquals(flags, avFlags.getFlags(), "Flags should match the input integer");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
return Stream.of(org.junit.jupiter.params.provider.Arguments.of(0x0001, 0x00000000), org.junit.jupiter.params.provider.Arguments.of(0xFFFF, 0x12345678), org.junit.jupiter.params.provider.Arguments.of(-1, -123456)); } @ParameterizedTest @MethodSource("validInputs")
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.6K bytes - Click Count (0)