- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 344 for NullPointerException (0.12 sec)
-
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
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.9K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
EqualsTester tester = new EqualsTester(); assertThrows(NullPointerException.class, () -> tester.addEqualityGroup((Object[]) null)); } public void testNullObjectInEqualityGroup() { EqualsTester tester = new EqualsTester(); NullPointerException e = assertThrows(NullPointerException.class, () -> tester.addEqualityGroup(1, null, 3)); assertErrorMessage(e, "at index 1"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 12.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
ImmutableList.Builder<String> builder = ImmutableList.builder(); assertThrows(NullPointerException.class, () -> builder.add((String) null)); assertThrows(NullPointerException.class, () -> builder.add((String[]) null)); assertThrows(NullPointerException.class, () -> builder.add("a", null, "b")); } public void testBuilderAddAllHandlesNullsCorrectly() { {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
assertThrows(NullPointerException.class, () -> builder.add((String) null)); } { ImmutableSet.Builder<String> builder = this.<String>builder(); assertThrows(NullPointerException.class, () -> builder.add((String[]) null)); } { ImmutableSet.Builder<String> builder = this.<String>builder(); assertThrows(NullPointerException.class, () -> builder.add("a", (String) null));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java
public void testFind_nullNotContainedAndUnsupported() { try { assertEquals(getMethodName() + "(nullNotPresent) should return -1 or throw", -1, find(null)); } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testFind_nonNullWhenNullContained() { initCollectionWithNullElement();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
Set<Entry<K, V>> entrySet = map.entrySet(); if (supportsRemove) { assertThrows(NullPointerException.class, () -> entrySet.removeAll(null)); } else { try { entrySet.removeAll(null); fail("Expected UnsupportedOperationException or NullPointerException."); } catch (UnsupportedOperationException | NullPointerException e) { // Expected. } } assertInvariants(map); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectPreconditions.java
@ElementTypesAreNonnullByDefault final class CollectPreconditions { static void checkEntryNotNull(Object key, Object value) { if (key == null) { throw new NullPointerException("null key in entry: null=" + value); } else if (value == null) { throw new NullPointerException("null value in entry: " + key + "=null"); } } @CanIgnoreReturnValue static int checkNonnegative(int value, String name) { if (value < 0) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 30 10:33:07 UTC 2021 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableList.java
* * @throws NullPointerException if the element is null */ public static <E> ImmutableList<E> of(E e1) { return new SingletonImmutableList<>(e1); } /** * Returns an immutable list containing the given elements, in order. * * @throws NullPointerException if any element is null */ public static <E> ImmutableList<E> of(E e1, E e2) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 16 19:14:45 UTC 2024 - 30.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* fail to insert an element only by throwing an exception. * * @throws NullPointerException if the specified element is null */ @CanIgnoreReturnValue @Override public boolean offer(E e) { if (e == null) throw new NullPointerException(); final Monitor monitor = this.monitor; if (monitor.enterIf(notFull)) { try { insert(e);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
checkResult(J, ITERABLE_123, "1-2-3"); assertThrows(NullPointerException.class, () -> J.join(ITERABLE_NULL)); assertThrows(NullPointerException.class, () -> J.join(ITERABLE_1_NULL_2)); assertThrows(NullPointerException.class, () -> J.join(ITERABLE_NULL.iterator())); assertThrows(NullPointerException.class, () -> J.join(ITERABLE_1_NULL_2.iterator())); } public void testOnCharOverride() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 11.7K bytes - Viewed (0)