Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testConstructorWithMessage (0.12 sec)

  1. src/test/java/org/codelibs/curl/CurlExceptionTest.java

    import org.junit.Test;
    
    /**
     * Test class for CurlException.
     * Tests exception creation, message handling, and cause propagation.
     */
    public class CurlExceptionTest {
    
        @Test
        public void testConstructorWithMessage() {
            String message = "Test error message";
            CurlException exception = new CurlException(message);
    
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java

    class NdrExceptionTest {
    
        /**
         * Test the constructor with a message.
         * Ensures that the exception is created with the correct message.
         */
        @Test
        void testConstructorWithMessage() {
            String testMessage = "This is a test message for NdrException.";
            NdrException exception = new NdrException(testMessage);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertTrue(exception instanceof CIFSException);
        }
    
        @Test
        @DisplayName("Test constructor with message creates exception with specified message")
        public void testConstructorWithMessage() {
            // Test with various messages
            String message = "Test error message";
            TransportException exception = new TransportException(message);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

                assertNull(exception.getRootCause());
                assertTrue(exception instanceof IOException);
            }
    
            @Test
            @DisplayName("Should create exception with message")
            void testConstructorWithMessage() {
                String message = "Test error message";
                TransportException exception = new TransportException(message);
    
                assertNotNull(exception);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test constructor DcerpcException(String msg).
         */
        @Test
        void testConstructorWithMessage() {
            String message = "Test message for DcerpcException.";
            DcerpcException exception = new DcerpcException(message);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            assertNull(exception.getCause());
            assertTrue(exception instanceof RuntimeException);
        }
    
        @Test
        @DisplayName("Should create RuntimeCIFSException with message")
        void testConstructorWithMessage() {
            // Given
            String message = "CIFS runtime error occurred";
    
            // When
            RuntimeCIFSException exception = new RuntimeCIFSException(message);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top