Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 108 for IndexOutOfBoundsException (0.21 sec)

  1. okhttp/src/test/java/okhttp3/HeadersTest.kt

      }
    
      @Test fun nameIndexesAreStrict() {
        val headers = headersOf("a", "b", "c", "d")
        assertFailsWith<IndexOutOfBoundsException> {
          headers.name(-1)
        }
        assertThat(headers.name(0)).isEqualTo("a")
        assertThat(headers.name(1)).isEqualTo("c")
        assertFailsWith<IndexOutOfBoundsException> {
          headers.name(2)
        }
      }
    
      @Test fun valueIndexesAreStrict() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/exception/ClIndexOutOfBoundsException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    /**
     * {@link IndexOutOfBoundsException}をラップする例外です。
     *
     * @author wyukawa
     */
    public class ClIndexOutOfBoundsException extends IndexOutOfBoundsException {
    
        private static final long serialVersionUID = -824874776607593608L;
    
        /**
         * {@link ClIndexOutOfBoundsException}を作成します。
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

      }
    
      public void testCorrectExceptions() {
        TestHasher hasher = new TestHasher();
        assertThrows(IndexOutOfBoundsException.class, () -> hasher.putBytes(new byte[8], -1, 4));
        assertThrows(IndexOutOfBoundsException.class, () -> hasher.putBytes(new byte[8], 0, 16));
        assertThrows(IndexOutOfBoundsException.class, () -> hasher.putBytes(new byte[8], 0, -1));
      }
    
      private class TestHasher extends AbstractByteHasher {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/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: Sat Oct 19 02:56:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/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: Fri Oct 18 15:00:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      public void testGet_bad() {
        ImmutableDoubleArray iia = ImmutableDoubleArray.of(0, 1, 3);
        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(-1));
        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(3));
    
        ImmutableDoubleArray sub = iia.subArray(1, 2);
        assertThrows(IndexOutOfBoundsException.class, () -> sub.get(-1));
      }
    
      public void testIndexOf() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/ArrayIterator.java

            return index < items.length;
        }
    
        @Override
        public T next() {
            try {
                final T o = items[index];
                index++;
                return o;
            } catch (final IndexOutOfBoundsException e) {
                throw new NoSuchElementException("index=" + index);
            }
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooLow() {
        assertThrows(IndexOutOfBoundsException.class, () -> getList().set(-1, e3()));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooHigh() {
        int index = getNumElements();
        assertThrows(IndexOutOfBoundsException.class, () -> getList().set(index, e3()));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. 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)
  10. android/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)
Back to top