Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,989 for SHOULD (0.04 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                NdrShort ndrShort = new NdrShort(inputValue);
    
                // Then: Value should be masked with 0xFF (lower 8 bits)
                assertEquals(inputValue & 0xFF, ndrShort.value, "Constructor should mask value with 0xFF");
            }
    
            @Test
            @DisplayName("Should handle zero value correctly")
            void testConstructorZero() {
                // Given/When: Creating NdrShort with zero
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcErrorTest.java

        void testDcerpcFaultInvalidTag() {
            assertEquals(0x1C000006, DcerpcError.DCERPC_FAULT_INVALID_TAG);
        }
    
        @Test
        @DisplayName("Should verify DCERPC_FAULT_CONTEXT_MISMATCH constant value")
        void testDcerpcFaultContextMismatch() {
            assertEquals(0x1C00001A, DcerpcError.DCERPC_FAULT_CONTEXT_MISMATCH);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

        @Test
        @DisplayName("Constructor with null file ID should accept null")
        void testConstructorWithNullFileId() {
            // Should not throw exception
            Smb2CloseRequest requestWithNull = new Smb2CloseRequest(mockConfig, null, testFileName);
            assertNotNull(requestWithNull);
        }
    
        @Test
        @DisplayName("Constructor with null fileName should accept null")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        }
    
        @Test
        @DisplayName("Constructor with Configuration only should create empty Name instances")
        void testConstructorWithConfigOnly() {
            SessionRequestPacket packet = new SessionRequestPacket(mockConfig);
    
            assertNotNull(packet);
            // The packet should have calledName and callingName initialized but empty
            byte[] dst = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. tests/count_test.go

    		t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    	if count1 != 1 {
    		t.Errorf("Count with group should be 1, but got count: %v", count1)
    	}
    
    	var count2 int64
    	if err := DB.Model(&Company{}).Where("name in ?", []string{"company_count_group_b", "company_count_group_c"}).Group("name").Count(&count2).Error; err != nil {
    		t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    	if count2 != 2 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java

            // Verify the AvPair type is MsvAvTargetName
            assertEquals(AvPair.MsvAvTargetName, avTargetName.getType(), "AvPair type should be MsvAvTargetName");
            // Verify the raw bytes are correctly stored
            assertArrayEquals(rawBytes, avTargetName.getRaw(), "Raw bytes should match the input");
        }
    
        /**
         * Test constructor with a target name string.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java

            assertTrue(config.isUseRDMA(), "RDMA should be enabled");
            assertEquals("disni", config.getRdmaProvider(), "Provider should be disni");
            assertEquals(16384, config.getRdmaReadWriteThreshold(), "Threshold should be 16KB");
            assertEquals(131072, config.getRdmaMaxSendSize(), "Max send size should be 128KB");
            assertEquals(131072, config.getRdmaMaxReceiveSize(), "Max receive size should be 128KB");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            response.setDataCount(5);
    
            // With 0 entries, should return dataCount
            int result = response.readDataWireFormat(buffer, 0, 0);
            // Should return dataCount
            assertEquals(5, result);
        }
    
        @Test
        void testGetSid() {
            // Test the getSid method
            // By default, it should be 0
            assertEquals(0, response.getSid());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            // Then - Buffer should have expected size
            assertNotNull(buffer, "Buffer should not be null");
            assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have TRANSACTION_BUF_SIZE");
    
            // The validation in getBuffer() ensures size is within bounds (0 < size <= 1MB)
            assertTrue(buffer.length > 0, "Buffer size should be positive");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top