Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 122 for strip (0.13 sec)

  1. src/test/java/jcifs/spnego/NegTokenTargTest.java

    /**
     * Unit tests for {@link NegTokenTarg}. The class has no external
     * collaborators so tests are mostly focused on round‑trip
     * serialisation and invalid input handling.
     */
    class NegTokenTargTest {
    
        @Test
        @DisplayName("happy path – full token round‑trip")
        void testRoundTripFull() throws IOException {
            // Arrange – create a fully populated token
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/Striped.java

      private Striped() {}
    
      /**
       * Returns the stripe that corresponds to the passed key. It is always guaranteed that if {@code
       * key1.equals(key2)}, then {@code get(key1) == get(key2)}.
       *
       * @param key an arbitrary, non-null key
       * @return the stripe that the passed key corresponds to
       */
      public abstract L get(Object key);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            long initialTime = circuitBreaker.getTimeSinceLastStateChange();
            assertTrue(initialTime >= 0, "Should have initial timestamp");
    
            // Trip circuit
            circuitBreaker.trip();
            Thread.sleep(100);
    
            long afterTripTime = circuitBreaker.getTimeSinceLastStateChange();
            assertTrue(afterTripTime >= 100, "Time should have advanced");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     */
    @ExtendWith(MockitoExtension.class)
    public class NdrHyperTest {
    
        /**
         * Tests a simple round‑trip encode → decode retains the original value.
         */
        @Test
        @DisplayName("Basic round‑trip for a fixed value")
        public void testEncodeRoundTrip() throws NdrException {
            final long original = 0x1122334455667788L;
            NdrHyper hyper = new NdrHyper(original);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            assertArrayEquals(mechs, parsed.getMechanisms(), "Mechanism OIDs should round-trip");
            assertEquals(flags, parsed.getContextFlags(), "Flags should round-trip");
            assertArrayEquals(mechToken, parsed.getMechanismToken(), "Mechanism token should round-trip");
            assertArrayEquals(mic, parsed.getMechanismListMIC(), "MIC should round-trip");
    
            assertTrue(parsed.getContextFlag(NegTokenInit.DELEGATION));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/StringsTest.java

                assertTrue(result.length > 0, "Result should not be empty");
    
                // Verify round-trip conversion
                String roundTrip = new String(result, StandardCharsets.UTF_16LE);
                assertEquals(UNICODE_STRING, roundTrip, "Round-trip conversion should preserve Unicode");
            }
    
            @Test
            @DisplayName("getASCIIBytes should encode string as ASCII")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/spnego/SpnegoTokenTest.java

            TestSpnegoToken t = new TestSpnegoToken();
            byte[] data = new byte[] { 1, 2, 3 };
            t.setMechanismToken(data);
            assertArrayEquals(data, t.getMechanismToken(), "mechanismToken should round-trip");
    
            // Document current behavior: no defensive copy (reference exposed)
            data[0] = 9;
            assertEquals(9, t.getMechanismToken()[0], "no defensive copy; reflects external mutation");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt

    import okio.BufferedSource
    import okio.Source
    import okio.source
    import org.brotli.dec.BrotliInputStream
    
    /**
     * Transparent Brotli response support.
     *
     * Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in
     * responses.  n.b. this replaces the transparent gzip compression in BridgeInterceptor.
     */
    object BrotliInterceptor : CompressionInterceptor(Brotli, Gzip)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top