Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 116 for 0x12345678 (0.09 seconds)

  1. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

        }
    
        @Test
        @DisplayName("Test setAdditionalInformation method")
        void testSetAdditionalInformation() {
            request = new Smb2SetInfoRequest(mockConfig);
            int testAdditionalInfo = 0x12345678;
    
            request.setAdditionalInformation(testAdditionalInfo);
    
            // Verify additional information was set
            Field additionalInfoField;
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  2. 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: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/dcerpc/rpcTest.java

            @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;
                uuid.time_mid = (short) 0x9ABC;
                uuid.time_hi_and_version = (short) 0xDEF0;
                uuid.clock_seq_hi_and_reserved = (byte) 0x11;
                uuid.clock_seq_low = (byte) 0x22;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            response.getServerData().maxNumberVcs = 1;
            response.getServerData().maxBufferSize = 16384;
            response.getServerData().maxRawSize = 4096;
            response.getServerData().sessKey = 0x12345678;
            response.getServerData().scapabilities = SmbConstants.CAP_UNICODE;
            response.getServerData().serverTime = new Date().getTime();
            response.getServerData().serverTimeZone = -300;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            assertEquals(0x1234, ServerMessageBlock.readInt2(buffer, 0));
        }
    
        @Test
        void testInt4ReadWrite() {
            byte[] buffer = new byte[4];
            ServerMessageBlock.writeInt4(0x12345678, buffer, 0);
            assertEquals(0x12345678, ServerMessageBlock.readInt4(buffer, 0));
        }
    
        @Test
        void testInt8ReadWrite() {
            byte[] buffer = new byte[8];
            long value = 0x123456789ABCDEF0L;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

        }
    
        @Test
        @DisplayName("Test setAdditionalInformation method")
        void testSetAdditionalInformation() {
            request = new Smb2QueryInfoRequest(mockConfig);
            int testAdditionalInfo = 0x12345678;
    
            request.setAdditionalInformation(testAdditionalInfo);
    
            // Verify additional information was set
            Field additionalInfoField;
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  7. 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: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.4K bytes
    - Click Count (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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            }
        }
    
        @Test
        @DisplayName("Test setup wire format structure")
        void testSetupWireFormatStructure() {
            notifyChange = new NtTransNotifyChange(mockConfig, 0xABCD, 0x12345678, true);
            byte[] dst = new byte[100];
    
            int bytesWritten = notifyChange.writeSetupWireFormat(dst, 10);
    
            // Verify structure:
            // Offset 0-3: Completion Filter (4 bytes)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.4K bytes
    - Click Count (0)
  10. 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() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 00:16:17 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top