- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 64 for testNulls (0.2 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.put("foo", 1) .put("bar", 2) .put("foo", 3) .build(); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(ImmutableSetMultimap.class); tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 27K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
latch.countDown(); } @Override protected String serviceName() { return this.getClass().getSimpleName() + "[" + index + "]"; } } public void testNulls() { ServiceManager manager = new ServiceManager(Arrays.asList()); new NullPointerTester() .setDefault(ServiceManager.Listener.class, new RecordingListener()) .testAllPublicInstanceMethods(manager);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 17:49:12 GMT 2025 - 25.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
assertThat(Doubles.tryParse(badInput)).isNull(); } } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNulls() { new NullPointerTester().testAllPublicStaticMethods(Doubles.class); } public void testStringConverter_convert() { Converter<String, Double> converter = Doubles.stringConverter();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 30.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
public void testAsListEmpty() { assertThat(Shorts.asList(EMPTY)).isSameInstanceAs(Collections.emptyList()); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNulls() { new NullPointerTester().testAllPublicStaticMethods(Shorts.class); } public void testStringConverter_convert() { Converter<String, Short> converter = Shorts.stringConverter();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 27.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.countTrue(false, false, true, false, false)).isEqualTo(1); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNulls() { new NullPointerTester().testAllPublicStaticMethods(Booleans.class); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 25.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
System.setProperty(PATH_SEPARATOR.key(), oldPathSeparator); System.setProperty(JAVA_CLASS_PATH.key(), oldClassPath); } } private static class Nested {} public void testNulls() throws IOException { new NullPointerTester().testAllPublicStaticMethods(ClassPath.class); new NullPointerTester() .testAllPublicInstanceMethods(ClassPath.from(getClass().getClassLoader())); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 21:00:51 GMT 2025 - 25.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
public void testAsListEmpty() { assertThat(Ints.asList(EMPTY)).isSameInstanceAs(Collections.emptyList()); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNulls() { new NullPointerTester().testAllPublicStaticMethods(Ints.class); } public void testStringConverter_convert() { Converter<String, Integer> converter = Ints.stringConverter();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 29.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
public void testIterables_nullCheck() throws Exception { new ClassSanityTester() .forAllPublicStaticMethods(Iterables.class) .thatReturn(Iterable.class) .testNulls(); } private static void verifyMergeSorted( Iterable<Iterable<Integer>> iterables, Iterable<Integer> unsortedExpected) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 45.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
} private static <T> TypeToken<T[]> arrayOf(Class<T> componentType) { return new TypeToken<T[]>() {}.where(new TypeParameter<T>() {}, componentType); } public <T> void testNulls() { new NullPointerTester().testAllPublicStaticMethods(TypeToken.class); new NullPointerTester() .setDefault(TypeParameter.class, new TypeParameter<T>() {})
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 89K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java
Integer newValue = map.getInstance(Integer.class); assertEquals(7, (int) newValue); // Won't compile: map.putInstance(Double.class, new Long(42)); } public void testNull() { assertThrows(NullPointerException.class, () -> map.put(null, new Integer(1))); map.putInstance(Integer.class, null); assertThat(map.get(Integer.class)).isNull();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 5K bytes - Click Count (0)