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

Method parseToStreamUTFSStream

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

Source from the content-addressed store, hash-verified

263
264 // parseToStream - Stream
265 @Test
266 public void parseToStreamUTFSStream() throws Exception {
267 InputStream is = new ByteArrayInputStream(
268 "{\"utf\":\"aériennes\",\"ascii\":\"aariennes\"}".getBytes("UTF8"));
269 HashMap<String, String> map = this.parseToMap(is);
270 assertEquals("aériennes", map.get("utf"));
271 assertEquals("aariennes", map.get("ascii"));
272 }
273
274 @Test
275 public void parseToStreamASCIIStream() throws Exception {

Callers

nothing calls this directly

Calls 3

parseToMapMethod · 0.95
getBytesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected