- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 364 for RuntimeException (0.07 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java
factory.setOnDestroyListener(new OnDestroyListener<TestComponent>() { @Override public void onDestroy(PooledObject<TestComponent> p) { throw new RuntimeException("Test exception in listener"); } }); try { factory.destroyObject(pooledObject); fail("Should propagate exception from listener");Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
ComponentUtil.register(new WebConfigService() { @Override public OptionalEntity<WebConfig> getWebConfig(final String id) { throw new RuntimeException("Test exception"); } @Override public OptionalEntity<WebConfig> getWebConfigByName(String name) { return OptionalEntity.empty(); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 34.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
assertFalse(testBlock.isReceived()); } @Test @DisplayName("Test exception state") void testExceptionState() { Exception testException = new RuntimeException("Test error"); assertNull(testBlock.getException()); testBlock.exception(testException); assertEquals(testException, testBlock.getException()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLanManCompatibility()).thenReturn(3); when(mockTransport.getServerEncryptionKey()).thenThrow(new RuntimeException("Test exception")); assertThrows(SmbException.class, () -> new SMB1SigningDigest(mockTransport, mockAuth)); } @Test @DisplayName("Test update method with valid data")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/Config.java
public static void registerSmbURLHandler() { String ver, pkgs; ver = System.getProperty("java.version"); if (ver.startsWith("1.1.") || ver.startsWith("1.2.")) { throw new RuntimeException("jcifs.smb1-0.7.0b4+ requires Java 1.3 or above. You are running " + ver); } pkgs = System.getProperty("java.protocol.handler.pkgs"); if (pkgs == null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); // Use doThrow for unchecked exception wrapping the CIFSException doThrow(new RuntimeException(new CIFSException("session fail"))).when(tree).getSession(); Exception ex = assertThrows(Exception.class, handle::getSessionKey); assertTrue(
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
throws InvocationTargetException, IllegalAccessException { try { return constructor.newInstance(args); } catch (InstantiationException e) { throw new RuntimeException(constructor + " failed.", e); } } /** * If the class is parameterized, such as {@link java.util.ArrayList ArrayList}, this returns * {@code ArrayList<E>}. */Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 18.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
private V load(K key) throws ExecutionException { long startTime = ticker.read(); V calculatedValue; try { calculatedValue = loader.load(key); put(key, calculatedValue); } catch (RuntimeException e) { statsCounter.recordLoadException(ticker.read() - startTime); throw new UncheckedExecutionException(e); } catch (Exception e) { statsCounter.recordLoadException(ticker.read() - startTime);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java
*/ protected ExtractData getExtractData(final Extractor extractor, final InputStream in, final Map<String, String> params) { try { return extractor.getText(in, params); } catch (final RuntimeException e) { if (!fessConfig.isCrawlerIgnoreContentException()) { throw e; } if (logger.isDebugEnabled()) { logger.debug("Could not get a text.", e);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 25.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
public static final WithExceptionalConstructor INSTANCE = new WithExceptionalConstructor("whatever"); public WithExceptionalConstructor() { throw new RuntimeException(); } private WithExceptionalConstructor(String unused) {} } private static class WithPublicConstant { @Keep public static final WithPublicConstant INSTANCE = new WithPublicConstant();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 22.3K bytes - Viewed (0)