Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadString (0.05 sec)

  1. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            PacDataInputStream pdis = createInputStream(data);
            assertThrows(PACDecodingException.class, () -> pdis.readUnicodeString());
        }
    
        @Test
        public void testReadString() throws IOException, PACDecodingException {
            // total=4, unused=1, used=2, string="AB"
            byte[] data = new byte[] { 0x04, 0x00, 0x00, 0x00, // total
                    0x01, 0x00, 0x00, 0x00, // unused
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            byte[] sidBytes = id.toByteArray();
            assertTrue(sidBytes.length > 0);
        }
    
        @Test
        @DisplayName("Test PacDataInputStream readString method")
        void testReadString() throws Exception {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            DataOutputStream dos = new DataOutputStream(baos);
    
            // Write a valid string structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top