- Sort Score
- Result 10 results
- Languages All
Results 501 - 510 of 880 for assertEquals (0.09 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
assertGet(k3(), v3()); assertEquals(size + 1, multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutPresent() { int size = getNumElements(); assertGet(k0(), v0()); assertTrue(multimap().put(k0(), v3())); assertGet(k0(), v0(), v3()); assertEquals(size + 1, multimap().size()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
public void testIsEmpty() throws IOException { assertEquals(expected.length == 0, source.isEmpty()); } public void testSize() throws IOException { assertEquals(expected.length, source.size()); } public void testSizeIfKnown() throws IOException { Optional<Long> sizeIfKnown = source.sizeIfKnown(); if (sizeIfKnown.isPresent()) { assertEquals(expected.length, (long) sizeIfKnown.get()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java
List<ArtifactRepository> repositories = group.getResolutionRepositories(); assertEquals(1, repositories.size(), "There should be one repository!"); ArtifactRepository repository = repositories.get(0); assertEquals(TestMavenWorkspaceReader.REPO_ID, repository.getId()); assertEquals(TestMavenWorkspaceReader.REPO_URL, repository.getUrl()); } @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
HashCode hashcode1 = hashFunction.hashInt(value); HashCode hashcode2 = hashFunction.hashInt(value); Assert.assertEquals(hashcode1, hashcode2); // idempotent Assert.assertEquals(hashFunction.bits(), hashcode1.bits()); Assert.assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8); hashcodes.add(hashcode1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 25.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/es/config/exentity/WebConfigTest.java
assertNotNull(initParamMap); assertEquals(0, ((org.codelibs.fess.crawler.client.http.RequestHeader[]) initParamMap.get("requestHeaders")).length); assertEquals("Mozilla/5.0 (compatible; Fess/98.76; +http://fess.codelibs.org/bot.html)", initParamMap.get("userAgent")); assertEquals(0, ((Authentication[]) initParamMap.get(HcHttpClient.AUTHENTICATIONS_PROPERTY)).length);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu May 09 09:48:04 UTC 2024 - 7.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt
} @Test fun overflowMaxCodePoint() { assertNull(Punycode.decode("xn--a-b.net")) assertNull(Punycode.decode("xn--a-9b.net")) assertEquals("a՚.net", Punycode.decode("xn--a-99b.net")) assertEquals("a溠.net", Punycode.decode("xn--a-999b.net")) assertEquals("a\uD8E2\uDF5C.net", Punycode.decode("xn--a-9999b.net")) assertNull(Punycode.decode("xn--a-99999b.net")) } @Test fun dashInPrefix() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
@SuppressWarnings("JUnitIncompatibleType") public void testBuilder_withImmutableEntry() { ImmutableMultimap<String, Integer> multimap = new Builder<String, Integer>().put(immutableEntry("one", 1)).build(); assertEquals(asList(1), multimap.get("one")); } public void testBuilder_withImmutableEntryAndNullContents() { Builder<String, Integer> builder = new Builder<>(); assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.8K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() { File txtFile = new File("target/test-classes/source.txt"); FileSource source = new FileSource(txtFile); assertEquals(txtFile.getAbsolutePath(), source.getLocation()); } @Test void testGetFile() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java
import org.apache.maven.session.scope.internal.SessionScope; import org.junit.jupiter.api.Test; import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; /** */ @Deprecated class ArtifactDeployerTest extends AbstractArtifactComponentTestCase { @Inject
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheEvictionTest.java
for (int i = 0; i < 2 * MAX_SIZE; i++) { cache.getUnchecked(i); assertTrue(cache.size() <= MAX_SIZE); } assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache)); assertEquals(MAX_SIZE, cache.size()); CacheTesting.processPendingNotifications(cache); assertEquals(MAX_SIZE, removalListener.getCount()); CacheTesting.checkValidState(cache); } public void testEviction_maxWeight() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 15K bytes - Viewed (0)