- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 83 for assertNotSame (0.05 sec)
-
src/test/java/org/codelibs/fess/entity/DataStoreParamsTest.java
dataStoreParams.put("key1", "value1"); dataStoreParams.put("key2", 123); DataStoreParams newParams = dataStoreParams.newInstance(); assertNotNull(newParams); assertNotSame(dataStoreParams, newParams); assertEquals("value1", newParams.get("key1")); assertEquals(123, newParams.get("key2")); // Verify that modifications to new instance don't affect original
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultisetsTest.java
public void testUnmodifiableMultisetShortCircuit() { Multiset<String> mod = HashMultiset.create(); Multiset<String> unmod = unmodifiableMultiset(mod); assertNotSame(mod, unmod); assertSame(unmod, unmodifiableMultiset(unmod)); ImmutableMultiset<String> immutable = ImmutableMultiset.of("a", "a", "b", "a"); assertSame(immutable, unmodifiableMultiset(immutable));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
@SuppressWarnings("unchecked") Class<WillBeUnloadedException> shadowClass = (Class<WillBeUnloadedException>) Class.forName(WillBeUnloadedException.class.getName(), false, shadowLoader); assertNotSame(shadowClass, WillBeUnloadedException.class); getChecked(immediateFuture("foo"), shadowClass); return new WeakReference<>(shadowLoader); } /*
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testAsWriter() { // Should wrap Appendable in a new object Appendable plainAppendable = new StringBuilder(); Writer result = CharStreams.asWriter(plainAppendable); assertNotSame(plainAppendable, result); assertNotNull(result); // A Writer should not be wrapped Appendable secretlyAWriter = new StringWriter(); result = CharStreams.asWriter(secretlyAWriter);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 11.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testAsWriter() { // Should wrap Appendable in a new object Appendable plainAppendable = new StringBuilder(); Writer result = CharStreams.asWriter(plainAppendable); assertNotSame(plainAppendable, result); assertNotNull(result); // A Writer should not be wrapped Appendable secretlyAWriter = new StringWriter(); result = CharStreams.asWriter(secretlyAWriter);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/annotation/SecuredTest.java
String[] roles1 = secured.value(); String[] roles2 = secured.value(); // Different array instances should be returned assertNotSame(roles1, roles2); // But values should be the same assertEquals(roles1.length, roles2.length); for (int i = 0; i < roles1.length; i++) { assertEquals(roles1[i], roles2[i]);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
} public void testCopyOf_copiesImmutableSortedSet() { ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); assertNotSame(sortedSet, copy); } public void testToImmutableSet() { Collector<String, ?, ImmutableSet<String>> collector = toImmutableSet(); Equivalence<ImmutableSet<String>> equivalence =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
assertNull(identity.apply(null)); assertSame("foo", identity.apply("foo")); } public void testIdentity_notSame() { Function<Long, Long> identity = Functions.identity(); assertNotSame(new Long(135135L), identity.apply(new Long(135135L))); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testIdentitySerializable() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
assertNull(identity.apply(null)); assertSame("foo", identity.apply("foo")); } public void testIdentity_notSame() { Function<Long, Long> identity = Functions.identity(); assertNotSame(new Long(135135L), identity.apply(new Long(135135L))); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testIdentitySerializable() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
} } public void testCopy() { BloomFilter<String> original = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100); BloomFilter<String> copy = original.copy(); assertNotSame(original, copy); assertEquals(original, copy); } public void testExpectedFpp() { BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03); double fpp = bf.expectedFpp();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 22K bytes - Viewed (0)