- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 58 for gracefully (0.05 sec)
-
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/smb/SimpleMemoryManagementTest.java
Mockito.doThrow(new RuntimeException("Test exception")).when(mockTransport).release(); session.acquire(); // Should handle exceptions gracefully assertDoesNotThrow(() -> session.release()); } /** * Test AutoCloseable pattern */ @Test @Timeout(5) public void testAutoCloseablePattern() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
fess-crawler/src/test/resources/org/codelibs/fess/crawler/helper/robots_malformed.txt
# Test file for malformed robots.txt parsing # This file contains various malformed directives that should be handled gracefully # Case 1: Directives before any User-agent (should be ignored) Disallow: /orphaned1/ Allow: /orphaned2/ # Case 2: Valid user-agent with various malformed directives User-agent: GoodBot Disallow: /admin/ InvalidDirective: some-value unknown-field: test Disallow /missing-colon
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Fri Nov 14 12:52:01 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
assertEquals(intermediateCause, finalException.getCause()); assertEquals(rootCause, finalException.getCause().getCause()); } @Test @DisplayName("Should handle null message gracefully") void testNullMessage() { // When/Then assertDoesNotThrow(() -> { SmbException exception = new SmbException((String) null); assertNotNull(exception); });
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K 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) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EXTRACTOR_TESTS_README.md
- ZipExtractor - TarExtractor **Test Count**: 12 tests **Key Scenarios**: - ✅ Descriptive error messages for invalid archives - ✅ Continues processing when some entries fail - ✅ Handles empty archives gracefully - ✅ Mixed valid/invalid entries processed correctly - ✅ Null input stream validation --- ### 4. AbstractExtractorTest.java **Purpose**: Test the base AbstractExtractor functionality. **Key Test Areas**:
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:55:01 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
assertEquals(0, buffer[1], "Second byte must be null terminator"); } @Test @DisplayName("writeBytesWireFormat handles empty string gracefully") void testWriteEmptyString() { when(mockConfig.getOemEncoding()).thenReturn("windows-1252"); SmbComQueryInformation emptyCmd = new SmbComQueryInformation(mockConfig, "");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
// but we can verify the context behaves correctly after wiping) // After wiping, operations that require keys should fail // Attempting to use the context after wiping should handle gracefully // Note: The actual implementation might throw an exception or handle differently } @Test @DisplayName("Should securely wipe keys when closing context")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
final String msg = ex.getMessage(); final boolean timeout = msg != null && msg.equals("Read timed out"); /* If just a timeout, try to disconnect gracefully */ final boolean hard = !timeout; if (!timeout && LogStream.level >= 3) { ex.printStackTrace(log); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0)