Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for 0x12345678 (0.07 sec)

  1. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. 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 {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. 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");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. 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.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(newState, leaseContext.getLeaseState());
        }
    
        @Test
        @DisplayName("Should set and get lease flags")
        void testLeaseFlagsAccessors() {
            int newFlags = 0x12345678;
    
            leaseContext.setLeaseFlags(newFlags);
            assertEquals(newFlags, leaseContext.getLeaseFlags());
        }
    
        @Test
        @DisplayName("Should encode context correctly")
        void testEncode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. 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 session
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. 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");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top