Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,828 for expect (0.16 sec)

  1. guava-tests/test/com/google/common/base/ThrowablesTest.java

                  throw Throwables.propagate(t);
                }
              }
            };
    
        // Expect the undeclared exception to have been chained inside another
        RuntimeException expected = assertThrows(RuntimeException.class, () -> sample.noneDeclared());
        assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

                  throw Throwables.propagate(t);
                }
              }
            };
    
        // Expect the undeclared exception to have been chained inside another
        RuntimeException expected = assertThrows(RuntimeException.class, () -> sample.noneDeclared());
        assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

       * non-nullable {@code cause}, as many users expect to find one.
       */
      public ExecutionError(@CheckForNull String message, @CheckForNull Error cause) {
        super(message, cause);
      }
    
      /**
       * Creates a new instance with {@code null} as its detail message and the given cause. Prefer to
       * provide a non-nullable {@code cause}, as many users expect to find one.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

         *   available.
         * 3. We expect the client's get() to throw an InterruptedException.
         * 4. We expect the client thread's interrupt state to be false.
         * 5. The client thread again makes a blocking call to get().
         * 6. Now the result becomes available.
         * 7. We expect get() to return this result.
         * 8. We expect the test thread's interrupt state to be false.
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

       * href="#bitEquals">bitwise equal</a> to the expected value.
       *
       * @param expect the expected value
       * @param update the new value
       * @return {@code true} if successful. False return indicates that the actual value was not
       *     bitwise equal to the expected value.
       */
      public final boolean compareAndSet(double expect, double update) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 28 21:00:54 GMT 2022
    - 7.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeParameter.java

    /*
     * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable
     * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which
     * wouldn't behave as users might expect. Additionally, it's not clear how the TypeToken API could
     * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

      public void testMap() {
        SpliteratorTester.of(
                () ->
                    CollectSpliterators.map(
                        Arrays.spliterator(new String[] {"a", "b", "c", "d", "e"}), Ascii::toUpperCase))
            .expect("A", "B", "C", "D", "E");
      }
    
      public void testFlatMap() {
        SpliteratorTester.of(
                () ->
                    CollectSpliterators.flatMap(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

     * {@link ClosingFuture} pipeline.
     */
    public abstract class AbstractClosingFutureTest extends TestCase {
      // TODO(dpb): Use Expect once that supports JUnit 3, or we can use JUnit 4.
      final List<AssertionError> failures = new ArrayList<>();
      final StandardSubjectBuilder expect =
          StandardSubjectBuilder.forCustomFailureStrategy(
              new FailureStrategy() {
                @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       * value is <a href="#bitEquals">bitwise equal</a> to the expected value.
       *
       * @param i the index
       * @param expect the expected value
       * @param update the new value
       * @return true if successful. False return indicates that the actual value was not equal to the
       *     expected value.
       */
      public final boolean compareAndSet(int i, double expect, double update) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FlushablesTest.java

        // make sure that no exception is thrown by flushQuietly when the mock does
        // throw an exception on flush.
        setupFlushable(true);
        Flushables.flushQuietly(mockFlushable);
      }
    
      // Set up a flushable to expect to be flushed, and optionally to
      // throw an exception.
      private void setupFlushable(boolean shouldThrowOnFlush) throws IOException {
        mockFlushable = mock(Flushable.class);
        if (shouldThrowOnFlush) {
          doThrow(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
Back to top