- Sort Score
- Result 10 results
- Languages All
Results 601 - 610 of 1,456 for created (0.12 sec)
-
AbstractFutureTest.java
) throws Exception { L211: // Two futures should not have the same toString, to avoid people asserting on it L212: assertThat(SettableFuture.create().toString()).isNotEqualTo(SettableFuture.create().toString()); L213: } L214: L215: public void testToString_oom() throws Exception { L216: SettableFuture<Object> future = SettableFuture.create(); L217: future.set( L218: new Object() { L219: @Override L220: public String toString() { L221: throw new OutOfMemoryError();...github.com/google/guava/android/guava-tests/tes...Fri Oct 18 22:10:29 UTC 2024 47.1K bytes -
SubscriberTest.java
int.class); L90: Method concat = String.class.getMethod("concat", String.class); L91: new EqualsTester() L92: .addEqualityGroup( L93: Subscriber.create(bus, "foo", charAt), Subscriber.create(bus, "foo", charAt)) L94: .addEqualityGroup(Subscriber.create(bus, "bar", charAt)) L95: .addEqualityGroup(Subscriber.create(bus, "foo", concat)) L96: .testEquals(); L97: } L98: L99: private Method getTestSubscriberMethod(String name) { L100: try { L101: return getC...github.com/google/guava/android/guava-tests/tes...Wed Sep 06 17:04:31 UTC 2023 4.8K bytes -
TreeMultisetTest.java
TestSuite(); L59: suite.addTest( L60: SortedMultisetTestSuiteBuilder.using( L61: new TestStringMultisetGenerator() { L62: @Override L63: protected Multiset<String> create(String[] elements) { L64: return TreeMultiset.create(asList(elements)); L65: } L66: L67: @Override L68: public List<String> order(List<String> insertionOrder) { L69: return Ordering.natural().s...github.com/google/guava/android/guava-tests/tes...Sat Oct 19 00:05:46 UTC 2024 12.9K bytes -
TestsForSetsInJavaUtil.java
emptySet(); L163: } L164: L165: public Test testsForCheckedNavigableSet() { L166: return SortedSetTestSuiteBuilder.using( L167: new TestStringSortedSetGenerator() { L168: @Override L169: public NavigableSet<String> create(String[] elements) { L170: NavigableSet<String> innerSet = new TreeSet<>(); L171: Collections.addAll(innerSet, elements); L172: return Collections.checkedNavigableSet(innerSet, String.class); L173: ...github.com/google/guava/guava-testlib/src/com/g...Wed Oct 30 16:15:19 UTC 2024 19.8K bytes -
UnmodifiableListIteratorTest.java
@SuppressWarnings("DoNotCall") L36: public void testRemove() { L37: Iterator<String> iterator = create(); L38: L39: assertTrue(iterator.hasNext()); L40: assertEquals("a", iterator.next()); L41: assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); L42: } L43: L44: @SuppressWarnings("DoNotCall") L45: public void testAdd() { L46: ListIterator<String> iterator = create(); L47: L48: assertTrue(iterator.hasNext()); L49: assertEquals("a", iterator.next()); L50:...github.com/google/guava/android/guava-tests/tes...Tue Oct 15 17:36:06 UTC 2024 2.8K bytes -
HashBiMapTest.java
L45:public class HashBiMapTest extends TestCase { L46: L47: public static final class HashBiMapGenerator extends TestStringBiMapGenerator { L48: @Override L49: protected BiMap<String, String> create(Entry<String, String>[] entries) { L50: BiMap<String, String> result = HashBiMap.create(); L51: for (Entry<String, String> entry : entries) { L52: result.put(entry.getKey(), entry.getValue()); L53: } L54: return result; L55: } L56: } L57: L58: @J2ktIncompatible...github.com/google/guava/guava-tests/test/com/go...Sat Oct 19 00:05:46 UTC 2024 8.3K bytes -
RateLimiterTest.java
public void testCreateWarmupParameterValidation() { L142: RateLimiter unused; L143: unused = RateLimiter.create(1.0, 1, NANOSECONDS); L144: unused = RateLimiter.create(1.0, 0, NANOSECONDS); L145: L146: assertThrows(IllegalArgumentException.class, () -> RateLimiter.create(0.0, 1, NANOSECONDS)); L147: L148: assertThrows(IllegalArgumentException.class, () -> RateLimiter.create(1.0, -1, NANOSECONDS)); L149: } L150: L151: @AndroidIncompatible // difference in String.format rounding? L152:...github.com/google/guava/android/guava-tests/tes...Mon Oct 21 14:28:19 UTC 2024 21.8K bytes -
RateLimiterTest.java
public void testCreateWarmupParameterValidation() { L142: RateLimiter unused; L143: unused = RateLimiter.create(1.0, 1, NANOSECONDS); L144: unused = RateLimiter.create(1.0, 0, NANOSECONDS); L145: L146: assertThrows(IllegalArgumentException.class, () -> RateLimiter.create(0.0, 1, NANOSECONDS)); L147: L148: assertThrows(IllegalArgumentException.class, () -> RateLimiter.create(1.0, -1, NANOSECONDS)); L149: } L150: L151: @AndroidIncompatible // difference in String.format rounding? L152:...github.com/google/guava/guava-tests/test/com/go...Mon Oct 21 14:28:19 UTC 2024 21.8K bytes -
UncheckedExecutionException.java
rNull String message) { L73: super(message); L74: } L75: L76: /** L77: * Creates a new instance with the given detail message and cause. Prefer to provide a L78: * non-nullable {@code cause}, as many users expect to find one. L79: */ L80: public UncheckedExecutionException(@CheckForNull String message, @CheckForNull Throwable cause) { L81: super(message, cause); L82: } L83: L84: /** L85: * Creates a new instance with {@code null} as its detail message and the given cause. Prefer...github.com/google/guava/guava/src/com/google/co...Thu Mar 07 17:52:19 UTC 2024 4.1K bytes -
ImmutableMultisetFloodingTest.java
@Override L45: public ImmutableMultiset<Object> create(List<?> keys) { L46: return ImmutableMultiset.copyOf(keys); L47: } L48: }, L49: COPY_OF_ITERATOR { L50: @Override L51: public ImmutableMultiset<Object> create(List<?> keys) { L52: return ImmutableMultiset.copyOf(keys.iterator()); L53: } L54: }, L55: BUILDER_ADD_ENTRY_BY_ENTRY { L56: @Override L57: public ImmutableMultiset<Object> create(List<?> keys) { L58: ImmutableMultiset.Builder<Object>...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 2.4K bytes