- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 for Truong (0.14 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java
} public void testContainsAll_wrongType() { Collection<WrongType> wrong = MinimalCollection.of(WrongType.VALUE); try { assertFalse( "containsAll(wrongType) should return false or throw", collection.containsAll(wrong)); } catch (ClassCastException tolerated) { } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.asList(ARRAY_FALSE_TRUE).size()).isEqualTo(2); } @SuppressWarnings("BooleanArrayIndexOfBoolean") public void testAsListIndexOf() { assertThat(Booleans.asList(EMPTY).indexOf((Object) "wrong type")).isEqualTo(-1); assertThat(Booleans.asList(EMPTY).indexOf(true)).isEqualTo(-1); assertThat(Booleans.asList(ARRAY_FALSE).indexOf(true)).isEqualTo(-1);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 15:43:29 GMT 2024 - 23.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.asList(ARRAY_FALSE_TRUE).size()).isEqualTo(2); } @SuppressWarnings("BooleanArrayIndexOfBoolean") public void testAsListIndexOf() { assertThat(Booleans.asList(EMPTY).indexOf((Object) "wrong type")).isEqualTo(-1); assertThat(Booleans.asList(EMPTY).indexOf(true)).isEqualTo(-1); assertThat(Booleans.asList(ARRAY_FALSE).indexOf(true)).isEqualTo(-1);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 15:43:29 GMT 2024 - 23.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AndroidIncompatible.java
* probably require adding the dep to various ACLs, license files, and Proguard * configurations, and there's always the potential that something will go wrong. It * <i>probably</i> won't, since the deps are needed only in tests (and maybe someday in * testlib), but why bother? * <li>Stripping code entirely might help us keep under the method limit someday. Even if it never
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Jul 07 15:40:13 GMT 2023 - 3.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
* static final} constants. * * <pre>{@code * // Bad! Do not do this! * Joiner joiner = Joiner.on(','); * joiner.skipNulls(); // does nothing! * return joiner.join("wrong", null, "wrong"); * }</pre> * * <p>See the Guava User Guide article on <a * href="https://github.com/google/guava/wiki/StringsExplained#joiner">{@code Joiner}</a>. * * @author Kevin Bourrillion * @since 2.0 */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 18.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
// TODO: move this to invariant checks once the appropriate hook exists? super.expectContents(expected); for (Entry<K, V> entry : expected) { assertEquals( "Wrong value for key " + entry.getKey(), entry.getValue(), getMap().get(entry.getKey())); } } protected final void expectReplacement(Entry<K, V> newEntry) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 7.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
// A 4n+1 length string is never legal base64(). assertFailsToDecode(base64(), "12345", "Invalid input length 5"); // These have a combination of invalid length, unrecognized characters and wrong padding. assertFailsToDecode(base64(), "AB=C", "Unrecognized character: ="); assertFailsToDecode(base64(), "A=BCD", "Invalid input length 5"); assertFailsToDecode(base64(), "?", "Invalid input length 1"); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Aug 25 16:34:08 GMT 2022 - 24.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
return o == this || o == null; } @Override public int hashCode() { return 0; } } /** Test class that returns true even if the test object is of the wrong class */ private static class InvalidEqualsIncompatibleClassObject { @Override public boolean equals(@Nullable Object o) { return o != null; } @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 12.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertTrue(segment.clearValueForTesting(key, hash, valueRef)); // no notification sent with clearValue assertEquals(0, segment.count); assertNull(table.get(0)); // clear wrong value reference segment.setTableEntryForTesting(0, entry); WeakValueReference<Object, Object, ?> otherValueRef = segment.newWeakValueReferenceForTesting(entry, value);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 35.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertTrue(segment.clearValueForTesting(key, hash, valueRef)); // no notification sent with clearValue assertEquals(0, segment.count); assertNull(table.get(0)); // clear wrong value reference segment.setTableEntryForTesting(0, entry); WeakValueReference<Object, Object, ?> otherValueRef = segment.newWeakValueReferenceForTesting(entry, value);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 35.1K bytes - Viewed (0)