- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for gracefully (0.05 sec)
-
src/test/java/jcifs/config/PropertyConfigurationTest.java
assertEquals("testpass", config.getDefaultPassword()); assertEquals("testdomain", config.getDefaultDomain()); } @Test @DisplayName("Should handle null properties gracefully") void testNullProperties() throws CIFSException { // PropertyConfiguration doesn't handle null properties // It should throw NullPointerException assertThrows(NullPointerException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ArchiveExtractorErrorHandlingTest.java
e.getMessage().contains("Failed to extract") || e.getMessage().contains("No entries could be processed")); } } /** * Test that TarExtractor handles invalid archive gracefully. * Invalid archives may either throw an exception or return empty content. */ public void test_TarExtractor_invalidArchive_handlesGracefully() {
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 12.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java
urlFilter.init(null); // Should handle null session ID gracefully assertNotNull(urlFilter); } /** * Test initialization with empty session ID */ public void test_init_withEmptySessionId() { urlFilter.init(""); // Should handle empty session ID gracefully assertNotNull(urlFilter); } /**
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 19K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
// Should either throw exception or fail gracefully after close try { digest.sign(data, 0, data.length, request, response); // If no exception is thrown, the operation should have been no-op or handled gracefully assertTrue(true, "Sign operation after close should either throw exception or handle gracefully"); } catch (RuntimeException e) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java
final long elapsed = (System.nanoTime() - start) / 1000000; assertTrue("file:// URLs should not be delayed", elapsed < 50); } /** * Test that null URL queue is handled gracefully */ public void test_nullUrlQueue() { final HostIntervalController controller = new HostIntervalController(); controller.delayMillisBeforeProcessing = 1000L;
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
assertEquals(0x800, Smb2ChangeNotifyRequest.FILE_NOTIFY_CHANGE_STREAM_WRITE); } @Test @DisplayName("Should handle null file ID gracefully") void testNullFileId() { // Given byte[] nullFileId = new byte[16]; // All zeros Configuration config = mock(Configuration.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); } @Test @DisplayName("Should handle null message gracefully") void testNullMessage() { // When/Then assertDoesNotThrow(() -> { RuntimeCIFSException exception = new RuntimeCIFSException((String) null); assertNull(exception.getMessage());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
} } @Nested @DisplayName("Edge Cases and Error Handling") class EdgeCasesTests { @Test @DisplayName("Should handle malformed buffer gracefully") void testReadDataWireFormatMalformedBuffer() { byte[] buffer = new byte[3]; // Too small for valid DFS referral assertThrows(ArrayIndexOutOfBoundsException.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
verify(mockDelegate).isIpcSigningEnforced(); verify(mockDelegate, times(2)).isForceExtendedSecurity(); } @Test @DisplayName("Delegation should handle null returns gracefully") void testNullReturnHandling() { // Given - configure delegate to return nulls when(mockDelegate.getRandom()).thenReturn(null); when(mockDelegate.getLocalAddr()).thenReturn(null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
void testNullDataNonZeroLength() { request.setData(null, 0, 100); byte[] buffer = new byte[256]; // Should handle gracefully or throw appropriate exception assertThrows(NullPointerException.class, () -> request.writeBytesWireFormat(buffer, 0)); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0)