- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 437 for closes (0.11 sec)
-
android/guava/src/com/google/common/io/Closer.java
* @since 14.0 */ // Coffee's for {@link Closer closers} only. @J2ktIncompatible @GwtIncompatible public final class Closer implements Closeable { /** Creates a new {@link Closer}. */ public static Closer create() { return new Closer(SUPPRESSING_SUPPRESSOR); } @VisibleForTesting final Suppressor suppressor; // only need space for 2 elements in most cases, so try to use the smallest array possible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
} }, "Multiple close operations should not cause issues"); // Verify iterator still works after multiple closes assertFalse(emptyIterator.hasNext(), "Iterator should still work after multiple closes"); assertNull(emptyIterator.next(), "Iterator should still return null after multiple closes"); } @Test @DisplayName("EmptyIterator should handle remove operations multiple times")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
// Verify interactions verify(tree, times(1)).send(isA(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class)); // Verify that Trans2FindNext2 was sent twice for fetching more entries verify(tree, times(2)).send(isA(Trans2FindNext2.class), any(Trans2FindFirst2Response.class)); // Close should have sent FindClose2 exactly once
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
assertSame(info, result); verify(tree, atLeastOnce()).send(any(CommonServerMessageBlockRequest.class), any(), any(), any()); } // close() should close underlying handle with 0L when valid @Test @DisplayName("close() closes underlying handle when valid") void close_validHandle_invokesClose() throws Exception { when(handle.isValid()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
assertEquals("one", it.next().getName()); // consume initial // Next call should handle CIFSException and close iterator assertFalse(it.hasNext()); // After error, hasNext should return false // Assert verify(tree, times(1)).release(); } @Test @DisplayName("close() closes when there is a next element and releases handle") void explicitClose() throws Exception { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
when { this.isNullOrEmpty() -> emptyList() this.size == 1 -> Collections.singletonList(this[0]) else -> this.clone().asList().unmodifiable() } /** Closes this, ignoring any checked exceptions. */ internal fun Socket.closeQuietly() { try { close() } catch (e: AssertionError) { throw e } catch (rethrown: RuntimeException) { if (rethrown.message == "bio == null") {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 10.2K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
} @Test fun trailersWithServerTruncatedResponseHttp2() { trailersWithServerTruncatedResponse(Protocol.HTTP_2) } /** * If the server closes the connection while the client is consuming the response body, attempts * to peek or read the trailers should throw. */ private fun trailersWithServerTruncatedResponse(protocol: Protocol) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 18K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
SmbFileHandleImpl fh = mock(SmbFileHandleImpl.class); doReturn(fh).when(raf).ensureOpen(); // Act raf.open(); // Assert: open() ensures handle and closes it via try-with-resources verify(raf, times(1)).ensureOpen(); verify(fh, times(1)).close(); } @Test @DisplayName("close(): clears cache and closes handle; does not close shared SmbFile")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 14:39:28 UTC 2025 - 18.1K bytes - Viewed (0)