- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 115 for gracefully (0.03 sec)
-
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
assertEquals("single_share", entries[0].getName()); assertEquals(8, entries[0].getType()); // TYPE_SHARE constant value } @Test @DisplayName("getEntries should handle null DFS names gracefully") void testGetEntries_nullNames() throws Exception { // Create array with null name entries netdfs.DfsEnumArray200 arrayWithNulls = new netdfs.DfsEnumArray200(); arrayWithNulls.count = 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.9K bytes - Viewed (0) -
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");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
try { // Test connection pool operations without actually connecting boolean contains = pool.contains(null); // Should handle gracefully successCount.incrementAndGet(); } catch (Exception e) { synchronized (exceptions) { exceptions.add(e);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
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
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.5K bytes - Viewed (0) -
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++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
for (i in 0 until messageCount) { serverListener.assertBinaryMessage(message) } serverListener.assertClosing(1001, "") // When the server acknowledges the close the connection shuts down gracefully. server.close(1000, null) clientListener.assertClosing(1000, "") clientListener.assertClosed(1000, "") serverListener.assertClosed(1001, "") } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (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. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0)