- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 179 for mocks (0.06 seconds)
-
mockwebserver/README.md
awkward-to-reproduce situations like 500 errors or slow-loading responses. ### Example Use MockWebServer the same way that you use mocking frameworks like [Mockito](https://github.com/mockito/mockito): 1. Script the mocks. 2. Run application code. 3. Verify that the expected requests were made. Here's a complete example: ### Java ```java public void test() throws Exception {
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) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
assertEquals(0, cms.count("a")); assertTrue(cms.removeExactly("b", 2)); assertEquals(1, cms.count("b")); } public void testIteratorRemove_actualMap() { // Override to avoid using mocks. multiset = ConcurrentHashMultiset.create(); multiset.add(KEY); multiset.add(KEY + "_2"); multiset.add(KEY); int mutations = 0;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/filter/CorsFilterTest.java
protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); corsFilter = new CorsFilter(); corsHandlerFactory = new TestCorsHandlerFactory(); // Initialize mocks mockRequest = new TestHttpServletRequest(); mockResponse = new TestHttpServletResponse(); mockFilterChain = new TestFilterChain(); ComponentUtil.register(corsHandlerFactory, "corsHandlerFactory");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 22.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java
crawlingInfoHelper.documentExpires = currentTime + 5000; // For this test, we'll focus on the documentExpires fallback logic // since creating full CrawlingConfig mocks would require implementing many abstract methods Date result = crawlingInfoHelper.documentExpires != null ? new Date(crawlingInfoHelper.documentExpires) : null; assertNotNull(result);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 12 01:46:45 GMT 2026 - 28.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/RateLimiter.java
* object to facilitate testing. */ private final SleepingStopwatch stopwatch; // Can't be initialized in the constructor because mocks don't call the constructor. private volatile @Nullable Object mutexDoNotUseDirectly; private Object mutex() { Object mutex = mutexDoNotUseDirectly; if (mutex == null) { synchronized (this) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:05:27 GMT 2025 - 21.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java
// Do nothing in test } } private static class TestClickLogBhv extends ClickLogBhv { // Mock implementation } private static class TestFavoriteLogBhv extends FavoriteLogBhv { // Mock implementation } private static class TestIngestFactory extends IngestFactory { private boolean throwException = false;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 33.6K bytes - Click Count (0) -
docs/de/docs/how-to/graphql.md
Hier sind einige der **GraphQL**-Bibliotheken, die **ASGI**-Unterstützung haben. Sie könnten sie mit **FastAPI** verwenden: * [Strawberry](https://strawberry.rocks/) 🍓 * Mit [Dokumentation für FastAPI](https://strawberry.rocks/docs/integrations/fastapi) * [Ariadne](https://ariadnegraphql.org/) * Mit [Dokumentation für FastAPI](https://ariadnegraphql.org/docs/fastapi-integration)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 3.1K bytes - Click Count (0) -
.teamcity/src/test/kotlin/ApplyDefaultConfigurationTest.kt
import common.VersionedSettingsBranch import configurations.BaseGradleBuildType import configurations.applyDefaults import configurations.applyTestDefaults import io.mockk.every import io.mockk.impl.annotations.MockK import io.mockk.junit5.MockKExtension import io.mockk.mockk import io.mockk.slot import jetbrains.buildServer.configs.kotlin.BuildStep import jetbrains.buildServer.configs.kotlin.BuildSteps
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 13 05:03:56 GMT 2026 - 7.1K bytes - Click Count (0) -
docs/ru/docs/how-to/graphql.md
## Библиотеки GraphQL { #graphql-libraries } Ниже приведены некоторые библиотеки **GraphQL** с поддержкой **ASGI**. Их можно использовать с **FastAPI**: * [Strawberry](https://strawberry.rocks/) 🍓 * С [документацией для FastAPI](https://strawberry.rocks/docs/integrations/fastapi) * [Ariadne](https://ariadnegraphql.org/) * С [документацией для FastAPI](https://ariadnegraphql.org/docs/fastapi-integration) * [Tartiflette](https://tartiflette.io/)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.Semaphore; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests for Striped. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.1K bytes - Click Count (0)