Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 150 for gracefully (0.1 seconds)

  1. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // ## Arrange ##
            // Write data exceeding threshold to force file creation, then delete the file
            // before close() - close() should handle this gracefully (log warning, not throw)
            ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }); // exceeds threshold
            cos.flush();
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/SmbSessionTest.java

                }, "Multiple close() calls should not throw exceptions");
    
                verify(mockSession, times(2)).close();
            }
    
            @Test
            @DisplayName("Should handle close with exception gracefully")
            void shouldHandleCloseExceptionGracefully() throws Exception {
                SmbSession mockSession = mock(SmbSession.class);
                Exception testException = new Exception("Test close exception");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            assertEquals(1, chain3.updateCallCount);
        }
    
        // Test addChain null handling
        @Test
        public void test_addChain_withNull() {
            // ArrayUtils.addAll handles null gracefully by adding it to the array
            authenticationManager.addChain(null);
    
            // Verify null chain doesn't cause issues during operations
            User user = createTestUser("testuser");
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            Map<String, Object> docMap = new HashMap<>();
    
            // Note: isTarget requires FessConfig which needs container
            // We can only verify the method handles missing container gracefully
            try {
                generator.isTarget(docMap);
            } catch (IllegalStateException e) {
                // Expected when container is not initialized
                assertTrue(e.getMessage().contains("Not initialized"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            for (int i = 0; i < 10; i++) {
                assertEquals(4, SMBUtil.readInt2(buffer, i * 10));
            }
        }
    
        @Test
        @DisplayName("Should handle null configuration gracefully in response creation")
        void testCreateResponseWithNullConfig() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  6. CHANGELOG.md

        Firefox’s ‘copy as cURL’ features.
    
     *  New: Support [JPMS]. We replaced our `Automatic-Module-Name` metadata with proper
        `module-info.java` files.
    
     *  Fix: Recover gracefully when worker threads are interrupted. When we introduced fast fallback in
        OkHttp 5.0, we started using background threads while connecting. Sadly that code didn't handle
        interruptions well. This is now fixed.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
  7. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

            };
    
            try {
                Artifact artifact = new Artifact("fess-theme-test", "1.0.0");
                mockThemeHelper.install(artifact);
                // Some environments may handle invalid zip gracefully
                assertTrue(true);
            } catch (Exception e) {
                // Should throw ThemeException or ZipException
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  8. 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, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // Closing should send a single Smb2CloseRequest
            it.close();
            verify(tree).send(argThat((Request<?> r) -> r instanceof Smb2CloseRequest));
        }
    
        @Test
        @DisplayName("open() gracefully handles NT_STATUS_NO_SUCH_FILE (empty listing)")
        void open_handles_no_such_file_and_yields_empty() throws Exception {
            // Setup required for this test
            when(parent.getLocator()).thenReturn(locator);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            // Then
            assertEquals(0, bytesWritten);
            assertArrayEquals(originalBuffer, buffer); // Buffer should remain unchanged
        }
    
        @Test
        @DisplayName("Should handle null configuration gracefully")
        void testNullConfiguration() {
            // When - constructor accepts null config without throwing
            Smb2TreeDisconnectResponse responseWithNull = new Smb2TreeDisconnectResponse(null);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
Back to Top