Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testConstructorWithRawBytes (0.39 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.util.SMBUtil;
    
    public class AvTimestampTest {
    
        /**
         * Test constructor with raw bytes.
         */
        @Test
        public void testConstructorWithRawBytes() {
            byte[] rawBytes = new byte[8];
            SMBUtil.writeInt8(1234567890L, rawBytes, 0); // Example timestamp
            AvTimestamp avTimestamp = new AvTimestamp(rawBytes);
    
            assertNotNull(avTimestamp);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java

    class AvTargetNameTest {
    
        /**
         * Test constructor with raw bytes.
         * Verifies that the AvPair type is correctly set and raw bytes are stored.
         */
        @Test
        void testConstructorWithRawBytes() {
            byte[] rawBytes = "TEST_TARGET_NAME".getBytes(StandardCharsets.UTF_16LE);
            AvTargetName avTargetName = new AvTargetName(rawBytes);
    
            // Verify the AvPair type is MsvAvTargetName
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top