- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 58 for ArrayIndexOutOfBoundsException (0.76 sec)
-
guava-tests/test/com/google/common/cache/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.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
assertTrue(repr.contains("newOplockLevel=2")); } /** * Test decoding of bytes buffer that is too short triggers an exception. * Note: The actual implementation throws ArrayIndexOutOfBoundsException * when the buffer is too short, not SMBProtocolDecodingException. */ @Test void readBytesWireFormatTooShortException() { Configuration cfg = mock(Configuration.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
@DisplayName("Insufficient buffer causes ArrayIndexOutOfBoundsException") void shortBuffer_throwsAIOOBE() { // Arrange: length 1 means readInt2 will access index 1 and fail byte[] buffer = new byte[1]; Smb2LogoffResponse resp = newResponse(); // Act & Assert assertThrows(ArrayIndexOutOfBoundsException.class, () -> resp.readBytesWireFormat(buffer, 0)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
// Arrange Smb2LogoffRequest req = newRequest(); byte[] tiny = new byte[3]; // less than 4 bytes available // Act/Assert assertThrows(ArrayIndexOutOfBoundsException.class, () -> req.writeBytesWireFormat(tiny, 0)); } @Test @DisplayName("writeBytesWireFormat throws with negative index") void writeBytesWireFormat_throwsIfNegativeIndex() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/WinErrorTest.java
} } } @Nested @DisplayName("Boundary conditions") class Boundary { @Test void accessingInvalidIndexThrows() { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { int dummy = WinError.WINERR_CODES[WinError.WINERR_CODES.length]; }); } } @Test @DisplayName("Mockito mock of WinError")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/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) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
byte[] dst = new byte[10]; // Too small for the full parameters // Should throw ArrayIndexOutOfBoundsException assertThrows(ArrayIndexOutOfBoundsException.class, () -> { netServerEnum2.writeParametersWireFormat(dst, 0); }); } @Test @DisplayName("Test writeParametersWireFormat with large buffer succeeds") void testWriteParametersWireFormatLargeBuffer() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/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.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/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.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/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.9K bytes - Viewed (0)