- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,324 for exception (0.05 sec)
-
src/test/java/org/codelibs/curl/CurlExceptionTest.java
assertNull(exception.getCause()); assertTrue(exception instanceof RuntimeException); } @Test public void testConstructorWithMessageAndCause() { String message = "Test error message"; IOException cause = new IOException("IO error"); CurlException exception = new CurlException(message, cause); assertEquals(message, exception.getMessage());
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java
final Exception cause = new RuntimeException("Underlying error"); // Execute final InvalidQueryException exception = new InvalidQueryException(null, message, cause); // Verify assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); assertNull(exception.getMessageCode()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* parameter, or if the constructor or factory method throws exception. * * @return this tester */ @CanIgnoreReturnValue @SuppressWarnings("CatchingUnchecked") // sneaky checked exception public FactoryMethodReturnValueTester testSerializable() throws Exception { for (Invokable<?, ?> factory : getFactoriesToTest()) { Object instance = instantiate(factory);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
} public void testSetFailure() throws Exception { assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); } public void testSetFailureNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setException(null)); assertFalse(future.isDone()); assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
} // Error case: disconnect throws IOException @Test @DisplayName("disconnect throws IOException when underlying close fails") void disconnect_throwsIOException() throws Exception { doThrow(new java.io.IOException("close error")).when(transport).disconnect(true, true); java.io.IOException ex = assertThrows(java.io.IOException.class, () -> transport.disconnect(true, true));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/misc/AssertionUtilTest.java
import static org.codelibs.core.misc.AssertionUtil.assertState; import static org.hamcrest.CoreMatchers.is; import org.codelibs.core.exception.ClIllegalArgumentException; import org.codelibs.core.exception.ClIllegalStateException; import org.codelibs.core.exception.ClIndexOutOfBoundsException; import org.codelibs.core.exception.NullArgumentException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java
*/ @Rule public ExpectedException exception = ExpectedException.none(); /** * @throws Exception */ @Before public void setUp() throws Exception { TimeZone.setDefault(TimeZone.getTimeZone("GMT")); } /** * @throws Exception */ @After public void tearDown() throws Exception { TimeZone.setDefault(null); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
} abstract boolean isPermitted(Exception exception); void assertPermitted(Exception exception) { if (!isPermitted(exception)) { String message = "Exception " + exception.getClass().getSimpleName() + " was thrown; expected " + getMessage(); throw new AssertionError(message, exception); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
// When SmbException exception = new SmbException(ntStatus, false); // Then assertTrue(exception.getMessage().toLowerCase().contains("sharing") || exception.getMessage().toLowerCase().contains("violation") || exception.getMessage().toLowerCase().contains("used") || exception.getMessage().toLowerCase().contains("being used") || exception.getMessage().toLowerCase().contains("process"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java
assertNull(exception.getMessage()); assertNull(exception.getCause()); } public void test_constructor_withNullMessageAndCause() { // Test constructor with null message and null cause SearchEngineClientException exception = new SearchEngineClientException(null, null); assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0)