- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 128 for test_equals2 (0.09 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
.addEqualityGroup(new TypeToken<List<Integer>>() {}.method(setMethod)) .addEqualityGroup(new TypeToken<List<String>>() {}.method(setMethod)) .testEquals(); } private interface Loser<E extends Throwable> { void lose() throws E; } public <T extends Loser<AssertionError>> void testMethod_exceptionTypes()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
.addEqualityGroup(new PairedStats(MANY_VALUES_STATS_ITERABLE, ONE_VALUE_STATS, 1.23)) .addEqualityGroup( new PairedStats(MANY_VALUES_STATS_ITERABLE, MANY_VALUES_STATS_ITERABLE, 1.234)) .testEquals(); } public void testSerializable() { SerializableTester.reserializeAndAssert(MANY_VALUES_PAIRED_STATS); } public void testToString() { assertThat(EMPTY_PAIRED_STATS.toString())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 21:17:33 UTC 2024 - 14K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
.addEqualityGroup(parse("softValues"), parse("softValues")) .addEqualityGroup(parse("weakValues"), parse("weakValues")) .addEqualityGroup(parse("recordStats"), parse("recordStats")) .testEquals(); } @SuppressWarnings("ReturnValueIgnored") public void testMaximumWeight_withWeigher() { CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 19.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/StringUtilTest.java
assertEquals("3", false, StringUtil.contains("abc", "d")); } /** * @throws Exception */ @Test public void testEquals() throws Exception { assertEquals("1", true, StringUtil.equals("a", "a")); assertEquals("2", true, StringUtil.equals(null, null)); assertEquals("3", false, StringUtil.equals("a", null));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 12K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
.put(4, 4) .put(5, 5) .put(6, 6) .buildOrThrow(); assertNotNull(map.keySet().spliterator().trySplit()); } public void testEquals() { new EqualsTester() .addEqualityGroup( ImmutableMap.of(), ImmutableMap.builder().buildOrThrow(), ImmutableMap.ofEntries(), map())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
for (Integer node : graph.nodes()) { new EqualsTester() .addEqualityGroup( graph.predecessors(node), graph.successors(node), graph.adjacentNodes(node)) .testEquals(); } } @Override @Test public void nodes_checkReturnedSetMutability() { assume().that(graphIsMutable()).isTrue(); Set<Integer> nodes = graph.nodes();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
if (EVEN.apply(i)) { expected.add(i); } } new EqualsTester() .addEqualityGroup(expected, filter(createUnfiltered(contents), EVEN)) .testEquals(); } } } public abstract static class AbstractFilteredSortedSetTest<C extends SortedSet<Integer>> extends AbstractFilteredSetTest<C> { public void testFirst() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
EqualsTester tester = new EqualsTester(); for (int i = 0; i < instances; i++) { tester.addEqualityGroup(generator.generateFresh(type)); } tester.testEquals(); } private static <T> void assertEqualInstance(Class<T> type, T value) { FreshValueGenerator generator = new FreshValueGenerator(); assertEquals(value, generator.generateFresh(type));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 17.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
.addEqualityGroup(new TypeToken<List<Integer>>() {}.method(setMethod)) .addEqualityGroup(new TypeToken<List<String>>() {}.method(setMethod)) .testEquals(); } private interface Loser<E extends Throwable> { void lose() throws E; } public <T extends Loser<AssertionError>> void testMethod_exceptionTypes()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
oos.writeObject(keySet); oos.writeObject(values); oos.close(); int finalSize = bytes.size(); assertThat(finalSize - mapSize).isLessThan(100); } public void testEquals() { new EqualsTester() .addEqualityGroup( ImmutableMap.of(), ImmutableMap.builder().buildOrThrow(), ImmutableMap.ofEntries(), map())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0)