- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 278 for lose (0.02 sec)
-
guava/src/com/google/common/base/Stopwatch.java
return desiredUnit.convert(elapsedNanos(), NANOSECONDS); } /** * Returns the current elapsed time shown on this stopwatch as a {@link Duration}. Unlike {@link * #elapsed(TimeUnit)}, this method does not lose any precision due to rounding. * * @since 22.0 (but only since 33.4.0 in the Android flavor) */ @J2ktIncompatible @GwtIncompatible @J2ObjCIncompatible public Duration elapsed() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/CloseableUtil.java
* </p> * * @param closeable the closeable object * @see Closeable#close() */ public static void close(final Closeable closeable) { if (closeable == null) { return; } try {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
* finishing. Also acts as a concurrency test to make sure the locking is done correctly when a * future is finishing so that no listeners can be lost. */ public void testAllListenersCompleteSuccessfully() throws InterruptedException, ExecutionException { ExecutorService exec = newCachedThreadPool(); int listenerCount = 20;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 6.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
fastFallback = client.fastFallback, address = address, routeDatabase = client.routeDatabase, call = call, request = call.request(), ) } override fun close() { taskFaker.close() }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Oct 08 03:50:05 UTC 2025 - 6.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
* finishing. Also acts as a concurrency test to make sure the locking is done correctly when a * future is finishing so that no listeners can be lost. */ public void testAllListenersCompleteSuccessfully() throws InterruptedException, ExecutionException { ExecutorService exec = newCachedThreadPool(); int listenerCount = 20;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 6.1K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
void testReadWriteMethodsReturnValues() { SmbComClose close = new SmbComClose(10, 5000L); assertEquals(0, close.readParameterWordsWireFormat(new byte[10], 0)); assertEquals(0, close.readBytesWireFormat(new byte[10], 0)); assertEquals(0, close.writeBytesWireFormat(new byte[10], 0)); assertEquals(6, close.writeParameterWordsWireFormat(new byte[10], 0)); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
doThrow(new CIFSException("Failed to close")).when(smbFileHandle).close(lastWriteTime); assertThrows(CIFSException.class, () -> smbFileHandle.close(lastWriteTime), "close(long) should throw CIFSException when closing fails."); verify(smbFileHandle, times(1)).close(lastWriteTime); } /** * Test close() successfully. * * @throws CIFSException */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
// Mock close success for the first call doAnswer(invocation -> { MsrpcSamrCloseHandle rpc = invocation.getArgument(0); rpc.retval = 0; return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrCloseHandle.class)); // First close call aliasHandle.close(); // Act: Call close again aliasHandle.close();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
import org.jspecify.annotations.NullUnmarked; /** * Unit tests for {@link Closeables}. * * <p>Checks proper closing behavior, and ensures that IOExceptions on Closeable.close() are not * propagated out from the {@link Closeables#close} method if {@code swallowException} is true. * * @author Michael Lancaster */ @NullUnmarked public class CloseablesTest extends TestCase { private Closeable mockCloseable;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.1K bytes - Viewed (0)