Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testWriteWireFormat (0.07 sec)

  1. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        }
    
        // Tests for instance methods
    
        @Test
        @DisplayName("writeWireFormat should write header and trailer")
        void testWriteWireFormat() {
            packet.type = SessionServicePacket.SESSION_MESSAGE;
            packet.trailerLength = 10; // Mock trailer will write 10 bytes
    
            byte[] dst = new byte[50];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals(12, packet.rDataLength);
            assertNotNull(packet.addrEntry);
            assertEquals(2, packet.addrEntry.length);
        }
    
        @Test
        void testWriteWireFormat() {
            byte[] dst = new byte[50];
            packet.nameTrnId = 0x1234;
            packet.questionCount = 1;
            packet.questionType = NameServicePacket.NB;
            packet.questionClass = NameServicePacket.IN;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top