Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1121 - 1130 of 1,922 for try (0.04 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java

      public void testContains_nullContained() {
        initMapWithNullValue();
        assertTrue("containsValue(null) should return true", getMap().containsValue(null));
      }
    
      public void testContains_wrongType() {
        try {
          // noinspection SuspiciousMethodCalls
          assertFalse(
              "containsValue(wrongType) should return false or throw",
              getMap().containsValue(WrongType.VALUE));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java

                    throw new IllegalStateException("The super POM " + resource + " was not found"
                            + ", please verify the integrity of your Maven installation");
                }
    
                try {
                    Map<String, Object> options = new HashMap<>(2);
                    options.put("xml:" + version, "xml:" + version);
    
                    String modelId = "org.apache.maven:maven-model-builder:" + version + "-"
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

                    .getActivation()
                    .getFile()
                    .getExists()
                    .contains(BASE_DIR));
        }
    
        private static Model readPom(File file) throws Exception {
            try (InputStream is = Files.newInputStream(file.toPath())) {
                return new MavenStaxReader().read(is);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            }
    
            // 時間取得
            final long time = System.nanoTime();
    
            // Callableタスク(複数)を実行する
            final ExecutorService executor = Executors.newFixedThreadPool(numTasks);
            try {
                final List<Future<Integer>> futures = executor.invokeAll(tasks);
                for (final Future<Integer> future : futures) {
                    future.get();
                }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(STRING, writer.toString());
      }
    
      public void testLines() throws IOException {
        source = new TestCharSource(LINES);
    
        ImmutableList<String> lines;
        try (Stream<String> linesStream = source.lines()) {
          assertTrue(source.wasStreamOpened());
          assertFalse(source.wasStreamClosed());
    
          lines = linesStream.collect(toImmutableList());
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

          assertTrue(startUpCalled);
          assertFalse(runCalled);
          assertFalse(shutDownCalled);
          runCalled = true;
          assertEquals(State.RUNNING, state());
    
          enterRun.countDown();
          try {
            exitRun.await();
          } catch (InterruptedException e) {
            throw new RuntimeException(e);
          }
        }
    
        @Override
        protected void shutDown() {
          assertTrue(startUpCalled);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

            throw new IllegalArgumentException(
                "missing event subscriber for an annotated method. Is " + listener + " registered?");
          }
    
          // don't try to remove the set if it's empty; that can't be done safely without a lock
          // anyway, if the set is empty it'll just be wrapping an array of length 0
        }
      }
    
      @VisibleForTesting
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        }
      }
    
      @SuppressWarnings("rawtypes") // class literals
      protected abstract List<Class<? extends AbstractTester>> getTesters();
    
      private boolean matches(Test test) {
        Method method;
        try {
          method = extractMethod(test);
        } catch (IllegalArgumentException e) {
          logger.finer(Platform.format("%s: including by default: %s", test, e.getMessage()));
          return true;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/jquery-3.7.1.min.js

    S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:07:52 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ```
    
    /// tip
    
    You can use `async` or regular functions.
    
    **FastAPI** will do the right thing with each, the same as with normal dependencies.
    
    ///
    
    ## A dependency with `yield` and `try`
    
    If you use a `try` block in a dependency with `yield`, you'll receive any exception that was thrown when using the dependency.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top