Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for gracefully (0.39 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  3. 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: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

        void testConstructorWithNullPipeName() {
            // Act
            transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, null);
    
            // Assert
            assertNotNull(transWaitNamedPipe);
            assertNull(transWaitNamedPipe.name);
        }
    
        @Test
        @DisplayName("Constructor with empty pipe name should handle gracefully")
        void testConstructorWithEmptyPipeName() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

                    }
                }
            };
    
            FwAssistantDirector assistantDirector = createMockAssistantDirector();
    
            // Should handle ClassNotFoundException gracefully
            customHook.hook(assistantDirector);
    
            // Verify no exception is thrown to the caller
            assertTrue(true);
        }
    
        // Test shutdownCommonsHttpClient private method with reflection
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. 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"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            // when proper conditions are not met.
    
            Map<String, Object> docMap = new HashMap<>();
    
            // This will return false because getFessConfig() will fail
            // We verify the method handles the case gracefully
            try {
                emptyGenerator.isTarget(docMap);
            } catch (IllegalStateException e) {
                // Expected when container is not initialized
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/BufferCacheTest.java

            assertNotNull(buffer, "getBuffer should never return null");
            assertSame(expectedBuffer, buffer, "Should return configured buffer");
        }
    
        @Test
        @DisplayName("releaseBuffer should accept byte arrays gracefully")
        void testReleaseBufferContract() {
            // Given
            byte[] buffer = new byte[1024];
            doNothing().when(mockBufferCache).releaseBuffer(buffer);
    
            // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top