Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 585 for Upsert (0.03 sec)

  1. src/test/java/jcifs/smb/NtlmUtilTest.java

            byte[] expected = hex("8846F7EAEE8FB117AD06BDD830B7586C");
    
            // Act
            byte[] actual = NtlmUtil.getNTHash(password);
    
            // Assert
            assertArrayEquals(expected, actual, "NT hash must match known test vector");
        }
    
        @Test
        @DisplayName("getNTHash: verify different passwords produce different hashes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

        @DisplayName("Edge: null is not an instance of the interface")
        void testNullIsNotInstance() {
            // Assert
            assertFalse(SessionSetupHandler.class.isInstance(null));
        }
    
        @Test
        @DisplayName("Invalid: looking up constructor on interface fails")
        void testNoConstructorLookup() {
            // Act & Assert: interfaces have no constructors
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SecurityBlobTest.java

        void toString_rendersHex(byte[] input, String expected) {
            // Arrange
            SecurityBlob blob = new SecurityBlob(input);
    
            // Act
            String actual = blob.toString();
    
            // Assert
            assertEquals(expected, actual, "Hex string should match expected format");
        }
    
        // Ensures a default-constructed blob starts empty and stable across APIs
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Arrange
                SmbFile parent = new SmbFile(url);
    
                // Act + Assert
                SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null));
    
                // Assert message indicates which validation failed
                if (expectDirSlashMsg) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

            // Assert
            assertSame(mockPolicyHandle, queryPolicy.handle);
        }
    
        @Test
        void constructor_shouldSetLevelCorrectly() {
            // Arrange
            short level = 7;
    
            // Act
            queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    
            // Assert
            assertEquals(level, queryPolicy.level);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        @DisplayName("byte[] ctor: empty token throws PACDecodingException with clear message")
        void byteArrayConstructor_emptyToken_throws() {
            // Arrange
            byte[] empty = new byte[0];
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(empty, new KerberosKey[0]));
            assertTrue(ex.getMessage().contains("Empty kerberos ApReq"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

        void defaultConstructor_hasNullMessageAndCause_andDefaultStatus() {
            // Arrange & Act
            SMBSignatureValidationException ex = new SMBSignatureValidationException();
    
            // Assert
            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

        public void test_execute_success() {
            // Execute the job
            String result = purgeDocJob.execute();
    
            // Assert deleteByQuery was called
            assertTrue(deleteByQueryCalled);
    
            // Assert correct index was used
            assertEquals("fess.update", deleteIndex);
    
            // Assert query builder is correct
            assertNotNull(deleteQuery);
            assertTrue(deleteQuery instanceof RangeQueryBuilder);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/CurlTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.curl;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNotNull;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import java.io.File;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    
    import org.codelibs.curl.Curl.Method;
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

       */
      public static void assertBasic(Escaper escaper) throws IOException {
        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
          escaper.escape((String) null);
          Assert.fail("exception not thrown when escaping a null string");
        } catch (NullPointerException e) {
          // pass
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top