- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 825 for assertequal (0.16 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java
assertNull(getMap().inverse().get(v0())); assertEquals(1, getMap().size()); assertTrue(getMap().containsKey(k0())); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(ONE) public void testForcePutValuePresent() { getMap().forcePut(k1(), v0()); expectContents(mapEntry(k1(), v0())); assertEquals(k1(), getMap().inverse().get(v0())); assertEquals(1, getMap().size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
} assertTrue(source.wasStreamClosed()); assertEquals(SPLIT_LINES, lines); } public void testCopyTo_appendable() throws IOException { StringBuilder builder = new StringBuilder(); assertEquals(STRING.length(), source.copyTo(builder)); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); assertEquals(STRING, builder.toString()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java
initMultimapWithNullKeyAndValue(); assertEquals(getNumElements(), multimap().size()); assertFalse(multimap().isEmpty()); } @CollectionSize.Require(SEVERAL) public void testSizeMultipleValues() { resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v2())); assertEquals(3, multimap().size()); assertEquals(3, multimap().entries().size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java
public void testToString() { assertEquals("foo", entry("foo", 1).toString()); assertEquals("bar x 2", entry("bar", 2).toString()); } public void testToStringNull() { assertEquals("null", entry(NE, 1).toString()); assertEquals("null x 2", entry(NE, 2).toString()); } public void testEquals() { assertEquals(control("foo", 1), entry("foo", 1)); assertEquals(control("bar", 2), entry("bar", 2));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/URLUtilTest.java
assertEquals("jar", URLUtil.toCanonicalProtocol("wsjar")); assertEquals("jar", URLUtil.toCanonicalProtocol("jar")); assertEquals("zip", URLUtil.toCanonicalProtocol("zip")); assertEquals("file", URLUtil.toCanonicalProtocol("file")); } /** * @throws Exception */ public void testToFile() throws Exception {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
if (expectedLines.isEmpty()) { assertTrue(list.isEmpty()); } else { assertEquals(expectedLines.subList(0, 1), list); } } private void assertExpectedString(String string) { assertEquals(expected, string); } private void assertExpectedLines(List<String> list) { assertEquals(expectedLines, list); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class); assertTrue(bimap.isEmpty()); assertEquals("{}", bimap.toString()); assertEquals(HashBiMap.create(), bimap); bimap.put(Currency.DOLLAR, "dollar"); assertEquals("dollar", bimap.get(Currency.DOLLAR)); assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); } public void testCreateFromMap() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ReflectionTest.java
public void testGetPackageName() throws Exception { assertEquals("java.lang", Reflection.getPackageName(Iterable.class)); assertEquals("java", Reflection.getPackageName("java.MyType")); assertEquals("java.lang", Reflection.getPackageName(Iterable.class.getName())); assertEquals("", Reflection.getPackageName("NoPackage")); assertEquals("java.util", Reflection.getPackageName(Map.Entry.class)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
AtomicDouble at = new AtomicDouble(); assertEquals("0.0", at.toString()); for (double x : VALUES) { at.set(x); assertEquals(Double.toString(x), at.toString()); } } /** intValue returns current value. */ public void testIntValue() { AtomicDouble at = new AtomicDouble(); assertEquals(0, at.intValue()); for (double x : VALUES) { at.set(x);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 10.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
ByteSource joined = ByteSource.concat(source, source); assertEquals(20, joined.size()); InputStream in = joined.openStream(); assertFalse(in.markSupported()); assertEquals(10, in.available()); int total = 0; while (in.read() != -1) { total++; } assertEquals(0, in.available()); assertEquals(20, total); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.6K bytes - Viewed (0)