Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for AssertionError (0.15 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

      @Override
      public int count(@Nullable Object element) {
        throw new AssertionError();
      }
    
      @Override
      public ImmutableSet<E> elementSet() {
        throw new AssertionError();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        throw new AssertionError();
      }
    
      @Override
      boolean isPartialView() {
        throw new AssertionError();
      }
    
      @Override
      public int size() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteStreams.java

          try {
            output.write(b);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void write(byte[] b) {
          try {
            output.write(b);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void write(byte[] b, int off, int len) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

              @Override
              public Integer computeNext() {
                if (haveBeenCalled) {
                  throw new AssertionError("Should not have been called again");
                } else {
                  haveBeenCalled = true;
                  sneakyThrow(new SomeCheckedException());
                  throw new AssertionError(); // unreachable
                }
              }
            };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Cut.java

            BoundType boundType, DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
        void describeAsLowerBound(StringBuilder sb) {
          sb.append("(-\u221e");
        }
    
        @Override
        void describeAsUpperBound(StringBuilder sb) {
          throw new AssertionError();
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

              @Override
              public Integer computeNext() {
                if (haveBeenCalled) {
                  throw new AssertionError("Should not have been called again");
                } else {
                  haveBeenCalled = true;
                  sneakyThrow(new SomeCheckedException());
                  throw new AssertionError(); // unreachable
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java

              @Override
              public Integer computeNext() {
                if (haveBeenCalled) {
                  throw new AssertionError("Should not have been called again");
                } else {
                  haveBeenCalled = true;
                  sneakyThrow(new SomeCheckedException());
                  throw new AssertionError(); // unreachable
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

            break;
          case LAST_BEFORE:
            if (list.contains(key)) {
              assertEquals(list.indexOf(key) - 1, answer);
              return;
            }
            break;
          default:
            throw new AssertionError();
        }
        // key is not present
        int nextHigherIndex = list.size();
        for (int i = list.size() - 1; i >= 0 && list.get(i) > key; i--) {
          nextHigherIndex = i;
        }
        switch (absentBehavior) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

            }
          }
        };
      }
    
      /** Alternative to AssertionError(String, Throwable), which doesn't exist in Java 1.6 */
      private static AssertionError newAssertionError(String message, Throwable cause) {
        AssertionError e = new AssertionError(message);
        e.initCause(cause);
        return e;
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

          future.cancel(true /* mayInterruptIfRunning */);
          throw e;
        } catch (ExecutionException e) {
          wrapAndThrowExecutionExceptionOrError(e.getCause());
          throw new AssertionError();
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public <T extends @Nullable Object> T callUninterruptiblyWithTimeout(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      // 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
                public void fail(AssertionError failure) {
                  failures.add(failure);
                }
              });
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top