- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 267 for correctly (0.24 sec)
-
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
} /* * This is somewhat of a weak test; we verify that all of the methods are * correct, but not that they're actually forwarding correctly. We also rely * on the other tests (e.g., SynchronizedSetTest) to verify that the * collection views are synchronized correctly. */ public void testSize() { int unused = create().size(); } public void testIsEmpty() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
} finally { executor.shutdownNow(); } assertTrue(future.isDone()); assertFalse(future.isCancelled()); } /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */ public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException { // The task thread waits for the latch, so we expect a timeout here. try { future.get(20, MILLISECONDS);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 18:30:30 GMT 2023 - 6K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
assertThat(network.outEdges(N1)).containsExactly(E12); // Edge direction handled correctly assertThat(network.outEdges(N2)).isEmpty(); } @Test public void predecessors_oneEdge() { addEdge(N1, N2, E12); assertThat(network.predecessors(N2)).containsExactly(N1); // Edge direction handled correctly assertThat(network.predecessors(N1)).isEmpty(); } @Test
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/outside/AbstractEventBusTest.java
/** * Abstract base class for tests that EventBus finds the correct subscribers. * * <p>The actual tests are distributed among the other classes in this package based on whether they * are annotated or abstract in the superclass. * * <p>This test must be outside the c.g.c.eventbus package to test correctly. * * @author Louis Wasserman */ abstract class AbstractEventBusTest<H> extends TestCase {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 17 15:19:38 GMT 2023 - 1.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLong.java
return value; } /** * Returns the value of this {@code UnsignedLong} as a {@code float}, analogous to a widening * primitive conversion from {@code long} to {@code float}, and correctly rounded. */ @Override public float floatValue() { if (value >= 0) { return (float) value; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 22 13:09:25 GMT 2021 - 8.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Derived.java
* limitations under the License. */ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; /** Simple derived class to verify that we handle generics correctly. */ @GwtCompatible class Derived extends Base { public Derived(String s) { super(s); } private static final long serialVersionUID = 0;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 22:29:45 GMT 2023 - 908 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/Derived.java
* limitations under the License. */ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; /** Simple derived class to verify that we handle generics correctly. */ @GwtCompatible class Derived extends Base { public Derived(String s) { super(s); } private static final long serialVersionUID = 0;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Oct 03 22:29:45 GMT 2023 - 908 bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Base.java
import com.google.common.annotations.GwtCompatible; import java.io.Serializable; import org.checkerframework.checker.nullness.qual.Nullable; /** Simple base class to verify that we handle generics correctly. */ @GwtCompatible class Base implements Comparable<Base>, Serializable { private final String s; public Base(String s) { this.s = s; } @Override public int hashCode() { // delegate to 's'
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 22:29:45 GMT 2023 - 1.4K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/UnicodeEscaper.java
* when it encounters surrogate pairs. This class facilitates the correct escaping of all Unicode * characters. * * <p>As there are important reasons, including potential security issues, to handle Unicode * correctly if you are considering implementing a new escaper you should favor using UnicodeEscaper * wherever possible. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 13.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HostSpecifierTest.java
tester.testAllPublicInstanceMethods(HostSpecifier.fromValid("google.com")); } private void assertGood(String spec) throws ParseException { // Throws exception if not working correctly HostSpecifier unused = HostSpecifier.fromValid(spec); unused = HostSpecifier.from(spec); assertTrue(HostSpecifier.isValid(spec)); } private void assertBad(String spec) { try {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Feb 18 15:33:20 GMT 2022 - 3.7K bytes - Viewed (0)