()
| 206 | } |
| 207 | |
| 208 | @Test |
| 209 | public void testBytesToMap() throws IOException |
| 210 | { |
| 211 | ResourceFieldSchema fs = GenRandomData.getRandMapFieldSchema(); |
| 212 | |
| 213 | for (int i = 0; i < MAX; i++) { |
| 214 | Map<String, Object> m = GenRandomData.genRandMap(r,5); |
| 215 | String expectedMapString = DataType.mapToString(m); |
| 216 | Map<String, Object> convertedMap = ps.getLoadCaster().bytesToMap(expectedMapString.getBytes(), fs); |
| 217 | assertTrue(TestHelper.mapEquals(m, convertedMap)); |
| 218 | } |
| 219 | |
| 220 | } |
| 221 | |
| 222 | @Test |
| 223 | public void testBooleanToBytes() throws IOException { |
nothing calls this directly
no test coverage detected