()
| 44 | private TestLib libLatin1Interface; |
| 45 | |
| 46 | @Override |
| 47 | protected void setUp() { |
| 48 | libUTF8 = NativeLibrary.getInstance("testlib", |
| 49 | Collections.singletonMap(Library.OPTION_STRING_ENCODING, "UTF-8")); |
| 50 | libLatin1 = NativeLibrary.getInstance("testlib", |
| 51 | Collections.singletonMap(Library.OPTION_STRING_ENCODING, "ISO-8859-1")); |
| 52 | Native.register(TestLibUTF8.class, libUTF8); |
| 53 | Native.register(TestLibLatin1.class, libLatin1); |
| 54 | libUTF8Direct = new TestLibUTF8(); |
| 55 | libLatin1Direct = new TestLibLatin1(); |
| 56 | libUTF8Interface = Native.load("testlib", TestLib.class, |
| 57 | Collections.singletonMap(Library.OPTION_STRING_ENCODING, "UTF-8")); |
| 58 | libLatin1Interface = Native.load("testlib", TestLib.class, |
| 59 | Collections.singletonMap(Library.OPTION_STRING_ENCODING, "ISO-8859-1")); |
| 60 | } |
| 61 | |
| 62 | public void testTooManyArgs() { |
| 63 | NativeLibrary lib = NativeLibrary.getInstance(Platform.C_LIBRARY_NAME); |
nothing calls this directly
no test coverage detected