Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 572 for Try (0.08 seconds)

  1. 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)
  2. 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)
  3. guava-tests/test/com/google/common/io/CloserTest.java

        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
    
        IOException exception = new IOException();
    
        try {
          try {
            throw exception;
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        } catch (Throwable caught) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            try {
                ThreadDumpUtil.writeThreadDump(invalidPath);
                // Should not throw exception but log warning
            } catch (Exception e) {
                fail("writeThreadDump should handle invalid paths gracefully: " + e.getMessage());
            }
        }
    
        @Test
        public void test_writeThreadDump_withNullPath() {
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir);
    
            // Write test content to file
            try (FileOutputStream fos = new FileOutputStream(tempFile)) {
                fos.write(testContent.getBytes("UTF-8"));
            }
    
            ContentCache cache = new ContentCache(tempFile);
    
            try (InputStream stream = cache.getInputStream()) {
                assertNotNull(stream);
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        checkNotNull(e);
        Monitor monitor = this.monitor;
        monitor.enterWhen(notFull);
        try {
          insert(e);
        } finally {
          monitor.leave();
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable E poll() {
        Monitor monitor = this.monitor;
        if (monitor.enterIf(notEmpty)) {
          try {
            return extract();
          } finally {
            monitor.leave();
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/io/CloserTest.java

        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
    
        IOException exception = new IOException();
    
        try {
          try {
            throw exception;
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        } catch (Throwable caught) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  8. android/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
    - 26.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java

            String testKey = "test.property";
            String systemValue = "system-value";
            System.setProperty(Constants.FESS_CONFIG_PREFIX + testKey, systemValue);
    
            try {
                // Test that system property takes precedence
                String value = fessConfig.get(testKey);
                assertEquals(systemValue, value);
            } finally {
                // Clean up system property
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            try {
                crawler.sendMail(infoMap);
            } catch (Exception e) {
                fail("Should not throw exception: " + e.getMessage());
            }
        }
    
        @Test
        public void test_sendMail_withEmptyInfoMap() {
            Map<String, String> infoMap = new HashMap<>();
    
            try {
                crawler.sendMail(infoMap);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 30.8K bytes
    - Click Count (0)
Back to Top