Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 240 for error (0.14 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        }
      }
    
      public void testTransformAsync_asyncFunction_error() throws InterruptedException {
        final Error error = new Error("deliberate");
        AsyncFunction<String, Integer> function =
            new AsyncFunction<String, Integer>() {
              @Override
              public ListenableFuture<Integer> apply(String input) {
                throw error;
              }
            };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

        assertEquals(RUNTIME_EXCEPTION, expected);
      }
    
      public void testGetCheckedUntimed_Error() throws TwoArgConstructorException {
        try {
          getChecked(ERROR_FUTURE, TwoArgConstructorException.class);
        } catch (Error expected) {
          assertEquals(ERROR, expected);
          return;
        }
        fail();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CollectPreconditions.java

          throw new IllegalArgumentException(name + " must be positive but was: " + value);
        }
      }
    
      /**
       * Precondition tester for {@code Iterator.remove()} that throws an exception with a consistent
       * error message.
       */
      static void checkRemove(boolean canRemove) {
        checkState(canRemove, "no calls to next() since the last call to remove()");
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Jun 30 10:33:07 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CollectPreconditions.java

          throw new IllegalArgumentException(name + " must be positive but was: " + value);
        }
      }
    
      /**
       * Precondition tester for {@code Iterator.remove()} that throws an exception with a consistent
       * error message.
       */
      static void checkRemove(boolean canRemove) {
        checkState(canRemove, "no calls to next() since the last call to remove()");
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Jun 30 10:33:07 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java

        listener.assertException(EXCEPTION);
      }
    
      public void testFutureGetThrowsWrappedError() throws Exception {
        Error error = new Error();
        inputFuture.setException(error);
        // Verify that get throws an ExecutionException, caused by an Error, when
        // the callback is called.
        listener.assertException(error);
      }
    
      public void testAddListenerAfterCallback() throws Throwable {
        inputFuture.set(VALID_INPUT_DATA);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be Object#equals to", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testClassWhichIsAlwaysEqualButHasDifferentHashcodes() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsTesting.java

          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
          assertThat(actualStats.populationVariance()).isWithin(0.0).of(0.0);
          assertThat(actualStats.min()).isWithin(ALLOWED_ERROR).of(expectedStats.min());
          assertThat(actualStats.max()).isWithin(ALLOWED_ERROR).of(expectedStats.max());
        } else {
          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

                IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N4, N5, E12));
        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
        e = assertThrows(IllegalArgumentException.class, () -> addEdge(N2, N1, E12));
        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
      }
    
      @Test
      public void addEdge_parallelEdge_notAllowed() {
        assume().that(graphIsMutable()).isTrue();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/PairedStats.java

       * data, and vertical if there is variance in the {@code y} data but not the {@code x} data.
       *
       * <p>This fit minimizes the root-mean-square error in {@code y} as a function of {@code x}. This
       * error is defined as the square root of the mean of the squares of the differences between the
       * actual {@code y} values of the data and the values predicted by the fit for the {@code x}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           */
          log(throwable);
        }
      }
    
      private static void log(Throwable throwable) {
        String message =
            (throwable instanceof Error)
                ? "Input Future failed with Error"
                : "Got more than one input Future failure. Logging failures after the first";
        logger.get().log(SEVERE, message, throwable);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top