Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 541 for matchAt (0.03 sec)

  1. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/SuiteId.kt

     * limitations under the License.
     */
    package okhttp3.survey.types
    
    import okio.ByteString
    
    data class SuiteId(
      val id: ByteString?,
      val name: String,
    ) {
      fun matches(suiteId: SuiteId): Boolean = id == suiteId.id || name.substring(4) == suiteId.name.substring(4)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 834 bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeImplTest.java

            assertEquals("A:", tree.getService());
        }
    
        // Test case for the matches method
        @Test
        void testMatches() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            assertTrue(tree.matches("share", "A:"));
            assertFalse(tree.matches("othershare", "A:"));
        }
    
        // Test case for the equals method
        @Test
        void testEquals() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SecureKeyManagerTest.java

        }
    
        @Test
        public void testGetRawKey() {
            String sessionId = "test-session-2";
            keyManager.storeSessionKey(sessionId, testKey, "AES");
    
            byte[] rawKey = keyManager.getRawKey(sessionId);
            assertNotNull(rawKey, "Should retrieve raw key");
            assertArrayEquals(testKey, rawKey, "Raw key should match");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/RequestTest.java

            when(mockRequest.getCreditCost()).thenReturn(expectedCreditCost);
    
            int actualCreditCost = mockRequest.getCreditCost();
    
            assertEquals(expectedCreditCost, actualCreditCost, "Credit cost should match the mocked value.");
            verify(mockRequest, times(1)).getCreditCost(); // Verify method was called once
        }
    
        @Test
        void testSetRequestCredits() {
            // Test case for setRequestCredits method
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

         * @param value The value to trim.
         * @return The trimmed value.
         */
        protected String trimSpace(final String value) {
            if (trimSpaceEnabled) {
                final Matcher matcher = SPACE_PATTERN.matcher(value);
                return matcher.replaceAll(" ").trim();
            }
            return value;
        }
    
        /**
         * Adds an attribute to the factory.
         * @param name The name of the attribute.
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");
            assertEquals(maxLength, pacString.getMaxLength(), "The maxLength should match the value provided in the constructor.");
            assertEquals(pointer, pacString.getPointer(), "The pointer should match the value provided in the constructor.");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacSidAttributesTest.java

            // Verify that the id and attributes are correctly set by the constructor
            assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor.");
            assertEquals(attributes, pacSidAttributes.getAttributes(), "The attributes should match the ones provided in the constructor.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacSidAttributes#getId()}.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

            assertArrayEquals(payload, actualPayload, "Payload copy must match");
        }
    
        @Test
        @DisplayName("getOEMEncoding returns configured OEM encoding")
        void testGetOEMEncoding() {
            assertEquals(Config.DEFAULT_OEM_ENCODING, NtlmMessage.getOEMEncoding(), "OEM encoding should match config’s default value");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/CommonPattern.java

     * shared with the {@code re2j} library. For internal use only. Please refer to the {@code Pattern}
     * javadoc for details.
     */
    @GwtCompatible
    abstract class CommonPattern {
      public abstract CommonMatcher matcher(CharSequence t);
    
      public abstract String pattern();
    
      public abstract int flags();
    
      // Re-declare this as abstract to force subclasses to override.
      @Override
      public abstract String toString();
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. buildSrc/src/main/kotlin/AlpnVersions.kt

      if (version != null) {
        return version
      }
    
      val javaVersion = System.getProperty("java.version")
      val match = "1\\.8\\.0_(\\d+)(-.*)?".toRegex().find(javaVersion) ?: return null
    
      return alpnBootVersionForPatchVersion(match.groupValues.first().toInt())
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top