Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 1,808 for Try (0.03 sec)

  1. src/test/java/jcifs/SmbTreeTest.java

         * Verifies that SmbTree can be used in try-with-resources.
         */
        @Test
        void testAutoCloseable() {
            SmbTree autoCloseTree = mock(SmbTree.class);
            doNothing().when(autoCloseTree).close();
    
            try (SmbTree tree = autoCloseTree) {
                assertNotNull(tree, "Tree should not be null in try block");
            }
    
            verify(autoCloseTree).close();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            // Setup mock SearchLogHelper that throws wrapped checked exception
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    try {
                        throw new Exception("Checked exception");
                    } catch (Exception e) {
                        throw new RuntimeException("Wrapped: " + e.getMessage(), e);
                    }
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

                tempOutputFile.delete();
            }
            if (tempDir != null) {
                Files.walk(tempDir).sorted((a, b) -> b.compareTo(a)).forEach(path -> {
                    try {
                        Files.delete(path);
                    } catch (IOException e) {
                        // Ignore cleanup errors
                    }
                });
            }
            super.tearDown();
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

         * @return The parameter value, or the default value if not found.
         */
        protected <T> T getInitParameter(final String key, final T defaultValue, final Class<T> clazz) {
            if (initParamMap != null) {
                try {
                    final Object paramValue = initParamMap.get(key);
                    if (paramValue == null) {
                        return defaultValue;
                    }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            ByteArrayOutputStream collector = new ByteArrayOutputStream();
            ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
            try {
                DERTaggedObject applicationWrapper = new DERTaggedObject(false, BERTags.APPLICATION, outerTagNo, new DERSequence(ev));
                der.writeObject(applicationWrapper);
            } finally {
                der.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

         */
        public static List<String> getKeywords(final String q, final String[] fields) {
            final List<String> keywords = new ArrayList<>();
            final List<TermQuery> termQueryList;
            try {
                final StandardQueryParser parser = new StandardQueryParser();
                parser.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/AddressPolicy.kt

    /**
     * A policy for how the pool should treat a specific address.
     */
    class AddressPolicy(
      /**
       * How many concurrent calls should be possible to make at any time.
       * The pool will routinely try to pre-emptively open connections to satisfy this minimum.
       * Connections will still be closed if they idle beyond the keep-alive but will be replaced.
       */
      @JvmField val minimumConcurrentCalls: Int = 0,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/mylasta/action/FessMessagesTest.java

        public void test_addErrorsFrontHeader_nullProperty() {
            try {
                messages.addErrorsFrontHeader(null);
                fail("Should throw exception for null property");
            } catch (IllegalArgumentException e) {
                // Expected
            }
        }
    
        public void test_addConstraintsDecimalMaxMessage_nullProperty() {
            try {
                messages.addConstraintsDecimalMaxMessage(null, "100");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            };
    
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("http://example.com/");
            responseData.addMetaData("X-Robots-Tag", "noindex,nofollow");
    
            try {
                transformer.processXRobotsTag(responseData, new ResultData());
                fail();
            } catch (ChildUrlsException e) {
                assertTrue(e.getChildUrlList().isEmpty());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 41.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt

        val ready = CountDownLatch(2)
        val waiting = CountDownLatch(1)
        client =
          client
            .newBuilder()
            .addInterceptor(
              Interceptor { chain: Interceptor.Chain? ->
                try {
                  ready.countDown()
                  waiting.await()
                } catch (e: InterruptedException) {
                  throw AssertionError()
                }
                throw IOException()
              },
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top