Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 267 for testOf (0.4 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableListMultimap.class);
        tester.ignore(ImmutableListMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableListMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableListMultimap.of("a", 1));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link ImmutableBiMap}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @NullMarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        tester.testAllPublicInstanceMethods(ImmutableSortedMap.of());
        tester.testAllPublicInstanceMethods(ImmutableSortedMap.of("one", 1));
        tester.testAllPublicInstanceMethods(ImmutableSortedMap.of("one", 1, "two", 2, "three", 3));
      }
    
      public void testNullValuesInCopyOfMap() {
        for (int i = 1; i <= 10; i++) {
          for (int j = 0; j < i; j++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableSetMultimap.class);
        tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of("a", 1));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableSetMultimap.class);
        tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of());
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of("a", 1));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableMap.class);
        tester.testAllPublicInstanceMethods(new ImmutableMap.Builder<Object, Object>());
        tester.testAllPublicInstanceMethods(ImmutableMap.of());
        tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1));
        tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1, "two", 2, "three", 3));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      }
    
      public void testOf1() {
        assertThat(ImmutableLongArray.of(0).asList()).containsExactly(0L);
      }
    
      public void testOf2() {
        assertThat(ImmutableLongArray.of(0, 1).asList()).containsExactly(0L, 1L).inOrder();
      }
    
      public void testOf3() {
        assertThat(ImmutableLongArray.of(0, 1, 3).asList()).containsExactly(0L, 1L, 3L).inOrder();
      }
    
      public void testOf4() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(map.getAt(0), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPut() throws Exception {
            assertThat(map.put("1", "test3"), is("test"));
            assertThat(map.get("1"), is("test3"));
            assertThat(map.getAt(1), is("test3"));
            map.put(null, "test4");
            map.put(null, "test5");
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/misc/DisposableUtilTest.java

            DisposableUtil.dispose();
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test1() throws Exception {
            DisposableUtil.add(new TestDisposable("a"));
            assertThat(DisposableUtil.disposables.size(), is(1));
            DisposableUtil.dispose();
            assertThat(count, is(1));
            assertThat(names, is("a"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      }
    
      public void testOf1() {
        assertThat(ImmutableDoubleArray.of(0).asList()).containsExactly(0.0);
      }
    
      public void testOf2() {
        assertThat(ImmutableDoubleArray.of(0, 1).asList()).containsExactly(0.0, 1.0).inOrder();
      }
    
      public void testOf3() {
        assertThat(ImmutableDoubleArray.of(0, 1, 3).asList()).containsExactly(0.0, 1.0, 3.0).inOrder();
      }
    
      public void testOf4() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
Back to top