Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for assertDoesNotThrow (0.99 sec)

  1. src/test/java/jcifs/util/InputValidatorTest.java

        void testValidShareNames(String share) {
            assertDoesNotThrow(() -> InputValidator.validateShareName(share));
        }
    
        @Test
        @DisplayName("Test port validation")
        void testPortValidation() {
            assertDoesNotThrow(() -> InputValidator.validatePort(445));
            assertDoesNotThrow(() -> InputValidator.validatePort(139));
            assertDoesNotThrow(() -> InputValidator.validatePort(1));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/EmptyIteratorTest.java

    package jcifs;
    
    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.util.Iterator;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceTest.java

    package jcifs;
    
    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            void testSetPadding() {
                assertDoesNotThrow(() -> request.setPadding((byte) 0));
                assertDoesNotThrow(() -> request.setPadding((byte) 1));
                assertDoesNotThrow(() -> request.setPadding((byte) 0xFF));
            }
    
            @Test
            @DisplayName("Should set read flags correctly")
            void testSetReadFlags() {
                assertDoesNotThrow(() -> request.setReadFlags((byte) 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertDoesNotThrow(() -> request.setFileId(shortFileId));
                assertDoesNotThrow(() -> request.setFileId(standardFileId));
                assertDoesNotThrow(() -> request.setFileId(longFileId));
            }
    
            @Test
            @DisplayName("Should handle unspecified file ID")
            void testUnspecifiedFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

        @DisplayName("Should handle null message gracefully")
        void testNullMessage() {
            // When/Then
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException((String) null);
                assertNull(exception.getMessage());
            });
    
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException(null, new RuntimeException());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                assertDoesNotThrow(() -> mockReferralData.fixupDomain(domain));
    
                // Test with concrete implementation - default constructor has null server
                // fixupDomain requires non-null server, so we test with initialized instance
                DfsReferralDataImpl impl = createInitializedDfsReferralDataImpl();
                assertDoesNotThrow(() -> impl.fixupDomain(domain));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbSessionTest.java

    package jcifs;
    
    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            // All sizes should be accepted without exception
            assertDoesNotThrow(() -> request.setFileId(shortFileId), "Should handle 8-byte file ID");
            assertDoesNotThrow(() -> request.setFileId(standardFileId), "Should handle 16-byte file ID");
            assertDoesNotThrow(() -> request.setFileId(longFileId), "Should handle 32-byte file ID");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                byte[] standardFileId = new byte[16];
                byte[] longFileId = new byte[32];
    
                assertDoesNotThrow(() -> request.setFileId(shortFileId));
                assertDoesNotThrow(() -> request.setFileId(standardFileId));
                assertDoesNotThrow(() -> request.setFileId(longFileId));
            }
    
            @Test
            @DisplayName("Should update file ID multiple times")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
Back to top