- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,808 for try (0.02 sec)
-
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
TrustedListenableFutureTask.create( new Callable<Integer>() { @Override public Integer call() throws Exception { enterLatch.countDown(); try { new CountDownLatch(1).await(); // wait forever throw new AssertionError(); } catch (InterruptedException e) { interruptedExceptionThrown.set(true);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
// Basic generate tests that work without component dependencies public void test_generate_outputFile_exists() throws Exception { final File outputFile = File.createTempFile("command_generator", ".out"); try { assertTrue(outputFile.exists()); generator.setCommandList(Collections.singletonList("invalid_command_for_test")); assertTrue(generator.generate("test_id", outputFile)); } finally {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 16.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java
} @Override public synchronized void insert(final SynonymItem item) { try (SynonymUpdater updater = new SynonymUpdater(item)) { reload(updater); } } @Override public synchronized void update(final SynonymItem item) { try (SynonymUpdater updater = new SynonymUpdater(item)) { reload(updater); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 15.5K bytes - Viewed (0) -
guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java
static void verifyGetOnPendingFuture(Future<?> future) { try { future.get(); fail(); } catch (Exception e) { assertThat(e).isInstanceOf(IllegalStateException.class); assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future."); } } static void verifyTimedGetOnPendingFuture(Future<?> future) { try { future.get(0, SECONDS); fail();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java
private static void joinUninterruptibly(Thread thread, long timeout, TimeUnit unit) { boolean interrupted = false; try { long remainingNanos = unit.toNanos(timeout); long end = System.nanoTime() + remainingNanos; while (true) { try { // TimeUnit.timedJoin() treats negative timeouts just like zero. NANOSECONDS.timedJoin(thread, remainingNanos);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/settings/BadWordSettingsTest.java
public void test_validation() { try { settings.badword().add("aaaa"); assertTrue(true); } catch (IllegalArgumentException e) { fail(); } try { settings.badword().add(""); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } try { settings.badword().add("aaaa bbb");
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java
} } // Helper method to get TimeZoneProvider from DBFluteSystem using reflection private DfFinalTimeZoneProvider getDBFluteSystemTimeZoneProvider() { try { // Try to access the field, handling potential security restrictions Field field = DBFluteSystem.class.getDeclaredField("finalTimeZoneProvider"); field.setAccessible(true);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java
public void test_rethrowWithWrapping() { // Test rethrowing with wrapping String originalMessage = "Original theme error"; String wrapperMessage = "Failed to process theme"; try { try { throw new ThemeException(originalMessage); } catch (ThemeException e) { throw new ThemeException(wrapperMessage, e); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutManager.java
executorService.shutdownNow(); } } } private void processTask(final ExecutorService executorService, final TimeoutTask task) { try { executorService.execute(() -> { try { task.expired(); } catch (final Exception e) { if (e instanceof InterruptedException) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 7.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 7.2K bytes - Viewed (0)