Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,380 for shouldn (2.09 sec)

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

            assertFalse(file.exists(), "File should not exist initially");
    
            file.createNewFile();
            assertTrue(file.exists(), "File should exist after creation");
            assertTrue(file.isFile(), "Should be identified as a file");
            assertFalse(file.isDirectory(), "Should not be identified as a directory");
            assertEquals(0, file.length(), "New file should have zero length");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/util/StringUtilTest.java

    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
        void testJoinSingleElement() {
            String result = StringUtil.join(",", "hello");
            assertEquals("hello", result);
        }
    
        @Test
        @DisplayName("Should join two elements with delimiter")
        void testJoinTwoElements() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java

            assertNotNull(avFlags, "AvFlags object should not be null");
            assertEquals(0x04030201, avFlags.getFlags(), "Flags should match the raw bytes (little-endian)");
    
            // Test with zero
            byte[] zeroBytes = new byte[] { 0x00, 0x00, 0x00, 0x00 };
            AvFlags zeroAvFlags = new AvFlags(zeroBytes);
            assertNotNull(zeroAvFlags, "AvFlags object should not be null for zero bytes");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

            assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException");
            assertTrue(exception instanceof RuntimeException, "Should be a RuntimeException");
        }
    
        @Test
        @DisplayName("Message constructor should create exception with specified message")
        void testMessageConstructor() {
            // Given & When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            }
    
            @Test
            @DisplayName("Should initialize with SMB2_WRITE command")
            void testCommandInitialization() {
                Smb2WriteRequest writeRequest = new Smb2WriteRequest(mockConfig, testFileId);
                // Command is set in parent constructor
                assertNotNull(writeRequest);
            }
    
            @Test
            @DisplayName("Should accept null file ID in constructor")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            assertEquals(mid, request.getMid(), "MID should be set correctly");
            assertEquals(asyncId, request.getAsyncId(), "AsyncId should be set correctly");
            assertEquals(credits, request.getCredit(), "Credits should be set correctly");
            assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
            assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set for non-zero asyncId");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            assertEquals(message, ex.getMessage(), "Message should be preserved as provided");
            assertNull(ex.getCause(), "Cause should be null when only message is provided");
    
            // toString should include the class name and (if non-null) the message
            String ts = ex.toString();
            assertTrue(ts.contains("SMBProtocolDecodingException"), "toString should include class name");
            if (message != null && !message.isEmpty()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            assertTrue(session.isInUse(), "Session should be in use initially");
            try (SmbSessionImpl autoSession = session) {
                // Session is already in use due to transport acquisition
                assertTrue(autoSession.isInUse(), "Session should be in use");
            }
    
            // Session should be automatically released
            assertFalse(session.isInUse(), "Session should be released after try-with-resources");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
                int size = request.size();
                assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
            }
    
            @ParameterizedTest
            @DisplayName("Should calculate size for various lock counts")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java

            // Test GoodBot - should parse valid directives and ignore invalid ones
            assertNotNull(robotsTxt.getDirective("goodbot"));
            assertFalse(robotsTxt.allows("/admin/", "GoodBot"));
            assertTrue(robotsTxt.allows("/public/", "GoodBot"));
            // Invalid directives should not cause parsing to fail
    
            // Test crawl-delay with invalid values
            // Invalid number should be ignored, valid ones should work
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 20.6K bytes
    - Viewed (0)
Back to top