Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,907 for Shouldn (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

            // Arrange & Act
            TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();
            // Assert
            assertNotNull(resp, "Instance should not be null");
        }
    
        /**
         * All wire‑format methods should return zero regardless of inputs.
         */
        @Nested
        @DisplayName("Wire format method behaviour")
        class WireFormatMethods {
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

            assertEquals(1, t.numThreads, "Default numThreads should be 1");
            assertEquals(1, t.numIter, "Default numIter should be 1");
            assertEquals(100L, t.delay, "Default delay should be 100");
            assertNull(t.url, "URL should be null by default");
            assertEquals(0, t.numComplete, "numComplete should start at 0");
            assertEquals(0L, t.ltime, "ltime should start at 0");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                cancel = constructor.newInstance(mockConfig, 1);
            }
    
            @Test
            @DisplayName("isCancel should return true")
            void testIsCancelReturnsTrue() {
                assertTrue(cancel.isCancel());
            }
    
            @Test
            @DisplayName("writeParameterWordsWireFormat should return 0")
            void testWriteParameterWordsReturnsZero() throws Exception {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

        class SamrCloseHandleTests {
    
            @Test
            @DisplayName("Should construct with correct opnum")
            void testConstructorAndOpnum() {
                // When: Creating close handle message
                samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle);
    
                // Then: Should have correct opnum and handle
                assertEquals(0x01, message.getOpnum());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertTrue(s.startsWith("Trans2FindNext2["), "toString should start with class name");
            assertTrue(s.contains(",sid=" + sid), "toString should include sid in decimal");
            assertTrue(s.contains(",searchCount=" + Trans2FindFirst2.LIST_SIZE), "toString should include searchCount using LIST_SIZE");
            assertTrue(s.contains(",informationLevel=0x104"), "toString should include information level 0x104");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

        }
    
        @Test
        @DisplayName("Should handle retry policy correctly")
        void testRetryPolicy() {
            // Given
            SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(3, 1000, 10000, 2.0, true);
    
            exception = new SmbOperationException(SmbOperationException.ErrorCode.CONNECTION_TIMEOUT, "Timeout occurred", null, policy, null);
    
            // When/Then - Should retry for attempts 1 and 2
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtStatusTest.java

        }
    
        @Test
        @DisplayName("Should identify success status")
        void testSuccessStatusIdentification() {
            // Given
            int successStatus = NtStatus.NT_STATUS_SUCCESS;
    
            // When/Then
            assertEquals(0x00000000, successStatus);
            // Success status should be zero
            assertTrue(successStatus == 0);
        }
    
        @Test
        @DisplayName("Should identify error status codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Verify - should consume 28 bytes even though len is 24
            assertEquals(28, bytesConsumed, "Should consume 28 bytes");
    
            byte[] resumeKey = response.getResumeKey();
            assertNotNull(resumeKey, "Resume key should not be null");
            assertEquals(24, resumeKey.length, "Resume key should be 24 bytes");
    
            // Verify all bytes are 0xAA
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/CryptoTest.java

            // Then
            assertNotNull(result);
            assertTrue(result.length > 0, "HMAC-T64 should produce non-empty result");
        }
    
        @Test
        @DisplayName("Should perform RC4 encryption/decryption")
        void testRC4() throws Exception {
            // Given
            byte[] key = "testkey123456789".getBytes(); // 16 bytes
            byte[] plaintext = "This is a test message for RC4".getBytes();
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. tests/connpool_test.go

    	db.Logger = DB.Logger
    	if err != nil {
    		t.Fatalf("Should open db success, but got %v", err)
    	}
    
    	tx := db.Begin()
    	user := *GetUser("transaction", Config{})
    
    	if err = tx.Save(&user).Error; err != nil {
    		t.Fatalf("No error should raise, but got %v", err)
    	}
    
    	if err = tx.First(&User{}, "name = ?", "transaction").Error; err != nil {
    		t.Fatalf("Should find saved record, but got %v", err)
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top