Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Nov 23, 2024
1 parent 9c36c57 commit a43e03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/jssc/SerialNativeInterfaceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void throwsNpeIfPassedBufferIsNull() throws Exception {
}

@Test
public void throwsIaeIfCountNegative() {
public void throwsIaeIfCountNegative() throws Exception {
SerialNativeInterface testTarget = new SerialNativeInterface();
byte[] ret;
try{
Expand All @@ -114,7 +114,7 @@ public void throwsIaeIfCountNegative() {
+" test run will just happily wait infinitely for those 2GiB to arrive"
+" at the stdin fd. Feel free to remove this test if you think it"
+" doesn't make sense to have it here.")
public void throwsOOMExIfRequestTooLarge() {
public void throwsOOMExIfRequestTooLarge() throws Exception {
SerialNativeInterface testTarget = new SerialNativeInterface();
try{
byte[] ret = testTarget.readBytes(0, Integer.MAX_VALUE);
Expand Down

0 comments on commit a43e03a

Please sign in to comment.