- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 926 for Try (0.01 seconds)
-
src/test/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelperTest.java
} }); mimeTypeHelper.init(); try (InputStream is = new ByteArrayInputStream(SQL_REM_CONTENT.getBytes(StandardCharsets.UTF_8))) { assertEquals("text/x-sql", mimeTypeHelper.getContentType(is, "test.sql")); } try (InputStream is = new ByteArrayInputStream(SQL_REM_CONTENT.getBytes(StandardCharsets.UTF_8))) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 24 09:06:33 GMT 2026 - 12.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java
// We skip it when container is not initialized try { HtmlTagBasedGenerator generator = new HtmlTagBasedGenerator(); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); File outputFile = File.createTempFile("generator_", ".png"); String imagePath = "thumbnail/600x400.png";Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SuggestHelperTest.java
@Test public void test_init() { SuggestHelper helper = new SuggestHelper(); try { helper.init(); assertNotNull(helper.suggester()); } catch (Exception e) { assertTrue(true); } } @Test public void test_suggester() { try { assertNull(suggestHelper.suggester()); } catch (Exception e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 16.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
// This should not throw exception, just do nothing try { WebApiUtil.setObject("testKey", "testValue"); } catch (Exception e) { fail("setObject should handle missing request gracefully: " + e.getMessage()); } } @Test public void test_setObject_withNullName() { // Test setObject with null name try { WebApiUtil.setObject(null, "testValue");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java
try (RankFusionProcessor processor = new RankFusionProcessor()) { processor.setSearcher(new TestSearcher(100)); processor.init(); final ExecutorService executor = Executors.newFixedThreadPool(2); try { // Thread 1: Perform searches executor.submit(() -> { try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java
assertEquals(0, result.size()); } @Test public void test_buildQuery_emptyKeywords() { try { List<String> keywordList = Collections.emptyList(); List<FilterFunctionBuilder> functionBuilders = new ArrayList<>(); try { keyMatchHelper.buildQuery(keywordList, functionBuilders); } catch (Exception e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
} } /** * Test that try-with-resources handles null InputStream correctly. * Verifies that null InputStream doesn't cause NullPointerException during close. */ @Test public void testTryWithResources_nullInputStreamSafety() { // This test demonstrates that try-with-resources handles null safely try (InputStream is = null) { if (is == null) {Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
try { for (int i = 0; i < iterations; i++) { try { Files.createDirectories(changingFile); Files.createFile(dirToDelete.resolve("j/k")); } catch (FileAlreadyExistsException expected) { // if a file already exists, that's fine... just continue } try { method.delete(dirToDelete);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 27.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java
} @Override public synchronized void insert(final KuromojiItem item) { try (KuromojiUpdater updater = new KuromojiUpdater(item)) { reload(updater); } } @Override public synchronized void update(final KuromojiItem item) { try (KuromojiUpdater updater = new KuromojiUpdater(item)) { reload(updater); } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 11.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Closer.java
* throw closer.rethrow(e); * } finally { * closer.close(); * } * } * * <p>Note that this try-catch-finally block is not equivalent to a try-catch-finally block using * try-with-resources. To get the equivalent of that, you must wrap the above code in <i>another</i> * try block in order to catch any exception that may be thrown (including from the call to {@code * close()}). *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0)