Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 2,185 for test0 (0.04 sec)

  1. mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt

    import mockwebserver3.MockWebServer
    import okhttp3.ExperimentalOkHttpApi
    import org.junit.rules.ExternalResource
    
    /**
     * Runs MockWebServer for the duration of a single test method.
     *
     * In Java JUnit 4 tests (ie. tests annotated `@org.junit.Test`), use this by defining a field with
     * the `@Rule` annotation:
     *
     * ```java
     * @Rule public final MockWebServerRule serverRule = new MockWebServerRule();
     * ```
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/OpenJdk6SetTests.java

    import java.util.Collection;
    import java.util.Set;
    import junit.framework.Test;
    
    /**
     * Tests the {@link Set} implementations of {@link java.util}, suppressing tests that trip known
     * OpenJDK 6 bugs.
     *
     * @author Kevin Bourrillion
     */
    public class OpenJdk6SetTests extends TestsForSetsInJavaUtil {
      public static Test suite() {
        return new OpenJdk6SetTests().allTests();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@link Map#computeIfPresent}. Can't be invoked directly; please
     * see {@link com.google.common.collect.testing.MapTestSuiteBuilder}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

           * https://bugs.openjdk.org/browse/JDK-8215328 -> https://bugs.openjdk.org/browse/JDK-8215470
           * https://github.com/google/guava/blob/4f12c5891a7adedbaa1d99fc9f77d8cc4e9da206/guava-tests/test/com/google/common/reflect/TypeResolverTest.java#L201
           */
          info.getName().contains("TypeResolverTest")
              /*
               * And at least one of the classes inside TypeTokenTest ends up with a null value in
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 18:53:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests creation (typically through a constructor or static factory
     * method) of a map. Can't be invoked directly; please see {@link
     * com.google.common.collect.testing.MapTestSuiteBuilder}.
     *
     * @author Chris Povirk
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/bytes/reader_test.go

    	r := NewReader([]byte("0123456789"))
    	tests := []struct {
    		off     int64
    		n       int
    		want    string
    		wanterr any
    	}{
    		{0, 10, "0123456789", nil},
    		{1, 10, "123456789", io.EOF},
    		{1, 9, "123456789", nil},
    		{11, 10, "", io.EOF},
    		{0, 0, "", nil},
    		{-1, 0, "", "bytes.Reader.ReadAt: negative offset"},
    	}
    	for i, tt := range tests {
    		b := make([]byte, tt.n)
    		rn, err := r.ReadAt(b, tt.off)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

     *
     * @author Louis Wasserman
     * @param <K> The key type of the tested multimap.
     * @param <V> The value type of the tested multimap.
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    @ElementTypesAreNonnullByDefault
    public class SetMultimapAsMapTester<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Executors;
    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link ExecutionList}.
     *
     * @author Nishant Thakkar
     * @author Sven Mawson
     */
    public class ExecutionListTest extends TestCase {
    
      private final ExecutionList list = new ExecutionList();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.SortedMap;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a NavigableMap
     * implementation.
     */
    @GwtIncompatible
    public class NavigableMapTestSuiteBuilder<K, V> extends SortedMapTestSuiteBuilder<K, V> {
      public static <K, V> NavigableMapTestSuiteBuilder<K, V> using(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertThat(result).contains("Custom thread name");
        task.cancel(true);
        exitLatch.await();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only in GwtIncompatible tests
      private void awaitUnchecked(CyclicBarrier barrier) {
        try {
          barrier.await();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top