Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 814 for assertequal (0.11 sec)

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

        assertEquals(ImmutableSet.of(), i.next());
        assertEquals(ImmutableSet.of(1), i.next());
        assertEquals(ImmutableSet.of(2), i.next());
        assertEquals(ImmutableSet.of(2, 1), i.next());
        assertEquals(ImmutableSet.of(3), i.next());
        assertEquals(ImmutableSet.of(3, 1), i.next());
        assertEquals(ImmutableSet.of(3, 2), i.next());
        assertEquals(ImmutableSet.of(3, 2, 1), i.next());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultVersionResolverTest.java

    import org.eclipse.aether.resolution.VersionRequest;
    import org.eclipse.aether.resolution.VersionResult;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    class DefaultVersionResolverTest extends AbstractRepositoryTestCase {
        @Inject
        private DefaultVersionResolver versionResolver;
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertEquals(2, cms.count("a"));
        assertTrue(cms.removeExactly("c", 0));
        assertEquals(0, cms.count("c"));
    
        assertFalse(cms.removeExactly("a", 4));
        assertEquals(2, cms.count("a"));
        assertTrue(cms.removeExactly("a", 2));
        assertEquals(0, cms.count("a"));
        assertTrue(cms.removeExactly("b", 2));
        assertEquals(1, cms.count("b"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                      assertEquals(k0(), k);
                      assertEquals(v0(), v);
                      return v3();
                    }));
        expectReplacement(entry(k0(), v3()));
        assertEquals(getNumElements(), getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentToAbsent() {
        assertNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                      assertEquals(k0(), k);
                      assertEquals(v0(), v);
                      return v3();
                    }));
        expectReplacement(entry(k0(), v3()));
        assertEquals(getNumElements(), getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentToAbsent() {
        assertNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        initThreeCopies();
        assertEquals(3, getMultiset().count(e0()));
        Multiset.Entry<E> entry = getOnlyElement(getMultiset().entrySet());
        assertEquals(3, entry.getCount());
        assertTrue(getMultiset().remove(e0()));
        assertEquals(2, entry.getCount());
        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        assertNull(table.put("foo", 3, cellValue('c')));
        assertEquals((Character) 'a', table.put("foo", 1, cellValue('d')));
        assertEquals((Character) 'd', table.get("foo", 1));
        assertEquals((Character) 'b', table.get("bar", 1));
        assertSize(3);
        assertEquals((Character) 'd', table.put("foo", 1, cellValue('d')));
        assertEquals((Character) 'd', table.get("foo", 1));
        assertSize(3);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("b", cycle.next());
        assertTrue(cycle.hasNext());
        assertEquals("a", cycle.next());
        cycle.remove();
        assertEquals(singletonList("b"), iterable);
        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        assertTrue(cycle.hasNext());
        assertEquals("b", cycle.next());
        cycle.remove();
        assertEquals(emptyList(), iterable);
        assertFalse(cycle.hasNext());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(0, ticker.read());
        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheLoaderTest.java

        Map<Object, Object> unused4 = asyncReloader.loadAll(ImmutableList.of(new Object()));
        assertEquals(2, loadCount.get());
        assertEquals(1, reloadCount.get());
        assertEquals(2, loadAllCount.get());
    
        executor.runNext();
        assertEquals(2, loadCount.get());
        assertEquals(2, reloadCount.get());
        assertEquals(2, loadAllCount.get());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top