Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for getCause (1.34 sec)

  1. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

            // Then
            assertNotNull(restored);
            assertEquals("serialize me", restored.getMessage());
            assertNotNull(restored.getCause());
            assertEquals(IllegalArgumentException.class, restored.getCause().getClass());
            assertEquals("iaex", restored.getCause().getMessage());
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/CurlExceptionTest.java

            assertEquals("Final message", exception.getMessage());
            assertSame(intermediateCause, exception.getCause());
            assertSame(rootCause, exception.getCause().getCause());
        }
    
        @Test
        public void testToString() {
            String message = "Test error message";
            CurlException exception = new CurlException(message);
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertNull(nullCauseException.getCause());
    
            // Test with both null
            TransportException bothNullException = new TransportException(null, null);
            assertNull(bothNullException.getMessage());
            assertNull(bothNullException.getCause());
        }
    
        @Test
        @DisplayName("Test deprecated getRootCause method returns the same as getCause")
        @SuppressWarnings("deprecation")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            } else {
                assertEquals(msg, ex.getMessage(), "Message should be stored as provided");
            }
            assertSame(cause, ex.getCause(), "Cause should be stored and retrievable");
            assertSame(cause, ex.getRootCause(), "Deprecated getRootCause should match getCause");
            assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Status should default to unsuccessful for message+cause ctor");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

         */
        @Test
        void testDefaultConstructor() {
            PACDecodingException e = new PACDecodingException();
            // Expect null message and null cause
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
            String errorMessage = "This is a test error message.";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            // Assert - message and cause are null
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
    
            // Assert - toString shows class name when message is null
            assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException();
    
            // Then
            assertNull(exception.getMessage(), "Default constructor should have null message");
            assertNull(exception.getCause(), "Default constructor should have null cause");
            assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/CIFSExceptionTest.java

            CIFSException exception = new CIFSException(message, cause);
    
            // Then
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
        }
    
        @Test
        @DisplayName("Should create CIFSException with cause only")
        void testCIFSExceptionWithCauseOnly() {
            // Given
            Exception cause = new RuntimeException("Root cause");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get);
            assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause());
            assertEquals("boom", thrown.getCause().getMessage());
            verify(supplier, times(1)).get();
            verifyNoMoreInteractions(supplier);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

                                && exc.getCause() instanceof PluginResolutionException
                                && exc.getCause().getCause() instanceof ArtifactResolutionException
                                && exc.getCause().getCause().getCause() instanceof ArtifactNotFoundException;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top