- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 269 for IllegalStateException (0.06 sec)
-
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) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
} } @Test void causeConstructor_setsCause_andDerivesMessageFromCauseToString() { // Arrange - use a real cause so message is derived from cause.toString() Throwable cause = new IllegalStateException("proto mismatch"); String expectedMessage = cause.toString(); // Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(cause);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
Lock lockA = factory.newReentrantLock(OtherOrder.FIRST); Lock lockB = factory.newReentrantReadWriteLock(OtherOrder.FIRST).readLock(); lockA.lock(); assertThrows(IllegalStateException.class, () -> lockB.lock()); lockA.unlock(); lockB.lock(); } public void testReadLock_deadlock() { readLockA.lock(); // Establish an ordering from readLockA -> lockB.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
Lock lockA = factory.newReentrantLock(OtherOrder.FIRST); Lock lockB = factory.newReentrantReadWriteLock(OtherOrder.FIRST).readLock(); lockA.lock(); assertThrows(IllegalStateException.class, () -> lockB.lock()); lockA.unlock(); lockB.lock(); } public void testReadLock_deadlock() { readLockA.lock(); // Establish an ordering from readLockA -> lockB.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java
assertNull(exception.getCause()); } public void test_constructor_withNestedCause() { // Test constructor with nested exception causes Exception rootCause = new IllegalStateException("Root cause"); Exception middleCause = new RuntimeException("Middle cause", rootCause); String message = "Top level dictionary error";
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java
// Note: isTarget requires FessConfig which needs container // We can only verify the method handles missing container gracefully try { generator.isTarget(docMap); } catch (IllegalStateException e) { // Expected when container is not initialized assertTrue(e.getMessage().contains("Not initialized")); } } public void test_addCondition() {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java
sizesToTest.retainAll(asList(CollectionSize.ZERO, CollectionSize.ONE, CollectionSize.SEVERAL)); logger.fine(" Sizes: " + formatFeatureSet(sizesToTest)); if (sizesToTest.isEmpty()) { throw new IllegalStateException( name + ": no CollectionSizes specified (check the argument to " + "FeatureSpecificTestSuiteBuilder.withFeatures().)"); } TestSuite suite = new TestSuite(name);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 5.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt
// System.setProperty("jdk.tls.client.enableSessionTicketExtension", "true") // System.setProperty("jdk.tls.server.enableSessionTicketExtension", "true") // IllegalStateException: Cannot resume session and session creation is disabled platform.assumeNotBouncyCastle() } @ParameterizedTest(name = "{displayName}({arguments})") @ValueSource(strings = ["TLSv1.2", "TLSv1.3"]) @Flaky
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java
} public void test_nestedExceptionChain() { // Test nested exception chain Throwable rootCause = new IllegalArgumentException("Root cause"); Throwable middleCause = new IllegalStateException("Middle cause", rootCause); ScheduledJobException exception = new ScheduledJobException("Top level error", middleCause); assertEquals("Top level error", exception.getMessage());Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java
public void test_throwAndCatchExceptionWithCause() { // Test throwing and catching the exception with cause String expectedMessage = "Storage write error"; Exception expectedCause = new IllegalStateException("Invalid state"); try { throw new StorageException(expectedMessage, expectedCause); } catch (StorageException e) { assertEquals(expectedMessage, e.getMessage());Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0)