- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 150 for gracefully (0.07 seconds)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
assertEquals("Expected structureSize = 4", exception.getMessage()); } @Test @DisplayName("Should handle malformed buffer gracefully") void testMalformedBuffer() { // Given - buffer with random data byte[] buffer = new byte[10]; for (int i = 0; i < buffer.length; i++) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
} } @Nested @DisplayName("Edge Cases and Error Conditions") class EdgeCasesTests { @Test @DisplayName("Parse handles empty token gracefully") void testParseEmptyToken() { byte[] emptyToken = new byte[0]; assertThrows(IOException.class, () -> new NegTokenInit(emptyToken)); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
assertEquals(0, buffer.getNumReferrals()); assertEquals(10, buffer.getTflags()); } @Test @DisplayName("Should handle referral decode failure gracefully") void testReferralDecodeFailure() { // Create buffer with invalid referral data byte[] testBuffer = new byte[20];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.4K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
assertEquals(4, attemptCount.get()); } /** * Test: Null safety in connect() when targetIndices is null * Verifies that connect() handles null targetIndices gracefully */ @Test public void testConnectWithNullTargetIndices() { final AdminClient mockAdminClient = mock(AdminClient.class);
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Mon Jan 12 06:25:38 GMT 2026 - 16.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
* asymptotics but requires O(n) memory, and a {@code PriorityQueue} implementation takes O(n log * k). In benchmarks, this implementation performs at least as well as either implementation, and * degrades more gracefully for worst-case input. * * <p>The implementation does not necessarily use a <i>stable</i> sorting algorithm; when multiple * equivalent elements are added to it, it is undefined which will come first in the output. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PingSearchEngineJobTest.java
ComponentUtil.setFessConfig(fessConfig); // Execute and expect exception to be handled try { String result = pingSearchEngineJob.execute(); // Job should handle exception gracefully assertNotNull(result); } catch (Exception e) { // Exception is expected to be caught within the job assertTrue(e.getMessage().contains("Connection failed")); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/TopKSelector.java
* asymptotics but requires O(n) memory, and a {@code PriorityQueue} implementation takes O(n log * k). In benchmarks, this implementation performs at least as well as either implementation, and * degrades more gracefully for worst-case input. * * <p>The implementation does not necessarily use a <i>stable</i> sorting algorithm; when multiple * equivalent elements are added to it, it is undefined which will come first in the output. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java
SuggestIndexResponse response = suggester.indexer().indexFromQueryLog(queryLog); assertNotNull(response); // Should handle special characters gracefully } // ============================================================ // Tests for setters with null values // ============================================================ @TestCreated: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 18.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java
assertNotNull(item.getTimestamp()); assertNotNull(item.getId()); } @Test public void testConstructorWithNullArrays() { // Test constructor handles null arrays gracefully String[] text = { "text" }; String[][] readings = { { "reading" } }; SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 1.0f, null, null, null, SuggestItem.Kind.DOCUMENT);
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Sep 01 13:33:03 GMT 2025 - 16.7K bytes - Click Count (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
} when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath()); if (!isWindows) { // Should handle IOException gracefully and return null NbtAddress result = lmhosts.getByName("ANYHOST", mockContext); assertNull(result); } // Cleanup lmhostsFile.setReadable(true); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.2K bytes - Click Count (0)