- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for testNull (0.04 sec)
-
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
/* The names of the expected method that tests null checks. */ private static final ImmutableList<String> NULL_TEST_METHOD_NAMES = ImmutableList.of( "testNulls", "testNull", "testNullPointers", "testNullPointer", "testNullPointerExceptions", "testNullPointerException"); /* The names of the expected method that tests serializable. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharMatcherTest.java
doTestEmpty(noneOf("CharMatcher")); doTestEmpty(inRange('n', 'q')); doTestEmpty(forPredicate(Predicates.equalTo('c'))); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNull() throws Exception { doTestNull(CharMatcher.any()); doTestNull(CharMatcher.none()); doTestNull(is('a')); doTestNull(isNot('a')); doTestNull(anyOf("")); doTestNull(anyOf("x"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
public void tearDown() { Thread.interrupted(); } }); } @Override protected void tearDown() { tearDownStack.runTearDown(); } public void testNull() throws Exception { new NullPointerTester() .setDefault(CountDownLatch.class, new CountDownLatch(0)) .setDefault(Semaphore.class, new Semaphore(999))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 31.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CharMatcherTest.java
doTestEmpty(noneOf("CharMatcher")); doTestEmpty(inRange('n', 'q')); doTestEmpty(forPredicate(Predicates.equalTo('c'))); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNull() throws Exception { doTestNull(CharMatcher.any()); doTestNull(CharMatcher.none()); doTestNull(is('a')); doTestNull(isNot('a')); doTestNull(anyOf("")); doTestNull(anyOf("x"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
} public void testNulls_enum() throws Exception { tester.testNulls(OneConstantEnum.class); tester.testNulls(NoConstantEnum.class); tester.testNulls(TimeUnit.class); } public void testNulls_parameterOptionalNotInstantiable() throws Exception { tester.testNulls(ConstructorParameterWithOptionalNotInstantiable.class); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
assertNotNull(generator.generateFresh(Currency.class)); } public void testNulls() throws Exception { new ClassSanityTester() .setDefault(Method.class, FreshValueGeneratorTest.class.getDeclaredMethod("testNulls")) .testNulls(FreshValueGenerator.class); } private static void assertFreshInstances(Class<?>... types) { for (Class<?> type : types) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 17.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* * <p>And all the created {@code Book} instances can be tested with: * * <pre> * new ClassSanityTester() * .forAllPublicStaticMethods(Books.class) * .thatReturn(Book.class) * .testEquals(); // or testNulls(), testSerializable() etc. * </pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible @NullUnmarked @SuppressWarnings("nullness") public final class ClassSanityTester {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
checkCanReserialize(Functions.forSupplier(new CountingSupplier())); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() throws Exception { new ClassSanityTester().forAllPublicStaticMethods(Functions.class).testNulls(); } @J2ktIncompatible @GwtIncompatible // reflection @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* * <p>And all the created {@code Book} instances can be tested with: * * <pre> * new ClassSanityTester() * .forAllPublicStaticMethods(Books.class) * .thatReturn(Book.class) * .testEquals(); // or testNulls(), testSerializable() etc. * </pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible @NullUnmarked @SuppressWarnings("nullness") public final class ClassSanityTester {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString()); assertEquals("7f8005ff0e", base16().lowerCase().encode(data)); } public void testHashCode_nulls() throws Exception { sanityTester().testNulls(); } public void testHashCode_equalsAndSerializable() throws Exception { sanityTester().testEqualsAndSerializable(); } public void testRoundTripHashCodeUsingBaseEncoding() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 13.1K bytes - Viewed (0)