Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,383 for SHOULD (1.35 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            @Test
            @DisplayName("Should create with configuration only")
            void testConstructorWithConfig() {
                ServerMessageBlock2 msg = new TestServerMessageBlock2(mockConfig);
                assertNotNull(msg);
                assertEquals(mockConfig, msg.getConfig());
                assertEquals(0, msg.getCommand());
            }
    
            @Test
            @DisplayName("Should create with configuration and command")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/NtlmFlagsTest.java

        }
    
        @Test
        void testNtlmNegotiateOem() {
            assertEquals(0x00000002, NtlmFlags.NTLMSSP_NEGOTIATE_OEM, "NTLMSSP_NEGOTIATE_OEM should be 0x00000002");
        }
    
        @Test
        void testNtlmRequestTarget() {
            assertEquals(0x00000004, NtlmFlags.NTLMSSP_REQUEST_TARGET, "NTLMSSP_REQUEST_TARGET should be 0x00000004");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
            // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS
            assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // With threshold 1, writing 1 byte should stay in memory
            ContentOutputStream cos = new ContentOutputStream(1, Curl.tmpDir);
            cos.write(new byte[] { 1 });
            assertTrue(cos.isInMemory());
            assertFalse(cos.done);
            cos.close();
        }
    
        @Test
        public void testThresholdOneExceeded() throws IOException {
            // With threshold 1, writing 2 bytes should go to file
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/AddressTest.java

            String hostName = mockAddress.getHostName();
    
            // Then
            assertEquals(expectedHostName, hostName, "Should return configured hostname");
            assertNotNull(hostName, "Host name should not be null");
        }
    
        @Test
        @DisplayName("getHostAddress should return valid IP address string")
        void testGetHostAddressContract() {
            // Given
            String expectedAddress = "192.168.1.100";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            assertTrue(iterator.hasNext(), "Should have first element");
            SmbResource first = iterator.next();
            assertNotNull(first, "First element should not be null");
            assertEquals("file1.txt", first.getName());
    
            assertTrue(iterator.hasNext(), "Should have second element");
            SmbResource second = iterator.next();
            assertNotNull(second, "Second element should not be null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top