Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for ArrayIndexOutOfBoundsException (1.02 sec)

  1. src/test/java/jcifs/util/StringsTest.java

                // When & Then - the implementation throws ArrayIndexOutOfBoundsException when buffer bounds are exceeded
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                    Strings.findUNITermination(bufferWithoutTermination, 0, bufferWithoutTermination.length);
                }, "Should throw ArrayIndexOutOfBoundsException when termination not found within bounds");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DosErrorTest.java

        }
    
        @Test
        @DisplayName("Messages: accessing invalid index throws ArrayIndexOutOfBoundsException")
        void messagesOutOfBoundsThrows() {
            // Arrange
            String[] msgs = DosError.DOS_ERROR_MESSAGES;
    
            // Act & Assert: negative index
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                @SuppressWarnings("unused")
                String s = msgs[-1];
            });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

        void testReadDataWireFormatWithIOException() throws Exception {
            // Create an invalid security descriptor buffer that will cause ArrayIndexOutOfBoundsException
            byte[] buffer = new byte[4];
    
            // Set error code to 0
            setErrorCode(response, 0);
    
            // ArrayIndexOutOfBoundsException is thrown when buffer is too small
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            void testReadDataWireFormatEmptyBuffer() {
                byte[] buffer = new byte[0];
    
                // Empty buffer causes ArrayIndexOutOfBoundsException when trying to read
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                    response.readDataWireFormat(buffer, 0, 0);
                });
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java

              .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
              .put(
                  ArrayIndexOutOfBoundsException.class,
                  e -> e instanceof ArrayIndexOutOfBoundsException)
              .put(ArrayStoreException.class, e -> e instanceof ArrayStoreException)
              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/escape/ReflectionFreeAssertThrows.java

              .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
              .put(
                  ArrayIndexOutOfBoundsException.class,
                  e -> e instanceof ArrayIndexOutOfBoundsException)
              .put(ArrayStoreException.class, e -> e instanceof ArrayStoreException)
              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/ReflectionFreeAssertThrows.java

              .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
              .put(
                  ArrayIndexOutOfBoundsException.class,
                  e -> e instanceof ArrayIndexOutOfBoundsException)
              .put(ArrayStoreException.class, e -> e instanceof ArrayStoreException)
              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/ReflectionFreeAssertThrows.java

              .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
              .put(
                  ArrayIndexOutOfBoundsException.class,
                  e -> e instanceof ArrayIndexOutOfBoundsException)
              .put(ArrayStoreException.class, e -> e instanceof ArrayStoreException)
              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/ReflectionFreeAssertThrows.java

              .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
              .put(
                  ArrayIndexOutOfBoundsException.class,
                  e -> e instanceof ArrayIndexOutOfBoundsException)
              .put(ArrayStoreException.class, e -> e instanceof ArrayStoreException)
              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java

              .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
              .put(
                  ArrayIndexOutOfBoundsException.class,
                  e -> e instanceof ArrayIndexOutOfBoundsException)
              .put(ArrayStoreException.class, e -> e instanceof ArrayStoreException)
              .put(AssertionFailedError.class, e -> e instanceof AssertionFailedError)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top