- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 30 for assertNotSame (0.08 sec)
-
android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
public void testStringAssertions() { String original = "hello world"; String copy = SerializableTester.reserializeAndAssert(original); assertEquals(original, copy); assertNotSame(original, copy); } public void testClassWhichDoesNotImplementEquals() { ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals(); boolean errorNotThrown = false; try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
public void testStringAssertions() { String original = "hello world"; String copy = SerializableTester.reserializeAndAssert(original); assertEquals(original, copy); assertNotSame(original, copy); } public void testClassWhichDoesNotImplementEquals() { ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals(); boolean errorNotThrown = false; try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
return new DecoupledClassLoader(new URL[] {base}); } }; Class<?> finalizerCopy = decoupledLoader.loadFinalizer(); assertNotNull(finalizerCopy); assertNotSame(Finalizer.class, finalizerCopy); assertNotNull(FinalizableReferenceQueue.getStartFinalizer(finalizerCopy)); } static class DecoupledClassLoader extends URLClassLoader {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
@SuppressWarnings("unchecked") Class<TestEnum> shadowTestEnum = (Class<TestEnum>) Class.forName(TestEnum.class.getName(), false, shadowLoader); assertNotSame(shadowTestEnum, TestEnum.class); // We can't write Set<TestEnum> because that is a Set of the TestEnum from the original // ClassLoader. Set<Object> shadowConstants = new HashSet<>();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
final String sessionId1 = crawler1.execute(); final String sessionId2 = crawler2.execute(); assertNotSame(sessionId1, sessionId2); assertNotSame(crawler1.crawlerContext, crawler2.crawlerContext); Thread.sleep(1000); assertEquals(CrawlerStatus.RUNNING, crawler1.crawlerContext.getStatus());
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 18K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
public void testUnmodifiableListMultimapShortCircuit() { ListMultimap<String, Integer> mod = ArrayListMultimap.create(); ListMultimap<String, Integer> unmod = Multimaps.unmodifiableListMultimap(mod); assertNotSame(mod, unmod); assertSame(unmod, Multimaps.unmodifiableListMultimap(unmod)); ImmutableListMultimap<String, Integer> immutable = ImmutableListMultimap.of("a", 1, "b", 2, "a", 3);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 38.4K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.3K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
table.set(index, entry); segment.count++; assertSame(value, map.get(key, loader)); assertEquals(0, loader.getCount()); assertEquals(1, segment.count); entry.clearKey(); assertNotSame(value, map.get(key, loader)); assertEquals(1, loader.getCount()); assertEquals(2, segment.count); } public void testComputePartiallyCollectedValue() throws ExecutionException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0)