- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 187 for RuntimeException (1.68 sec)
-
src/test/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResultTest.java
SuggestWriterResult result = new SuggestWriterResult(); result.addFailure(new Exception("Exception")); result.addFailure(new RuntimeException("RuntimeException")); result.addFailure(new IllegalStateException("IllegalStateException")); result.addFailure(new NullPointerException("NullPointerException"));
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Nov 13 00:40:54 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
void testCircuitOpensAfterThreshold() { // Fail 3 times to open the circuit for (int i = 0; i < 3; i++) { try { circuitBreaker.call(() -> { throw new RuntimeException("Test failure"); }); } catch (Exception e) { // Expected } } assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
try { CountDownLatch latch = new CountDownLatch(1); RuntimeException expected = assertThrows(RuntimeException.class, () -> GcFinalization.await(latch)); assertWrapsInterruptedException(expected); } finally { interruptenator.shutdown(); Thread.interrupted(); } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
}); // Test with runtime exception RuntimeException runtimeException = new IllegalArgumentException("Illegal arg"); assertDoesNotThrow(() -> { RuntimeCIFSException exception = new RuntimeCIFSException(runtimeException); assertEquals(runtimeException, exception.getCause()); }); // Test with errorRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
int expectedLength = (Math.min(65536, 65536) - Smb2QueryInfoResponse.OVERHEAD) & ~0x7; assertEquals(expectedLength, actualOutputBufferLength); } catch (Exception e) { throw new RuntimeException(e); } } @Test @DisplayName("Test constructor with Configuration and FileId") void testConstructorWithConfigAndFileId() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
try { CountDownLatch latch = new CountDownLatch(1); RuntimeException expected = assertThrows(RuntimeException.class, () -> GcFinalization.await(latch)); assertWrapsInterruptedException(expected); } finally { interruptenator.shutdown(); Thread.interrupted(); } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
// Create a root cause exception RuntimeException rootCause = new RuntimeException("Root cause error"); TransportException exception = new TransportException(rootCause); // Verify the exception has the correct cause assertNotNull(exception); assertEquals(rootCause, exception.getCause()); assertEquals("java.lang.RuntimeException: Root cause error", exception.getMessage());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
byte[] actualFileId = (byte[]) fileIdField.get(request); assertArrayEquals(expectedFileId, actualFileId); } catch (Exception e) { throw new RuntimeException(e); } } @Test @DisplayName("Test constructor with Configuration and FileId") void testConstructorWithConfigAndFileId() { request = new Smb2SetInfoRequest(mockConfig, testFileId);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom"))); // Act & Assert: the exception is propagated and interaction recorded once RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause()); assertEquals("boom", thrown.getCause().getMessage());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0)