- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 1,497 for Unit (0.02 seconds)
-
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
void awaitLatchUninterruptibly() { Uninterruptibles.awaitUninterruptibly(latch); } @Override boolean awaitLatchUninterruptibly(long timeout, TimeUnit unit) { return Uninterruptibles.awaitUninterruptibly(latch, timeout, unit); } @Override long getCount() { return latch.getCount(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
mockwebserver/README.md
Here's a complete example: ### Java ```java public void test() throws Exception { // Create a MockWebServer. These are lean enough that you can create a new // instance for every unit test. MockWebServer server = new MockWebServer(); // Schedule some responses. server.enqueue(new MockResponse.Builder() .body("hello, world!") .build()); server.enqueue(new MockResponse.Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 8.1K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
bytesPerPeriod: Long, period: Long, unit: TimeUnit, ): Builder = apply { throttleBytesPerPeriod = bytesPerPeriod throttlePeriodNanos = unit.toNanos(period) } public fun headersDelay( delay: Long, unit: TimeUnit, ): Builder = apply { headersDelayNanos = unit.toNanos(delay) } /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 17.8K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
* cast: * * <pre> * {@code @SuppressWarnings("unchecked") // guaranteed by invokeAll contract} * {@code List<ListenableFuture<T>> futures = (List) executor.invokeAll(tasks, timeout, unit);} * </pre> * * @return a list of {@code ListenableFuture} instances representing the tasks, in the same * sequential order as produced by the iterator for the given task list. If the operation did
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.2K bytes - Click Count (0) -
TESTING.asciidoc
cluster, it is recommended to write unit tests or REST tests instead. In short, most new functionality should come with unit tests, and optionally REST tests to test integration. ==== Refactor code to make it easier to test Unfortunately, a large part of our code base is still hard to unit test. Sometimes because some classes have lots of dependencies that make them hard to
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Jun 07 13:55:20 GMT 2021 - 32.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 25.4K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
return -1L } }, ) return null } private fun awaitTcpConnect( timeout: Long, unit: TimeUnit, ): ConnectResult? { if (tcpConnectsInFlight.isEmpty()) return null val result = connectResults.poll(timeout, unit) ?: return null tcpConnectsInFlight.remove(result.plan) return result } private fun cancelInFlightConnects() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 5.8K bytes - Click Count (0) -
docs/distributed/samples/bootstrap-complete.ldif
# Create hardware engg org unit dn: ou=hwengg,dc=min,dc=io objectClass: organizationalUnit ou: hwengg # Create people sub-org dn: ou=people,ou=hwengg,dc=min,dc=io objectClass: organizationalUnit ou: people # Create Alice, Bob and Cody in hwengg dn: uid=alice1,ou=people,ou=hwengg,dc=min,dc=io objectClass: inetOrgPerson cn: Alice Smith sn: Smith uid: alice1 mail: ******@****.*** userPassword: {SSHA}Yeh2/IV/q/HjG2yzN3YdE9CAF3EJFCLuCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Sep 12 15:59:00 GMT 2024 - 3.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt
*/ fun withConnectTimeout( timeout: Int, unit: TimeUnit, ): Chain /** * Returns the read timeout in milliseconds. */ fun readTimeoutMillis(): Int /** * Returns a new chain with the specified read timeout. */ fun withReadTimeout( timeout: Int, unit: TimeUnit, ): Chain /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.SmbConstants; import jcifs.internal.smb1.ServerMessageBlock; /** * Unit tests for {@link SmbComNTCreateAndX}. The tests exercise the * constructor’s flag handling, response creation and simple accessors. * * <p>All tests run in the same package as the class under test so thatCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0)