()
| 117 | } |
| 118 | |
| 119 | public void testToStringList() { |
| 120 | List<String> expected = Arrays.asList(getClass().getPackage().getName(), getClass().getSimpleName(), "testToStringList"); |
| 121 | StringBuilder sb = new StringBuilder(); |
| 122 | for (String value : expected) { |
| 123 | sb.append(value).append('\0'); |
| 124 | } |
| 125 | sb.append('\0'); |
| 126 | |
| 127 | List<String> actual = Native.toStringList(sb.toString().toCharArray()); |
| 128 | assertEquals("Mismatched result size", expected.size(), actual.size()); |
| 129 | for (int index = 0; index < expected.size(); index++) { |
| 130 | String expValue = expected.get(index); |
| 131 | String actValue = actual.get(index); |
| 132 | assertEquals("Mismatched value at index #" + index, expValue, actValue); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | public void testDefaultStringEncoding() throws Exception { |
| 137 | final String UNICODE = "\u0444\u043b\u0441\u0432\u0443"; |
nothing calls this directly
no test coverage detected