- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 158 for cdone (0.13 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
@Override public String pendingToString() { return "cause=[Because this test isn't done]"; } }; assertThat(testFuture.toString()) .matches( "[^\\[]+\\[status=PENDING, info=\\[cause=\\[Because this test isn't done\\]\\]\\]"); TimeoutException e = assertThrows(TimeoutException.class, () -> testFuture.get(1, TimeUnit.NANOSECONDS));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java
// There is no thread interruption in GWT, so there's nothing to do. } static <V> V getDoneFromTimeoutOverload(Future<V> future) throws ExecutionException { checkState(future.isDone(), "Future was expected to be done: %s", future); try { return future.get(0, SECONDS); } catch (InterruptedException e) { throw new AssertionError(); } catch (TimeoutException e) { throw new AssertionError(); } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Nov 26 19:19:13 GMT 2018 - 2.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
MinimalCollection(Class<? super @NonNull E> type, boolean allowNulls, E... contents) { // TODO: consider making it shuffle the contents to test iteration order. this.contents = Platform.clone(contents); this.type = type; this.allowNulls = allowNulls; if (!allowNulls) { for (Object element : contents) { if (element == null) { throw new NullPointerException();
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
import java.nio.ByteOrder; import java.nio.charset.Charset; import java.util.Arrays; /** * Skeleton implementation of {@link HashFunction}, appropriate for non-streaming algorithms. All * the hash computation done using {@linkplain #newHasher()} are delegated to the {@linkplain * #hashBytes(byte[], int, int)} method. * * @author Dimitris Andreou */ @Immutable @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 20 18:43:59 GMT 2021 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
ByteSource fewerBytes = new TestByteSource(newPreFilledByteArray(bytes.length / 2)); assertFalse(source.contentEquals(fewerBytes)); byte[] copy = bytes.clone(); copy[9876] = 1; ByteSource oneByteOff = new TestByteSource(copy); assertFalse(source.contentEquals(oneByteOff)); } public void testSlice() throws IOException { // Test preconditions
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
} }); for (Method method : methods) { if (method.isAnnotationPresent(TestSubtype.class)) { method.setAccessible(true); SubtypeTester tester = (SubtypeTester) clone(); tester.method = method; method.invoke(tester, new Object[] {null}); } } } private Type getOnlyParameterType() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/EquivalenceTester.java
* .addEquivalenceGroup("hello", "h" + "ello") * .addEquivalenceGroup("world", "wor" + "ld") * .test(); * }</pre> * * <p>Note that testing {@link Object#equals(Object)} is more simply done using the {@link * EqualsTester}. It includes an extra test against an instance of an arbitrary class without having * to explicitly add another equivalence group. * * @author Gregory Kick * @since 10.0 */
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java
transitionStates.add(state()); return directExecutor(); } } // Functional tests using real thread. We only verify publicly visible state. // Interaction assertions are done by the single-threaded unit tests. private static class DefaultService extends AbstractIdleService { @Override protected void startUp() throws Exception {} @Override
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 7.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java
* java.util.TreeSet}. * * @see ImmutableSortedSet * @author Hayward Chan */ @ElementTypesAreNonnullByDefault @SuppressWarnings("serial") // Serialization only done in GWT. public abstract class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E> { ImmutableSet() {} public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 8.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
.asList() .containsExactlyElementsIn(asList(expected.getBounds())) .inOrder(); } /** * Working with arrays requires defensive code. Verify that we clone the type array for both input * and output. */ public void testNewParameterizedTypeImmutability() { Type[] typesIn = {String.class, Integer.class};
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 14.8K bytes - Viewed (0)