Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 447 for setMessage (0.04 sec)

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

            Throwable cause = ((java.lang.reflect.InvocationTargetException) exception).getCause();
            assertTrue(cause instanceof CIFSException);
            assertTrue(cause.getMessage().contains("Failed to create multi-channel transport"));
        }
    
        @Test
        @DisplayName("createChannelTransport should handle localhost addresses")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                assertTrue(true);
            } catch (Exception e) {
                // Should throw ThemeException or ZipException
                assertTrue(e instanceof ThemeException || e.getMessage().contains("zip") || e.getMessage().contains("install")
                        || e.getMessage().contains("format"));
            }
        }
    
        public void test_install_zipWithSkippedEntries() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

            when(handle.ensureTreeConnected()).thenThrow(boom);
    
            // Act + Assert
            CIFSException ex = assertThrows(CIFSException.class, out::ensureTreeConnected);
            assertEquals("tree-fail", ex.getMessage());
            verify(handle, times(1)).ensureTreeConnected();
        }
    
        @Test
        @DisplayName("ensureOpen delegates and returns the file handle")
        void ensureOpen_delegatesAndReturns() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileFilterTest.java

            when(smbFile.isDirectory()).thenThrow(boom);
    
            // Act + Assert
            SmbException thrown = assertThrows(SmbException.class, () -> filter.accept(smbFile));
            assertEquals("io error", thrown.getMessage());
            verify(smbFile, times(1)).isDirectory();
            verifyNoMoreInteractions(smbFile);
        }
    
        @Test
        @DisplayName("accept: rejects null input with meaningful NullPointerException")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            } catch (JobProcessingException e) {
                assertEquals("Python Process terminated.", e.getMessage());
                assertNotNull(e.getCause());
                // Check cause message if available, otherwise just verify cause exists
                if (e.getCause().getMessage() != null) {
                    assertTrue(e.getCause().getMessage().contains("Process start failed"));
                }
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaProvider.java

                return true;
            } catch (ClassNotFoundException e) {
                log.debug("DiSNI not available: {}", e.getMessage());
                return false;
            } catch (UnsatisfiedLinkError e) {
                log.debug("DiSNI native libraries not available: {}", e.getMessage());
                return false;
            }
        }
    
        @Override
        public Set<RdmaCapability> getSupportedCapabilities() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            String malformedUrl = "invalid-url";
            CIFSException thrown = assertThrows(CIFSException.class, () -> {
                cifsContextWrapper.get(malformedUrl);
            });
            assertTrue(thrown.getMessage().contains("Invalid URL"));
            assertTrue(thrown.getCause() instanceof MalformedURLException);
        }
    
        @Test
        void testGetPipe() throws CIFSException, MalformedURLException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

                byte[] actualBuffer = (byte[]) outputBufferField.get(response);
                assertSame(outputBuffer, actualBuffer);
            } catch (Exception e) {
                fail("Failed to access outputBuffer field: " + e.getMessage());
            }
        }
    
        @Test
        void testWriteSetupWireFormat() {
            // Test that writeSetupWireFormat returns 0
            byte[] dst = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/Kerb5ContextTest.java

            CIFSException ex = assertThrows(CIFSException.class, () -> ctx.calculateMIC(data));
            assertTrue(ex.getMessage().contains("Failed to calculate MIC"));
        }
    
        @Test
        @DisplayName("calculateMIC with null data throws NPE")
        void calculateMIC_nullData() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

                provider.provide(null);
                fail("Should throw exception for null classification name");
            } catch (ProvidedClassificationNotFoundException e) {
                // expected
                assertTrue(e.getMessage().contains("Not found the classification: null"));
            } catch (NullPointerException e) {
                // Also acceptable if null is not handled explicitly
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top