Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 447 for getMessager (0.12 sec)

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

            // Arrange & Act
            SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException();
    
            // Assert
            assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage(),
                    "Default message should match the class contract");
            assertNull(ex.getCause(), "No cause expected from default constructor");
            assertTrue(ex instanceof SmbException, "Should be an SmbException");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java

            assertEquals(servletException, runtimeException.getCause());
    
            // Verify that the message is preserved from the cause
            assertTrue(runtimeException.getMessage().contains(ServletException.class.getName()));
            assertTrue(runtimeException.getMessage().contains(errorMessage));
        }
    
        public void test_constructor_withServletExceptionWithCause() {
            // Create a root cause exception
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/CIFSExceptionTest.java

            // When
            CIFSException exception = new CIFSException(message);
    
            // Then
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertTrue(exception instanceof IOException);
        }
    
        @Test
        @DisplayName("Should create CIFSException with message and cause")
        void testCIFSExceptionWithCause() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            }
        }
    
        public void test_writeThreadDump_withNullPath() {
            try {
                ThreadDumpUtil.writeThreadDump(null);
                // Should not throw exception but log warning
            } catch (Exception e) {
                fail("writeThreadDump should handle null path gracefully: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java

        @Test
        void testNoArgsConstructor() {
            // Test the no-argument constructor
            ConnectionTimeoutException exception = new ConnectionTimeoutException();
            assertNull(exception.getMessage(), "Message should be null for no-arg constructor");
            assertNull(exception.getCause(), "Cause should be null for no-arg constructor");
        }
    
        @Test
        void testStringConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java

                scriptEngineFactory.add(null, engine);
                fail("Should throw IllegalArgumentException for null name");
            } catch (IllegalArgumentException e) {
                assertEquals("name or scriptEngine is null.", e.getMessage());
            }
        }
    
        // Test add method with null engine
        public void test_add_nullEngine() {
            try {
                scriptEngineFactory.add("test", null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

         * @return true if TCP fallback is recommended
         */
        public boolean shouldFallbackToTcp(Exception error) {
            // Hardware errors suggest RDMA is not working
            if (error.getMessage() != null) {
                String message = error.getMessage().toLowerCase();
                if (message.contains("hardware") || message.contains("device not found") || message.contains("driver")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java

        @Test
        void testNoArgsConstructor() {
            // Test the constructor with no arguments
            RequestTimeoutException exception = new RequestTimeoutException();
            assertNull(exception.getMessage(), "Message should be null for no-arg constructor");
            assertNull(exception.getCause(), "Cause should be null for no-arg constructor");
        }
    
        @Test
        void testMessageConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top