mirror of
https://github.com/jlengrand/native-utils.git
synced 2026-03-10 08:31:22 +00:00
Fix testLoadLibraryNullPath() test case (#12)
The tested method throws IllegalArgumentException instead of NullPointerException when called with a null argument.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user