Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for largeData (0.11 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        void testMaxOffsetBoundary() {
            // Arrange
            byte[] largeData = new byte[1000];
            for (int i = 0; i < largeData.length; i++) {
                largeData[i] = (byte) (i % 256);
            }
            int offset = 990;
            int length = 10;
    
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, largeData, offset, length);
            byte[] dst = new byte[100];
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacCredentialTypeTest.java

         */
        @Test
        void testConstructorWithDataTooLarge() {
            // A byte array with a length of 32 should be considered too large.
            byte[] largeData = new byte[32];
            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacCredentialType(largeData));
            assertEquals("Invalid PAC credential type", exception.getMessage());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top