- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 747 for units (0.02 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
override fun source(): BufferedSource { val source = Buffer().writeUtf8("hello") return object : ForwardingSource(source) { @Throws(IOException::class) override fun close(): Unit = throw IOException("Broken!") }.buffer() } } assertThat(body.source().readUtf8()).isEqualTo("hello") body.close() } @Test fun unicodeText() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
import com.google.common.annotations.J2ktIncompatible; import java.util.concurrent.CancellationException; import java.util.concurrent.Future; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Futures#getUnchecked(Future)}. */ @GwtCompatible @NullUnmarked public class FuturesGetUncheckedTest extends TestCase { public void testGetUnchecked_success() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
import com.google.common.annotations.J2ktIncompatible; import java.util.concurrent.CancellationException; import java.util.concurrent.Future; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Futures#getUnchecked(Future)}. */ @GwtCompatible @NullUnmarked public class FuturesGetUncheckedTest extends TestCase { public void testGetUnchecked_success() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingListeningExecutorServiceTest.java
* limitations under the License. */ package com.google.common.util.concurrent; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link ForwardingListeningExecutorService} */ @NullUnmarked public class ForwardingListeningExecutorServiceTest extends TestCase { public void testForwarding() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1006 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt
} return source.buffer().asResponseBody(null, -1) } private fun newResponse( responseBody: ResponseBody, code: Int = 200, fn: Response.Builder.() -> Unit = {}, ): Response = Response .Builder() .request( Request .Builder() .url("https://example.com/") .build(), ).protocol(Protocol.HTTP_1_1)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; /** * Unit tests for the {@link SmbComReadAndXResponse} class. */ public class SmbComReadAndXResponseTest { private SmbComReadAndXResponse response; @BeforeEach public void setUp() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/tomcat/valve/SuppressErrorReportValveTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.tomcat.valve; import org.codelibs.fess.unit.UnitFessTestCase; public class SuppressErrorReportValveTest extends UnitFessTestCase { private SuppressErrorReportValve valve; @Override public void setUp() throws Exception { super.setUp();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; /** * Unit tests for the SmbComOpenAndXResponse class. */ class SmbComOpenAndXResponseTest { private SmbComOpenAndXResponse response; @BeforeEach void setUp() { response = new SmbComOpenAndXResponse();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.SmbConstants; /** * Basic unit tests for {@link SmbConstants}. The interface only * provides {@code static final} constants, so the test suite focuses on * value correctness, bit‑mask logic, and some derived properties. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
@CanIgnoreReturnValue private static Thread acquireFor(Lock lock, long duration, TimeUnit unit) { CountDownLatch latch = new CountDownLatch(1); Thread thread = new Thread() { @Override public void run() { lock.lock(); latch.countDown(); try { Thread.sleep(unit.toMillis(duration)); } catch (InterruptedException e) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 31.7K bytes - Viewed (0)