- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 652 for lose (0.05 sec)
-
src/test/java/jcifs/SmbTreeTest.java
*/ @Test void testClose_multipleTimes() { doNothing().when(smbTree).close(); smbTree.close(); smbTree.close(); smbTree.close(); verify(smbTree, times(3)).close(); } /** * Test for close() method throwing exception. * Verifies behavior when close throws an exception. */ @Test void testClose_throwsException() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
guava/src/com/google/common/io/CharStreams.java
* CharStreams} method returns a singleton writer whose {@code close} method has no effect, while * the {@link Writer#nullWriter()} method returns a new instance whose methods throw after the * instance is {@link Writer#close() closed}. * * @since 15.0 */ public static Writer nullWriter() { return NullWriter.INSTANCE; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 30 17:25:01 UTC 2025 - 10.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
val source = Buffer().writeUtf8("hello") return object : ForwardingSource(source) { override fun close() { closed = true super.close() } }.buffer() } } body.source().close() assertThat(closed).isTrue() } @Test fun throwingUnderlyingSourceClosesQuietly() { val body: ResponseBody =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
assertEquals("working", result); // Close it cbToClose.close(); // Should not throw exception (close should be idempotent) cbToClose.close(); } @Test public void testEnhancedMetricsTracking() throws Exception { SmbCircuitBreaker cbWithEnhanced = new SmbCircuitBreaker("enhanced-test"); try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
handle.close(); // First close handle.close(); // Second close // Verify sendrecv for close was called only once verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrCloseHandle.class)); } @Test void testClose_SmbExceptionOnClose() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
private var closed = false override fun close() { if (closed) return try { super.close() } finally { closedLatch.countDown() } } }.buffer() override val sink: BufferedSink = object : ForwardingSink(delegate.sink) { private var closed = false override fun close() { if (closed) return try {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.10.md
* Fixed issue 63608, which is that under rare circumstances the ResourceQuota admission controller could lose track of an request in progress and time out after waiting 10 seconds for a decision to be made. ([#64598](https://github.com/kubernetes/kubernetes/pull/64598), [@MikeSpreitzer](https://github.com/MikeSpreitzer))
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Thu May 05 13:44:43 UTC 2022 - 341.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
return invocation.getArgument(1); }); // When: Create iterator and close multiple times NetServerEnumIterator iterator = new NetServerEnumIterator(parent, treeHandle, "*", 0, null); iterator.close(); iterator.close(); // Second close should be safe // Then: Tree handle should be released only once verify(treeHandle, times(1)).release();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
// Simulate successful close doAnswer(invocation -> { MsrpcSamrCloseHandle rpc = invocation.getArgument(0); rpc.retval = 0; return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrCloseHandle.class)); // First close call handle.close(); // Act // Second close call handle.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0)