- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 108 for IndexOutOfBoundsException (0.12 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java
.put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
public void testAddAllAtIndex_negative() { assertThrows( IndexOutOfBoundsException.class, () -> getList().addAll(-1, MinimalCollection.of(e3()))); expectUnchanged(); expectMissing(e3()); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) public void testAddAllAtIndex_tooLarge() { assertThrows( IndexOutOfBoundsException.class,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java
int length = 42; AtomicReferenceArray<String> refArray = Atomics.newReferenceArray(length); for (int i = 0; i < length; ++i) { assertEquals(null, refArray.get(i)); } assertThrows(IndexOutOfBoundsException.class, () -> refArray.get(length)); } public void testNewReferenceArray_withNegativeLength() throws Exception { assertThrows(NegativeArraySizeException.class, () -> Atomics.newReferenceArray(-1)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java
.put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt
) val buffer = Buffer() assertFailsWith<IndexOutOfBoundsException> { operator.read(0, buffer, -1L) } } @Test fun writeBounds() { val operator = FileOperator( randomAccessFile!!.getChannel(), ) val buffer = Buffer().writeUtf8("abc") assertFailsWith<IndexOutOfBoundsException> { operator.write(0, buffer, -1L) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
} public void testCorrectExceptions() { Sink sink = new Sink(4); assertThrows(IndexOutOfBoundsException.class, () -> sink.putBytes(new byte[8], -1, 4)); assertThrows(IndexOutOfBoundsException.class, () -> sink.putBytes(new byte[8], 0, 16)); assertThrows(IndexOutOfBoundsException.class, () -> sink.putBytes(new byte[8], 0, -1)); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java
expectContents(elements); } }.test(); } public void testListIterator_tooLow() { assertThrows(IndexOutOfBoundsException.class, () -> getList().listIterator(-1)); } public void testListIterator_tooHigh() { assertThrows( IndexOutOfBoundsException.class, () -> getList().listIterator(getNumElements() + 1)); } public void testListIterator_atSize() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java
.put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 16:27:30 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java
.put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java
.put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 16:27:30 UTC 2024 - 6.3K bytes - Viewed (0)