MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / parseToStreamUTFSByte

Method parseToStreamUTFSByte

test/utils/TestJSON.java:241–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239
240 // parseToStream - Byte
241 @Test
242 public void parseToStreamUTFSByte() throws Exception {
243 JsonParser jp = JSON.parseToStream(
244 "{\"utf\":\"aériennes\",\"ascii\":\"aariennes\"}".getBytes("UTF8"));
245 HashMap<String, String> map = this.parseToMap(jp);
246 assertEquals("aériennes", map.get("utf"));
247 assertEquals("aariennes", map.get("ascii"));
248 }
249
250 @Test
251 public void parseToStreamASCIIByte() throws Exception {

Callers

nothing calls this directly

Calls 4

parseToStreamMethod · 0.95
parseToMapMethod · 0.95
getBytesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected