- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 74 for gracefully (0.05 sec)
-
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
fail("setObject should handle missing request gracefully: " + e.getMessage()); } } public void test_setObject_withNullName() { // Test setObject with null name try { WebApiUtil.setObject(null, "testValue"); } catch (Exception e) { fail("setObject should handle null name gracefully: " + e.getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 17.1K bytes - Viewed (0) -
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) -
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) -
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) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
fail("writeThreadDump should handle invalid paths gracefully: " + e.getMessage()); } } public void test_writeThreadDump_withNullPath() { try { ThreadDumpUtil.writeThreadDump(null); // Should not throw exception but log warning } catch (Exception e) { fail("writeThreadDump should handle null path gracefully: " + e.getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CurlHelperTest.java
} setupMockConfig("localhost:9200", "", "", invalidCertFile.getAbsolutePath()); curlHelper.init(); // Should handle invalid certificate gracefully SSLSocketFactory sslSocketFactory = getSSLSocketFactory(curlHelper); assertNull(sslSocketFactory); } catch (IOException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 10.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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SambaHelperTest.java
} @Override public <T> T unwrap(Class<T> type) { return null; } }; // Should handle exception gracefully and still return result assertEquals("1TestUser", sambaHelper.getAccountId(exceptionSID)); } // Helper methods private SID createMockSID(final int type, final String accountName) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.7K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)