- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 172 for NullPointerException (0.2 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java
@CollectionSize.Require(absent = ZERO) public void testReplaceEntry_presentNullValueUnsupported() { try { getMap().replace(k0(), v0(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) @CollectionSize.Require(absent = ZERO)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 5.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java
public enum MapFeature implements Feature<Map> { /** * The map does not throw {@code NullPointerException} on calls such as {@code containsKey(null)}, * {@code get(null)}, {@code keySet().contains(null)} or {@code remove(null)}. */ ALLOWS_NULL_KEY_QUERIES, ALLOWS_NULL_KEYS(ALLOWS_NULL_KEY_QUERIES), /** * The map does not throw {@code NullPointerException} on calls such as {@code
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
getMap().replace(k0(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) public void testReplace_absentNullValueUnsupported() { try { getMap().replace(k3(), null); } catch (NullPointerException tolerated) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java
new ClUnsupportedOperationException("hoge", new NullPointerException()); assertThat(clUnsupportedOperationException.getMessage(), is("hoge")); assertThat(clUnsupportedOperationException.getCause(), instanceOf(NullPointerException.class)); } /** * Test method for
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java
* Returns {@link ChecksumAlgorithm} for given algorithm name, or throws if algorithm not supported. * * @throws ChecksumAlgorithmServiceException if asked algorithm name is not supported. * @throws NullPointerException if passed in name is {@code null}. */ @Nonnull ChecksumAlgorithm select(@Nonnull String algorithmName); /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Dec 21 08:05:10 GMT 2023 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java
final ClIllegalStateException clIllegalStateException = new ClIllegalStateException("hoge", new NullPointerException()); assertThat(clIllegalStateException.getMessage(), is("hoge")); assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class)); } /** * Test method for
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java
public enum MapFeature implements Feature<Map> { /** * The map does not throw {@code NullPointerException} on calls such as {@code containsKey(null)}, * {@code get(null)}, {@code keySet().contains(null)} or {@code remove(null)}. */ ALLOWS_NULL_KEY_QUERIES, ALLOWS_NULL_KEYS(ALLOWS_NULL_KEY_QUERIES), /** * The map does not throw {@code NullPointerException} on calls such as {@code
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
} public void testToOptionalNull() { Stream<@Nullable Object> stream = Stream.of((Object) null); try { stream.collect(MoreCollectors.toOptional()); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } } public void testToOptionalMultiple() { try { Stream.of(1, 2).collect(MoreCollectors.toOptional()); fail("Expected IllegalArgumentException");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java
fail("Expected NullPointerException"); } catch (NullPointerException expected) { // success } } @MapFeature.Require(absent = ALLOWS_NULL_VALUE_QUERIES) public void testContainsEntryNullDisallowedBecauseValueQueriesDisallowed() { try { multimap().containsEntry(k3(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Nov 16 17:41:24 GMT 2022 - 3.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java
@CollectionSize.Require(absent = ZERO) public void testReplaceEntry_presentNullValueUnsupported() { try { getMap().replace(k0(), v0(), null); fail("Expected NullPointerException"); } catch (NullPointerException expected) { } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) @CollectionSize.Require(absent = ZERO)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 5.3K bytes - Viewed (0)