Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 541 for matchAt (0.04 sec)

  1. src/test/java/jcifs/smb1/util/Base64Test.java

        void testEncode(byte[] input, String expected) {
            // Arrange & Act
            String actual = Base64.encode(input);
            // Assert
            assertEquals(expected, actual, "Base64.encode should match expected string");
        }
    
        /**
         * Data provider for Base64 strings and expected decoded byte arrays.
         */
        static Stream<Arguments> decodeProvider() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                ndrShort1.encode(encodeBuffer);
    
                NdrShort ndrShort2 = new NdrShort(0);
                ndrShort2.decode(decodeBuffer);
    
                // Then: Values should match
                verify(encodeBuffer).enc_ndr_short(originalValue);
                verify(decodeBuffer).dec_ndr_short();
                assertEquals(ndrShort1.value, ndrShort2.value);
            }
    
            @Test
    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/dcerpc/rpcTest.java

                // When: Decoding into a new UUID
                rpc.uuid_t decodedUuid = new rpc.uuid_t();
                decodedUuid.decode(decodeBuffer);
    
                // Then: Values should match
                assertEquals(originalUuid.time_low, decodedUuid.time_low);
                assertEquals(originalUuid.time_mid, decodedUuid.time_mid);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertEquals(l3, l4);
            assertEquals(l3.hashCode(), l4.hashCode());
        }
    
        @Test
        @DisplayName("overlaps requires same address and canonical URL prefix match")
        void testOverlaps() throws Exception {
            UniAddress a = mock(UniAddress.class);
            when(nsc.getAllByName(anyString(), anyBoolean())).thenReturn(new Address[] { a });
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        //     we find them, regardless of what the address policies need.
        //
        //  2. EVICTABLE: Connections not required by any address policy. This matches connections that
        //     don't participate in any policy, plus connections whose policies won't be violated if the
        //     connection is closed. We only close these if the idle connection limit is exceeded.
        //
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

     * validating constants.
     */
    public class SmbConstantsTest {
    
        /**
         * Verify that the hard‑coded default values are present.
         */
        @Test
        @DisplayName("Default constant values match expectations")
        void defaultValues() {
            assertEquals(445, SmbConstants.DEFAULT_PORT);
            assertEquals(10, SmbConstants.DEFAULT_MAX_MPX_COUNT);
            assertEquals(30000, SmbConstants.DEFAULT_RESPONSE_TIMEOUT);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertThat(get(url).body.string()).isEqualTo("B")
        assertThat(server.takeRequest().headers["If-None-Match"]).isNull()
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v2")
      }
    
      @Test
      fun combinedCacheHeadersCanBeNonAscii() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

            // Cleanup should not throw exception
            assertDoesNotThrow(() -> bufferManager.cleanup());
    
            // After cleanup, all regions should be released (but the count may not match exactly
            // if some regions were pooled rather than immediately released)
            assertTrue(bufferManager.getTotalReleased() > 0, "Some regions should be released during cleanup");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/CollectorTester.java

          A finalAccum = scheme.result(collector, inputs);
          if (collector.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) {
            @SuppressWarnings("unchecked") // `R` and `A` match for an `IDENTITY_FINISH`
            R result = (R) finalAccum;
            assertEquivalent(expectedResult, result);
          }
          assertEquivalent(expectedResult, collector.finisher().apply(finalAccum));
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu May 15 21:47:56 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

                // Use reflection to read the private field createDisposition
                int actual = (int) getPrivateField(req, "createDisposition");
                assertEquals(expected, actual, "createDisposition should match");
            }
        }
    
        @Test
        @DisplayName("CreateOptions default padding")
        void createOptionsAddedWhenLow() {
            // createOptions less than 0x0001 (i.e., 0) should be padded with 0x0040
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top