- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 128 for assertNotNull (0.27 sec)
-
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
assertTrue(future.isCancelled()); assertTrue(future.isDone()); assertNull(tryInternalFastPathGetFailure(future)); CancellationException e = assertThrows(CancellationException.class, () -> future.get()); assertNotNull(e.getCause()); } public void testCancel_notDoneInterrupt() throws Exception { Future<?> future = newFutureInstance(); assertTrue(future.cancel(true)); assertTrue(future.isCancelled());
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
for (K key : keys) { resetContainer(); int size = getNumElements(); Collection<V> collection = multimap().asMap().get(key); assertNotNull(collection); Collection<V> expectedCollection = Helpers.copyToList(collection); multimap().put(key, v3()); expectedCollection.add(v3());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 7.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
assertTrue(future.isCancelled()); assertTrue(future.isDone()); assertNull(tryInternalFastPathGetFailure(future)); CancellationException e = assertThrows(CancellationException.class, () -> future.get()); assertNotNull(e.getCause()); } public void testCancel_notDoneInterrupt() throws Exception { Future<?> future = newFutureInstance(); assertTrue(future.cancel(true)); assertTrue(future.isCancelled());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java
import org.apache.maven.internal.impl.SettingsUtilsV4; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; class SettingsUtilsTest { @Test void testShouldAppendRecessivePluginGroupIds() { Settings dominant = Settings.newBuilder()
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
FreshValueGenerator generator = new FreshValueGenerator(); // repeat a few times to make sure we don't stumble upon a bad Locale assertNotNull(generator.generateFresh(Currency.class)); assertNotNull(generator.generateFresh(Currency.class)); assertNotNull(generator.generateFresh(Currency.class)); } public void testNulls() throws Exception { new ClassSanityTester()
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 17.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
} public void testLocalClassInsideStaticMethod() { assertNotNull(staticMethodWithLocalClass()); } public void testLocalClassInsideNonStaticMethod() { class MyLocalClass<T> { Type getType() { return new TypeToken<T>(getClass()) {}.getType(); } } assertNotNull(new MyLocalClass<String>().getType()); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 19.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
for (K key : keys) { resetContainer(); int size = getNumElements(); Collection<V> collection = multimap().asMap().get(key); assertNotNull(collection); Collection<V> expectedCollection = Helpers.copyToList(collection); multimap().put(key, v3()); expectedCollection.add(v3());
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/tests/BaseCIFSTest.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.tests; import static org.junit.Assert.assertNotNull; import java.net.MalformedURLException; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Map.Entry;
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/InputStreamUtilTest.java
*/ public void testGetBytes() throws Exception { final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class"); try { assertNotNull("1", InputStreamUtil.getBytes(is)); } finally { is.close(); } }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
WeakReference<Object> weakRef = new WeakReference<>(striped.get(new Object())); WeakReference<Object> garbage = new WeakReference<>(new Object()); GcFinalization.awaitClear(garbage); assertNotNull(weakRef.get()); } } public void testMaximalWeakStripedLock() { Striped<Lock> stripedLock = Striped.lazyWeakLock(Integer.MAX_VALUE); for (int i = 0; i < 10000; i++) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.4K bytes - Viewed (0)