Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 202 for AssertionError (0.18 sec)

  1. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      barrier.await();
                    } catch (Exception e) {
                      throw new AssertionError(e);
                    }
    
                    dispatcher.dispatch(2, integerSubscribers.iterator());
                    latch.countDown();
                  }
                })
            .start();
    
        new Thread(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        private DummyInternalEntry() {
          throw new AssertionError();
        }
    
        @Override
        public DummyInternalEntry getNext() {
          throw new AssertionError();
        }
    
        @Override
        public int getHash() {
          throw new AssertionError();
        }
    
        @Override
        public Object getKey() {
          throw new AssertionError();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      barrier.await();
                    } catch (Exception e) {
                      throw new AssertionError(e);
                    }
    
                    dispatcher.dispatch(2, integerSubscribers.iterator());
                    latch.countDown();
                  }
                })
            .start();
    
        new Thread(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/QueuesTest.java

        // nothing to drain, thus this should wait doing nothing
        try {
          assertEquals(0, Queues.drain(q, ImmutableList.of(), 0, 10, MILLISECONDS));
        } catch (InterruptedException e) {
          throw new AssertionError();
        }
    
        // but does the wait actually occurs?
        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      public UnmodifiableIterator<E> descendingIterator() {
        return forward.iterator();
      }
    
      @Override
      @GwtIncompatible("NavigableSet")
      ImmutableSortedSet<E> createDescendingSet() {
        throw new AssertionError("should never be called");
      }
    
      @Override
      @CheckForNull
      public E lower(E element) {
        return forward.higher(element);
      }
    
      @Override
      @CheckForNull
      public E floor(E element) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/IntMath.java

            // floor(2^(logFloor + 0.5))
            int logFloor = (Integer.SIZE - 1) - leadingZeros;
            return logFloor + lessThanBranchFree(cmp, x);
    
          default:
            throw new AssertionError();
        }
      }
    
      /** The biggest half power of two that can fit in an unsigned int. */
      @VisibleForTesting static final int MAX_POWER_OF_SQRT2_UNSIGNED = 0xB504F333;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTesterTest.java

     * @author Ben Yu
     */
    public class ForwardingObjectTesterTest extends TestCase {
    
      public void testFailsToForward() {
        try {
          ForwardingObjectTester.testForwardingObject(FailToForward.class);
        } catch (AssertionError | UnsupportedOperationException expected) {
          // UnsupportedOperationException is what we see on Android.
          return;
        }
        fail("Should have thrown");
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/JoinerTest.java

        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, set.iterator());
        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, array);
        } catch (IOException e) {
          throw new AssertionError(e);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        }
    
        private static Method subscriberMethod() {
          try {
            return DummySubscriber.class.getMethod("handle", Object.class);
          } catch (NoSuchMethodException e) {
            throw new AssertionError(e);
          }
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 1.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/EnumsTest.java

              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
            AssertionError error = new AssertionError("malformed class path entry: " + entry);
            error.initCause(e);
            throw error;
          }
        }
        return urls.build();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
Back to top