Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 87 for assertDoesNotThrow (0.54 seconds)

  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));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

            // Act & Assert - no exceptions should be thrown
            assertDoesNotThrow(() -> resp.writeSetupWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.writeParametersWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.writeDataWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.readSetupWireFormat(null, 0, 0));
            assertDoesNotThrow(() -> resp.readParametersWireFormat(null, 0, 0));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12K bytes
    - Click Count (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));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (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() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  6. 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));
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

        void testNullInputs() {
            assertDoesNotThrow(() -> {
                SpnegoException ex1 = new SpnegoException((String) null);
                assertNotNull(ex1);
                assertNull(ex1.getMessage());
                assertNull(ex1.getCause());
            });
    
            assertDoesNotThrow(() -> {
                SpnegoException ex2 = new SpnegoException("msg", null);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  8. 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());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  9. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  10. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
Back to Top