Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 130 for gracefully (0.36 sec)

  1. 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)
  2. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            byte[] wrongSizeBuffer = new byte[100]; // Wrong size
            byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
            // When/Then - Should handle invalid buffers gracefully
            assertDoesNotThrow(() -> {
                BufferCache.releaseBuffer(nullBuffer); // Should ignore null
                BufferCache.releaseBuffer(wrongSizeBuffer); // Should ignore wrong size
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. code_of_conduct.md

    orientation.
    
    ## Our Standards
    
    Examples of behavior that contributes to creating a positive environment
    include:
    
    * Using welcoming and inclusive language
    * Being respectful of differing viewpoints and experiences
    * Gracefully accepting constructive criticism
    * Focusing on what is best for the community
    * Showing empathy towards other community members
    
    Examples of unacceptable behavior by participants include:
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Jan 20 18:38:58 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  6. architecture/standards/0002-avoid-using-java-serialization.md

    - **Flexibility and Control:**
    Java serialization offers limited control over the serialization process, such as excluding certain fields, customizing naming conventions, and handling complex data structures more gracefully.
    
    - **Security:**
    Java serialization poses security risks, especially related to deserialization vulnerabilities.
    
    - **Version Compatibility:**
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Feb 29 22:32:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

        }
    
        @Test
        @DisplayName("run method handles null URL gracefully")
        void testRunWithNullUrl() {
            TestLocking t = new TestLocking();
            t.url = null; // Null URL
            t.numIter = 0; // No iterations to avoid NPE
    
            // Should not throw exception
            assertDoesNotThrow(() -> t.run(), "run() should handle null URL gracefully");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/test/java/jcifs/util/CryptoTest.java

            assertNotNull(md4Hash);
            assertNotNull(md5Hash);
            assertEquals(16, md4Hash.length);
            assertEquals(16, md5Hash.length);
        }
    
        @Test
        @DisplayName("Should handle null input gracefully")
        void testNullInputHandling() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                MessageDigest md4 = Crypto.getMD4();
                md4.digest(null);
            });
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top