Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for getMessages (0.04 sec)

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

            // Then
            assertTrue(exception.getMessage().toLowerCase().contains("sharing") || exception.getMessage().toLowerCase().contains("violation")
                    || exception.getMessage().toLowerCase().contains("used") || exception.getMessage().toLowerCase().contains("being used")
                    || exception.getMessage().toLowerCase().contains("process"));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
    
            // Test with empty string
            TransportException emptyException = new TransportException("");
            assertEquals("", emptyException.getMessage());
    
            // Test with null message
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

            assertEquals(message, ex.getMessage());
            assertEquals(cause, ex.getCause());
        }
    
        @Test
        @DisplayName("Should handle null message and/or cause without throwing")
        void testNullInputs() {
            assertDoesNotThrow(() -> {
                SpnegoException ex1 = new SpnegoException((String) null);
                assertNotNull(ex1);
                assertNull(ex1.getMessage());
                assertNull(ex1.getCause());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            SMBSignatureValidationException ex = new SMBSignatureValidationException(msg);
    
            // Assert
            if (msg == null) {
                assertNull(ex.getMessage(), "Null message should remain null");
            } else {
                assertEquals(msg, ex.getMessage(), "Message should be stored as provided");
            }
            assertNull(ex.getCause(), "Cause should be null for message-only 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/CIFSUnsupportedCryptoExceptionTest.java

        void testDefaultConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException();
    
            // Then
            assertNull(exception.getMessage(), "Default constructor should have null message");
            assertNull(exception.getCause(), "Default constructor should have null cause");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/CurlExceptionTest.java

            assertEquals(message, exception.getMessage());
            assertSame(cause, exception.getCause());
            assertTrue(exception instanceof RuntimeException);
        }
    
        @Test
        public void testConstructorWithNullMessage() {
            CurlException exception = new CurlException(null);
    
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        @Test
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            // Act + Assert: exception is propagated with message
            CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved());
            assertEquals("DFS resolution failed", ex.getMessage());
            verify(handle, times(1)).ensureDFSResolved();
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE })
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            // Arrange & Act
            SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException();
    
            // 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacTest.java

            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(emptyData, keys));
            // Any PACDecodingException is acceptable for this test
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testTooSmallPac() {
            // Test that PAC smaller than 8 bytes is rejected
            byte[] smallData = new byte[4];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

         * Test the default constructor.
         */
        @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() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top