- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 157 for AssertionError (0.17 seconds)
-
guava-testlib/src/com/google/common/testing/NullPointerTester.java
+ testedClass); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); if (policy.isExpectedType(cause)) { return; } throw new AssertionError( String.format( "wrong exception thrown from %s when passing null to %s parameter at index %s.%n" + "Full parameters: %s%n" + "Actual exception message: %s",Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 25.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
* #entrySet}. */ @Override public ImmutableSet<V> values() { return inverse().keySet(); } @Override final ImmutableSet<V> createValues() { throw new AssertionError("should never be called"); } /** * Guaranteed to throw an exception and leave the bimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 22.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
} else { total += ContiguousSet.create(range, domain).size(); } } throw new AssertionError("impossible"); } return -1; } @Override ImmutableSortedSet<C> createDescendingSet() { return new DescendingImmutableSortedSet<>(this); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
* #entrySet}. */ @Override public ImmutableSet<V> values() { return inverse().keySet(); } @Override final ImmutableSet<V> createValues() { throw new AssertionError("should never be called"); } /** * Guaranteed to throw an exception and leave the bimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 22.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
assertThat(state()).isEqualTo(Service.State.STOPPING); notifyStopped(); } @Override protected void doStop() { throw new AssertionError(); // Should not be called. } }; ServiceManager manager = new ServiceManager(asList(a)); manager.startAsync(); manager.stopAsync(); manager.awaitStopped(10, MILLISECONDS);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 17:49:12 GMT 2025 - 25.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedListMultimap.java
action.accept(node); } } } return new EntriesImpl(); } @Override Iterator<Entry<K, V>> entryIterator() { throw new AssertionError("should never be called"); } @Override Map<K, Collection<V>> createAsMap() { return new Multimaps.AsMap<>(this); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 27K bytes - Click Count (0) -
fastapi/dependencies/utils.py
try: from python_multipart import __version__ # Import an attribute that can be mocked/deleted in testing assert __version__ > "0.0.12" except (ImportError, AssertionError): try: # __version__ is available in both multiparts, and can be mocked from multipart import __version__ # type: ignore[no-redef,import-untyped] assert __version__Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
+ testedClass); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); if (policy.isExpectedType(cause)) { return; } throw new AssertionError( String.format( "wrong exception thrown from %s when passing null to %s parameter at index %s.%n" + "Full parameters: %s%n" + "Actual exception message: %s",Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 24.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
// interpreted in little-endian order. int verification = Integer.reverseBytes(Ints.fromByteArray(result)); if (expected != verification) { throw new AssertionError( "Expected: " + Integer.toHexString(expected) + " got: " + Integer.toHexString(verification)); } } static final Funnel<Object> BAD_FUNNEL =Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 25.6K bytes - Click Count (0) -
guava/src/com/google/common/reflect/TypeResolver.java
return captureAsTypeVariable(wildcardType.getUpperBounds()); } else { // TODO(benyu): handle ? super T somehow. return type; } } throw new AssertionError("must have been one of the known types"); } TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) { String name =
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0)