Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 120 for 012345 (0.41 sec)

  1. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        void setUp() {
            smb = new TestServerMessageBlock();
        }
    
        @Test
        void testInt2ReadWrite() {
            byte[] buffer = new byte[2];
            ServerMessageBlock.writeInt2(0x1234, buffer, 0);
            assertEquals(0x1234, ServerMessageBlock.readInt2(buffer, 0));
        }
    
        @Test
        void testInt4ReadWrite() {
            byte[] buffer = new byte[4];
            ServerMessageBlock.writeInt4(0x12345678, buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

        }
    
        /**
         * Validates writeParametersWireFormat encodes values in the correct order and endianness.
         */
        @Test
        void testWriteParametersWireFormat() {
            // Given
            int sid = 0x1234;
            int resumeKey = 0x89ABCDEF; // LE expected: EF CD AB 89
            String name = "file.txt";
            Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, name);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            // Arrange
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
            int len = 6;
    
            // Set up buffer with test data
            // available = 0x1234 (4660 in decimal)
            SMBUtil.writeInt2(0x1234, buffer, bufferIndex);
            // next 2 bytes (ignored in implementation)
            SMBUtil.writeInt2(0xABCD, buffer, bufferIndex + 2);
            // status = STATUS_CONNECTION_OK (3)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.questionName = mockQuestionName;
            packet.recordName = mockRecordName;
        }
    
        @Test
        void testWriteInt2() {
            byte[] dst = new byte[2];
            NameServicePacket.writeInt2(0x1234, dst, 0);
            assertEquals((byte) 0x12, dst[0]);
            assertEquals((byte) 0x34, dst[1]);
        }
    
        @Test
        void testWriteInt4() {
            byte[] dst = new byte[4];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

        }
    
        @Test
        void constructor_shouldThrowSmbExceptionOnRpcError() throws IOException {
            // Arrange
            String server = "testServer";
            int access = 123;
            int errorCode = 12345;
    
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = errorCode; // Simulate RPC error
                return null;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/transport/MessageTest.java

            assertArrayEquals(payload1, message.getRawPayload(), "getRawPayload should return the set payload");
    
            // Set another payload and verify
            byte[] payload2 = new byte[] { 1, 2, 3, 4, 5 };
            message.setRawPayload(payload2);
            assertArrayEquals(payload2, message.getRawPayload(), "getRawPayload should return the updated payload");
    
            // Set null payload and verify
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

        }
    
        @Test
        @DisplayName("Test createCancel method returns SmbComNtCancel")
        void testCreateCancel() {
            // Set a MID for the transaction
            transaction.setMid(12345);
    
            // Create cancel request
            CommonServerMessageBlockRequest cancelRequest = transaction.createCancel();
    
            // Verify it returns an SmbComNtCancel instance
            assertNotNull(cancelRequest);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

            assertTrue(message.contains(description));
        }
    
        @Test
        @DisplayName("getErrorString for unknown error class")
        void testUnknownErrorClass() {
            int unknownClass = 1234;
            String expected = "unknown error class: 1234";
            assertEquals(expected, NbtException.getErrorString(unknownClass, 0));
        }
    
        @Test
        @DisplayName("Constructor sets fields and message correctly")
        void testConstructor() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

        }
    
        @Test
        void testConstructor() {
            assertNotNull(response);
            // Verify that the outputBuffer is stored properly
            byte[] testData = new byte[] { 1, 2, 3, 4, 5 };
            TransCallNamedPipeResponse testResponse = new TransCallNamedPipeResponse(mockConfig, testData);
            assertNotNull(testResponse);
        }
    
        @Test
        void testWriteSetupWireFormat() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

                    org.junit.jupiter.params.provider.Arguments.of(0xFFFF, 0x12345678),
                    org.junit.jupiter.params.provider.Arguments.of(-1, -123456));
        }
    
        @ParameterizedTest
        @MethodSource("validInputs")
        void writeParametersWireFormat_writesCorrectly(int fid, int securityInformation) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top