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

Method parseToStreamASCIIByte

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

Source from the content-addressed store, hash-verified

248 }
249
250 @Test
251 public void parseToStreamASCIIByte() throws Exception {
252 JsonParser jp = JSON.parseToStream(
253 "{\"utf\":\"aeriennes\",\"ascii\":\"aariennes\"}".getBytes());
254 HashMap<String, String> map = this.parseToMap(jp);
255 assertEquals("aeriennes", map.get("utf"));
256 assertEquals("aariennes", map.get("ascii"));
257 }
258
259 @Test (expected = IllegalArgumentException.class)
260 public void parseToStreamByteNull() 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