- Sort Score
- Num 10 results
- Language All
Results 1181 - 1190 of 2,123 for instanceof (0.11 seconds)
-
guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java
fail(); } catch (Exception e) { assertThat(e).isInstanceOf(IllegalStateException.class); assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future."); } } static void verifyTimedGetOnPendingFuture(Future<?> future) { try { future.get(0, SECONDS); fail(); } catch (Exception e) { assertThat(e).isInstanceOf(IllegalStateException.class);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.3K bytes - Click Count (0) -
mockwebserver-junit4/README.md
``` @Rule public final MockWebServerRule serverRule = new MockWebServerRule(); ``` The `serverRule` field has a `server` field. It is an instance of `MockWebServer`. That instance will be shut down automatically after the test runs. For Kotlin, the `@JvmField` annotation is also necessary: ``` @JvmField @Rule val serverRule = MockWebServerRule()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 706 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt
assertFailsWith<IllegalStateException> { response.peekBody(3) } } /** * Returns a new response body that refuses to be read once it has been closed. This is true of * most [BufferedSource] instances, but not of [Buffer]. */ private fun responseBody(content: String): ResponseBody { val data = Buffer().writeUtf8(content) val source: Source = object : Source { var closed = false
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 2.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Interner.java
@J2ktIncompatible @GwtIncompatible public interface Interner<E> { /** * Chooses and returns the representative instance for any of a collection of instances that are * equal to each other. If two {@linkplain Object#equals equal} inputs are given to this method, * both calls will return the same instance. That is, {@code intern(a).equals(a)} always holds,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionDataRepository.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.execution; import org.apache.maven.project.MavenProject; /** * Instances of this interface retrieve and store data for the --resume / -r feature. This data is used to ensure newer * builds of the same project, that have the -r command-line flag, skip successfully built projects during earlier
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.3K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/streaming.md
yield Item(name="Plumbus", price=32.99) yield Item(name="Portal Gun", price=999.99) ``` For full control over SSE fields (`event`, `id`, `retry`, `comment`), yield `ServerSentEvent` instances: ```python from collections.abc import AsyncIterable from fastapi import FastAPI from fastapi.sse import EventSourceResponse, ServerSentEvent app = FastAPI()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 2.5K bytes - Click Count (0) -
docs/metrics/README.md
## Prometheus Probe MinIO allows reading metrics for the entire cluster from any single node. This allows for metrics collection for a MinIO instance across all servers. Thus, metrics collection for instances behind a load balancer can be done without any knowledge of the individual node addresses. The cluster wide metrics can be read at `<Address for MinIO Service>/minio/v2/metrics/cluster`.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Feb 29 18:35:20 GMT 2024 - 1.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isInstanceOf import assertk.assertions.isNotNull import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.junit5.StartStop import okhttp3.TestUtil.assumeNetwork
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 3.7K bytes - Click Count (0) -
buildscripts/minio-iam-ldap-upgrade-import-test.sh
#!/bin/bash # This script is used to test the migration of IAM content from old minio # instance to new minio instance. # # To run it locally, start the LDAP server in github.com/minio/minio-iam-testing # repo (e.g. make podman-run), and then run this script. # # This script assumes that LDAP server is at: # # `localhost:389` # # if this is not the case, set the environment variable # `_MINIO_LDAP_TEST_SERVER`.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 15:01:29 GMT 2024 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/HostSpecifierTest.java
} try { HostSpecifier.from(spec); fail("Should have thrown ParseException: " + spec); } catch (ParseException expected) { assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class); } assertFalse(HostSpecifier.isValid(spec)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 3.9K bytes - Click Count (0)