diff --git a/src/test/java/jssc/SerialNativeInterfaceTest.java b/src/test/java/jssc/SerialNativeInterfaceTest.java index 07dafde67..3fa51d151 100644 --- a/src/test/java/jssc/SerialNativeInterfaceTest.java +++ b/src/test/java/jssc/SerialNativeInterfaceTest.java @@ -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{ @@ -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);