Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 260 for Hints (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                    assertEquals(0, encodedSize % 8, "Encoded size should be 8-byte aligned for name length " + nameLen);
                }
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 10, 50, 100, 200 })
            @DisplayName("Should handle various buffer offsets")
            void testVariousBufferOffsets(int offset) {
                byte[] largeBuffer = new byte[512];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            assertTrue(s.contains("Trans2GetDfsReferral["));
            assertTrue(s.contains("filename=/bar"));
            assertTrue(s.contains("maxReferralLevel=0x3"));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 5, -1, 65534 })
        @DisplayName("referral level variations")
        void testLevels(int level) throws Exception {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("foo");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/HexdumpTest.java

            assertTrue(result.startsWith("00010203"));
            assertEquals(64, result.length()); // 32 bytes * 2 chars per byte
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 1, 16, 32, 64, 128, 256 })
        @DisplayName("Should handle various data sizes")
        void testVariousDataSizes(int size) {
            // Given
            byte[] data = createTestData(size);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                startLatch.countDown();
                assertTrue(endLatch.await(1, TimeUnit.SECONDS));
                assertTrue(response.isError());
            }
        }
    
        @ParameterizedTest
        @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_PENDING, NtStatus.NT_STATUS_ACCESS_DENIED,
                NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various status codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/DES.java

                0x00001040, 0x00001040, 0x00040040, 0x10000000, 0x10041000 };
    
        /// Squash bytes down to ints.
        /**
         * Converts bytes to integers for internal DES processing
         * @param inBytes the input byte array
         * @param inOff the offset into the input array
         * @param outInts the output integer array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            // Act
            int actual = req.size();
    
            // Assert
            assertEquals(expected, actual, "size() must be 8-byte aligned");
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 5 })
        @DisplayName("writeBytesWireFormat writes StructureSize=4 and Reserved=0 at given offset")
        void writeBytesWireFormat_writesExpectedValuesAtOffset(int offset) {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/EncdecTest.java

            assertEquals(0x34, buffer[1] & 0xFF);
            assertEquals(0x56, buffer[2] & 0xFF);
            assertEquals(0x78, buffer[3] & 0xFF);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 255, 256, 65535, 65536, Integer.MAX_VALUE })
        @DisplayName("Should handle boundary values")
        void testBoundaryValues(int value) {
            // Given
            byte[] buffer = new byte[4];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

         * - Negative values with 0xC0000000 bits set are returned as-is
         * - Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL
         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 123, -7 })
        void testGetNtStatusVariousCodes(int errcode) {
            SmbException ex = new SmbException(errcode, false);
            int expected;
            if (errcode == 0) {
                expected = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            assertEquals("Payload exceeds buffer size", exception.getMessage());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 500, 1024 })
        void testReadDataWireFormatVariousSizes(int dataSize) throws SMBProtocolDecodingException {
            // Test with various data sizes within buffer limit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/WinErrorTest.java

            // Valid inputs: each known code must map to its documented message
            assertEquals(expectedMessage, lookupMessage(code).orElse(null));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { -1, Integer.MIN_VALUE, Integer.MAX_VALUE })
        @DisplayName("Unknown codes: lookup returns empty Optional")
        void lookup_returns_empty_for_unknown_codes(int unknownCode) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top