- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 269 for IllegalStateException (0.12 sec)
-
android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java
ByteSource checker = new ByteSource() { @Override public InputStream openStream() throws IOException { if (counter[0]++ != 0) { throw new IllegalStateException("More than one source open"); } return new FilterInputStream(source.openStream()) { @Override public void close() throws IOException { super.close();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerTest.java
MapMaker maker = new MapMaker().initialCapacity(16); try { // even to the same value is not allowed maker.initialCapacity(16); fail(); } catch (IllegalStateException expected) { } } public void testReturnsPlainConcurrentHashMapWhenPossible() { Map<?, ?> map = new MapMaker().initialCapacity(5).makeMap(); assertTrue(map instanceof ConcurrentHashMap); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Absent.java
return (Optional<T>) INSTANCE; } private Absent() {} @Override public boolean isPresent() { return false; } @Override public T get() { throw new IllegalStateException("Optional.get() cannot be called on an absent value"); } @Override public T or(T defaultValue) { return checkNotNull(defaultValue, "use Optional.orNull() instead of Optional.or(null)"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
public void test_throwAndCatchWithCause() { // Test throwing and catching the exception with cause String expectedMessage = "SAML assertion validation failed"; Exception expectedCause = new IllegalStateException("Invalid SAML response"); try { throw new SsoProcessException(expectedMessage, expectedCause); } catch (SsoProcessException e) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
* * <p><b>Warning:</b> The caller is responsible for not attempting to read past the end of the * array. If any method encounters the end of the array prematurely, it throws {@link * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation * of the supertype's contract, which specifies a checked exception. * * @author Kevin Bourrillion * @since 1.0 */ @J2ktIncompatibleRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 20:25:25 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt
Thread.currentThread().interrupt() // Retain interrupted status. } } if (!::bytes.isInitialized) { // May have failed with an IOException throw IllegalStateException("Unable to load $path resource.").apply { initCause(readFailure) } } } abstract val path: Any /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
doThrow(new RuntimeException("Test Exception")).when(mockMd5).digest(any(byte[].class), anyInt(), anyInt()); HMACT64 hmac = new HMACT64(TEST_KEY); assertThrows(IllegalStateException.class, () -> hmac.engineDigest(new byte[10], 0, 10)); } } @Test void testClone() throws NoSuchAlgorithmException, CloneNotSupportedException { // Test clone() method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
assertFailsWith<IllegalStateException> { Request .Builder() .url("https://square.com/") .gzip() .build() }.also { assertThat(it).hasMessage("cannot gzip a request that has no body") } } @Test fun cannotGzipWithAnotherContentEncoding() { assertFailsWith<IllegalStateException> { Request .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 19K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt
@Test fun firstConnectionCrashesWithUncheckedException() { val plan0 = routePlanner.addPlan() plan0.tcpConnectThrowable = IllegalStateException("boom!") routePlanner.addPlan() // This plan should not be used. taskRunner.newQueue().execute("connect") { assertFailsWith<IllegalStateException> { finder.find() }.also { expected -> assertThat(expected).hasMessage("boom!") } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 20.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java
} @Override public void merge(ArtifactMetadata metadata) { ProjectArtifactMetadata m = (ProjectArtifactMetadata) metadata; if (!m.file.equals(file)) { throw new IllegalStateException("Cannot add two different pieces of metadata for: " + getKey()); } } @Override public void merge(org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata) {Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 4K bytes - Viewed (0)