- Sort Score
- Result 10 results
- Languages All
Results 721 - 730 of 825 for assertequal (0.06 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
@CollectionSize.Require(absent = ZERO) public void testRemove_present() { int initialSize = collection.size(); assertTrue("remove(present) should return true", collection.remove(e0())); assertEquals( "remove(present) should decrease a collection's size by one.", initialSize - 1, collection.size()); expectMissing(e0()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 5.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java
public void testHashCode() { int expectedHashCode = 1; for (E element : getOrderedElements()) { expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode()); } assertEquals( "A List's hashCode() should be computed from those of its elements.", expectedHashCode, getList().hashCode()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java
.withTearDown(tearDownRunnable) .createTestSuite(); TestResult result = new TestResult(); int timesMyTesterWasRunBeforeSuite = MyTester.timesTestClassWasRun; test.run(result); assertEquals(timesMyTesterWasRunBeforeSuite + 1, MyTester.timesTestClassWasRun); assertTrue(setUp[0]); assertTrue(tearDown[0]); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class SortedSetMultimapGetTester<K, V> extends AbstractMultimapTester<K, V, SortedSetMultimap<K, V>> { public void testValueComparator() { assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 1.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CompactHashMapTest.java
} map.trimToSize(); assertThat(map.entries).hasLength(10); assertThat(map.keys).hasLength(10); assertThat(map.values).hasLength(10); assertEquals(10, map.size()); for (int i = 0; i < 10; i++) { assertEquals(Integer.toString(i), map.get(i)); } } public void testEntrySetValueAfterRemoved() { CompactHashMap<Integer, String> map = CompactHashMap.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 5.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java
@CollectionSize.Require(absent = {ZERO, ONE}) public void testIndexOf_duplicate() { E[] array = createSamplesArray(); array[getNumElements() / 2] = e0(); collection = getSubjectGenerator().create(array); assertEquals( "indexOf(duplicate) should return index of first occurrence", 0, getList().indexOf(e0())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java
public void testLastIndexOf_duplicate() { E[] array = createSamplesArray(); array[getNumElements() / 2] = e0(); collection = getSubjectGenerator().create(array); assertEquals( "lastIndexOf(duplicate) should return index of last occurrence", getNumElements() / 2, getList().lastIndexOf(e0())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java
} assertTrue( SortedIterables.hasSameComparator( Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse()))); } public void testComparator() { assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SortedIterablesTest.java
} assertTrue( SortedIterables.hasSameComparator( Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse()))); } public void testComparator() { assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 1.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
Collection<V> result = multimap().asMap().get(k0()); assertTrue(result.remove(v0())); assertFalse(multimap().containsEntry(k0(), v0())); assertEquals(2, multimap().size()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testPropagatesRemoveLastElementToMultimap() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0)