Fix testLoadLibraryNullPath() test case (#12)

The tested method throws IllegalArgumentException instead of
NullPointerException when called with a null argument.
This commit is contained in:
Adam Heinrich
2018-07-19 21:28:16 +02:00
parent 3395bb9bfa
commit e6a3948966

View File

@@ -22,7 +22,7 @@ public class NativeUtilsTest {
NativeUtils.loadLibraryFromJar("/libtest.so");
}
@Test(expected=NullPointerException.class)
@Test(expected=IllegalArgumentException.class)
public void testLoadLibraryNullPath() throws IOException {
NativeUtils.loadLibraryFromJar(null);
}