Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Yu (0.13 sec)

  1. android/guava-tests/test/com/google/common/reflect/TypeParameterTest.java

    import com.google.common.testing.NullPointerTester;
    import java.lang.reflect.Method;
    import java.lang.reflect.TypeVariable;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link TypeParameter}.
     *
     * @author Ben Yu
     */
    public class TypeParameterTest extends TestCase {
    
      public <T> void testCaptureTypeParameter() throws Exception {
        TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable;
        TypeVariable<?> expected =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/DefaultsTest.java

     */
    
    package com.google.common.base;
    
    import com.google.common.annotations.GwtIncompatible;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Defaults}.
     *
     * @author Jige Yu
     */
    @GwtIncompatible
    public class DefaultsTest extends TestCase {
      public void testGetDefaultValue() {
        assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

    import java.util.concurrent.TimeUnit;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link FakeTicker}.
     *
     * @author Jige Yu
     */
    @GwtCompatible(emulated = true)
    public class FakeTickerTest extends TestCase {
    
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

     *
     * <p>The ticker can be configured so that the time is incremented whenever {@link #read} is called:
     * see {@link #setAutoIncrementStep}.
     *
     * <p>This class is thread-safe.
     *
     * @author Jige Yu
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible
    public class FakeTicker extends Ticker {
    
      private final AtomicLong nanos = new AtomicLong();
      private volatile long autoIncrementStepNanos;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

    import java.util.concurrent.TimeUnit;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link FakeTicker}.
     *
     * @author Jige Yu
     */
    @GwtCompatible(emulated = true)
    public class FakeTickerTest extends TestCase {
    
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

     * <pre>{@code
     * new ForwardingWrapperTester().testForwarding(Foo.class, new Function<Foo, Foo>() {
     *   public Foo apply(Foo foo) {
     *     return new ForwardingFoo(foo);
     *   }
     * });
     * }</pre>
     *
     * @author Ben Yu
     * @since 14.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ForwardingWrapperTester {
    
      private boolean testsEquals = false;
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

     * <pre>{@code
     * new ForwardingWrapperTester().testForwarding(Foo.class, new Function<Foo, Foo>() {
     *   public Foo apply(Foo foo) {
     *     return new ForwardingFoo(foo);
     *   }
     * });
     * }</pre>
     *
     * @author Ben Yu
     * @since 14.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ForwardingWrapperTester {
    
      private boolean testsEquals = false;
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/EquivalenceTest.java

    import com.google.common.testing.SerializableTester;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link Equivalence}.
     *
     * @author Jige Yu
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class EquivalenceTest extends TestCase {
      public void testPairwiseEquivalent() {
        EquivalenceTester.of(Equivalence.equals().<String>pairwise())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link AbstractIdleService}.
     *
     * @author Chris Nokleberg
     * @author Ben Yu
     */
    public class AbstractIdleServiceTest extends TestCase {
      public void testStart() {
        TestService service = new TestService();
        assertEquals(0, service.startUpCalled);
        service.startAsync().awaitRunning();
    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)
  10. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

    import java.util.Map.Entry;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Unit test for {@link ImmutableTypeToInstanceMap}.
     *
     * @author Ben Yu
     */
    public class ImmutableTypeToInstanceMapTest extends TestCase {
    
      @AndroidIncompatible // problem with suite builders on Android
      public static Test suite() {
        TestSuite suite = new TestSuite();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
Back to top