- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 880 for assertEquals (0.07 sec)
-
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) -
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) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
@Override public void run() { runCalled.getAndIncrement(); } }, directExecutor()); list.execute(); assertEquals(1, runCalled.get()); list.execute(); assertEquals(1, runCalled.get()); } public void testExecute_idempotentConcurrently() throws InterruptedException { final CountDownLatch okayToRun = new CountDownLatch(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java
public void testKeys() { resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k1(), v0())); Multiset<K> keys = multimap().keys(); assertEquals(2, keys.count(k0())); assertEquals(1, keys.count(k1())); assertEquals(3, keys.size()); assertContainsAllOf(keys, k0(), k1()); assertContainsAllOf( keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.2K bytes - Viewed (0) -
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) -
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) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java
@Override protected void startUp() throws Exception { assertEquals(0, startupCalled); assertEquals(0, runCalled); assertEquals(0, shutdownCalled); startupCalled++; } @Override protected void run() throws Exception { assertEquals(1, startupCalled); assertEquals(0, runCalled); assertEquals(0, shutdownCalled); runCalled++; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 12.7K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java
} private void assertViolations(SimpleProblemCollector result, int fatals, int errors, int warnings) { assertEquals(fatals, result.getFatals().size(), String.valueOf(result.getFatals())); assertEquals(errors, result.getErrors().size(), String.valueOf(result.getErrors())); assertEquals(warnings, result.getWarnings().size(), String.valueOf(result.getWarnings())); } @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 32.8K bytes - Viewed (0) -
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) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java
void testGetVersionReturnsResolvedVersionOnSnapshot() { assertEquals(snapshotResolvedVersion, snapshotArtifact.getVersion()); // this is FOUL! // snapshotArtifact.isSnapshot(); assertEquals(snapshotSpecVersion, snapshotArtifact.getBaseVersion()); } @Test void testGetDependencyConflictId() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.4K bytes - Viewed (0)