Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,113 for match2 (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Verify resume key content
            for (int i = 0; i < 24; i++) {
                assertEquals((byte) (i + 1), resumeKey[i], "Resume key byte " + i + " should match");
            }
        }
    
        @Test
        @DisplayName("Test decode with non-zero buffer offset")
        void testDecodeWithOffset() throws SMBProtocolDecodingException {
            // Prepare test data with offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            // Should be valid base64
            assertTrue(encryptedStr.matches("^[A-Za-z0-9+/]*={0,2}$"), "Should be valid Base64 format");
    
            // Decrypt from string
            char[] decrypted = storage.decryptFromString(encryptedStr);
            assertArrayEquals(plaintext, decrypted, "Decrypted string should match original");
    
            // Clean up
            Arrays.fill(plaintext, '\0');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

       * in Android) requires a successful match in order to generate a {@code MatchResult}:
       * https://cs.android.com/android/platform/superproject/+/android-2.3.7_r1:libcore/luni/src/main/java/java/util/regex/Matcher.java;l=550;drc=5850271b4ab93ebc27c1d49169a348c6be3c7f04
       */
      private static MatchResult createMatchResult() {
        Matcher matcher = Pattern.compile(".").matcher("X");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java

            ConnectionTimeoutException exception = new ConnectionTimeoutException(message, cause);
            assertEquals(message, exception.getMessage(), "Message should match the provided string");
            assertEquals(cause, exception.getCause(), "Cause should match the provided throwable");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java

            RequestTimeoutException exception = new RequestTimeoutException(message, cause);
            assertEquals(message, exception.getMessage(), "Message should match the provided string");
            assertEquals(cause, exception.getCause(), "Cause should match the provided throwable");
        }
    
        @Test
        void testIsInstanceOfTransportException() {
            // Verify that RequestTimeoutException is a subclass of TransportException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

            final CustomSize annotation = field.getAnnotation(CustomSize.class);
    
            assertNotNull("Annotation should be present on field", annotation);
            assertEquals("minKey should match", "test.min", annotation.minKey());
            assertEquals("maxKey should match", "test.max", annotation.maxKey());
            assertEquals("message should be default", "{jakarta.validation.constraints.Size.message}", annotation.message());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

            // Verify num_sids
            assertEquals(2, lsarSidArrayX.num_sids, "num_sids should match the array length");
    
            // Verify sids array and its contents
            assertNotNull(lsarSidArrayX.sids, "sids array should not be null");
            assertEquals(2, lsarSidArrayX.sids.length, "sids array length should match");
            assertEquals(sidT1, lsarSidArrayX.sids[0].sid, "First SID should be unwrapped correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NbtExceptionTest.java

            assertEquals(errorClass, exception.errorClass, "Error class should match the constructor argument");
            assertEquals(errorCode, exception.errorCode, "Error code should match the constructor argument");
            assertEquals(NbtException.getErrorString(errorClass, errorCode), exception.getMessage(),
                    "Exception message should match getErrorString output");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbPipeResourceTest.java

        }
    
        /**
         * Test if the PIPE_TYPE_WRONLY constant has the correct value.
         */
        @Test
        void testPipeTypeWronly() {
            assertEquals(SmbConstants.O_WRONLY, SmbPipeResource.PIPE_TYPE_WRONLY, "PIPE_TYPE_WRONLY should match SmbConstants.O_WRONLY");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top