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

Method parseToStreamASCIIStream

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

Source from the content-addressed store, hash-verified

272 }
273
274 @Test
275 public void parseToStreamASCIIStream() throws Exception {
276 InputStream is = new ByteArrayInputStream(
277 "{\"utf\":\"aeriennes\",\"ascii\":\"aariennes\"}".getBytes());
278 HashMap<String, String> map = this.parseToMap(is);
279 assertEquals("aeriennes", map.get("utf"));
280 assertEquals("aariennes", map.get("ascii"));
281 }
282
283 @Test (expected = IllegalArgumentException.class)
284 public void parseToStreamStreamNull() throws Exception {

Callers

nothing calls this directly

Calls 3

parseToMapMethod · 0.95
getBytesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected