Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for trip (0.01 sec)

  1. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

         */
        public void testDecode_Null() throws Exception {
            final byte[] result = Base64Util.decode(null);
            assertNull("Null should return null", result);
        }
    
        /**
         * Test encode/decode round trip with various data
         *
         * @throws Exception
         */
        public void testEncodeDecode_RoundTrip() throws Exception {
            // Test with ASCII text
            final String text = "Hello, World!";
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                assertEquals(largeValue, ndrShort.value);
            }
        }
    
        @Nested
        @DisplayName("Round-trip Tests")
        class RoundTripTests {
    
            @Test
            @DisplayName("Should handle encode-decode round-trip correctly")
            void testEncodeDecodeRoundTrip() throws NdrException {
                // Given: Original value that fits in byte range
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            assertTrue(str.contains("1024"));
        }
    
        /**
         * Test FileEndOfFileInformation encode/decode round trip
         */
        @Test
        @DisplayName("Test FileEndOfFileInformation encode/decode round trip")
        void testFileEndOfFileInformationEncodeDecodeRoundTrip() throws SMBProtocolDecodingException {
            long originalValue = 0x123456789ABCDEFL;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                        Arguments.of(5, 10, 24), Arguments.of(10, 20, 44), Arguments.of(20, 32, 76));
            }
        }
    
        @Nested
        @DisplayName("Round-trip Tests")
        class RoundTripTests {
    
            @Test
            @DisplayName("Should encode and decode correctly with single hash algorithm and salt")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            int bytesRead = info.decode(buffer, startIndex, buffer.length - startIndex);
    
            assertEquals(20 + nameBytes.length, bytesRead);
        }
    
        @Test
        @DisplayName("Test encode and decode round trip")
        void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException {
            String fileName = "roundtrip_test.txt";
            boolean replaceIfExists = true;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertEquals(4 + (2 * cipherCount), context.size());
            }
        }
    
        @Nested
        @DisplayName("Round-trip Tests")
        class RoundTripTests {
    
            @Test
            @DisplayName("Should encode and decode correctly with single cipher")
            void testRoundTripSingleCipher() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            assertEquals(8, bytesRead);
            assertTrue(fileInfo.toString().contains("endOfFile=" + expectedValue));
        }
    
        @Test
        @DisplayName("Test encode and decode round trip")
        void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException {
            // Test various values
            long[] testValues = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 0x123456789ABCDEFL };
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            FileBasicInfo decoded = new FileBasicInfo();
            decoded.decode(buffer, startIndex, 36); // decode only reads 36 bytes
    
            // Verify the values match after round-trip
            assertEquals(TEST_CREATE_TIME, decoded.getCreateTime());
            assertEquals(TEST_LAST_ACCESS_TIME, decoded.getLastAccessTime());
            assertEquals(TEST_LAST_WRITE_TIME, decoded.getLastWriteTime());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            byte[] buffer = new byte[0];
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> cmd.readBytesWireFormat(buffer, 0));
        }
    
        /**
         * Test round‑trip encoding/decoding of ranges using the public
         * {@link LockingAndXRange} encode/decode methods.
         */
        @Test
        void lockRangeEncodeDecodeRoundTrip() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/SmbCircuitBreaker.java

        public void reset() {
            log.info("[{}] Manually resetting circuit breaker to CLOSED", name);
            transitionTo(State.CLOSED);
        }
    
        /**
         * Manually trip the circuit breaker to open state
         */
        public void trip() {
            log.info("[{}] Manually tripping circuit breaker to OPEN", name);
            transitionTo(State.OPEN);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top