Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

            @Test
            @DisplayName("Should initialize remaining to zero")
            void testInitialRemainingValue() {
                assertEquals(0, response.getRemaining());
            }
        }
    
        @Nested
        @DisplayName("Getter Tests")
        class GetterTests {
    
            @Test
            @DisplayName("Should get count value")
            void testGetCount() {
                // Initial value should be 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            assertTrue(pool.contains(transport), "Transport should be in pool initially");
    
            // When: Remove the transport
            pool.removeTransport(transport);
    
            // Then: Transport should no longer be in pool
            assertFalse(pool.contains(transport), "Transport should be removed from pool");
        }
    
        @Test
        @DisplayName("Should close all connections and return in-use status")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // When
            int size = request.size();
    
            // Then - should include context sizes
            assertTrue(size > 112); // Bigger than without contexts
            assertEquals(0, size % 8); // Should be 8-byte aligned
        }
    
        @Test
        @DisplayName("Should write bytes to wire format correctly")
        void testWriteBytesWireFormat() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ACETest.java

                assertEquals(0x00000008, ACE.FILE_READ_EA, "FILE_READ_EA should be 0x00000008");
                assertEquals(0x00000010, ACE.FILE_WRITE_EA, "FILE_WRITE_EA should be 0x00000010");
                assertEquals(0x00000020, ACE.FILE_EXECUTE, "FILE_EXECUTE should be 0x00000020");
                assertEquals(0x00000040, ACE.FILE_DELETE, "FILE_DELETE should be 0x00000040");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbConnectionTest.java

            assertTrue(config.isUseUnicode(), "Unicode should be enabled");
            assertTrue(config.isUseBatching(), "Batching should be enabled");
    
            // When both are enabled, batch limits should be available
            int limit = config.getBatchLimit("TreeConnectAndX.QueryInformation");
            assertTrue(limit >= 0, "Batch limit should be non-negative when Unicode and batching enabled");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(0, buffer[13]);
                assertEquals((byte) 0xFF, buffer[9]); // Should not modify before offset
                assertEquals((byte) 0xFF, buffer[14]); // Should not modify after encoded data
            }
    
            @Test
            @DisplayName("Should handle offset in decode")
            void testDecodeWithOffset() throws SMBProtocolDecodingException {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbTreeHandleTest.java

        void testGetConfig() {
            when(smbTreeHandle.getConfig()).thenReturn(mockConfig);
            Configuration config = smbTreeHandle.getConfig();
            assertNotNull(config, "Configuration should not be null");
            assertEquals(mockConfig, config, "Should return the mock Configuration object");
        }
    
        /**
         * Test for close() method.
         * Verifies that the close method can be called without throwing an exception.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/HexdumpTest.java

        }
    
        @Test
        @DisplayName("Should handle empty byte array")
        void testToHexStringEmpty() {
            // Given
            byte[] data = {};
    
            // When
            String result = Hexdump.toHexString(data);
    
            // Then
            assertNotNull(result);
            assertEquals("", result);
        }
    
        @Test
        @DisplayName("Should handle null byte array")
        void testToHexStringNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

        }
    
        @Test
        @DisplayName("Constructor should initialize TransPeekNamedPipeResponse")
        void testConstructor() {
            // Assert
            assertNotNull(response);
            assertTrue(response instanceof SmbComTransactionResponse);
            assertEquals(0, response.getAvailable());
        }
    
        @Test
        @DisplayName("Should verify status constants are correctly defined")
        void testStatusConstants() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

                // key3 should definitely exist (just created)
                assertNotNull(limitedManager.getLease(key3));
    
                // key1 should have been evicted (oldest)
                assertNull(limitedManager.getLease(key1));
    
                // key2 should still exist (not the oldest)
                assertNotNull(limitedManager.getLease(key2));
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top