()
| 97 | } |
| 98 | |
| 99 | @Test |
| 100 | public void parseToObjectByteString() throws Exception { |
| 101 | @SuppressWarnings("unchecked") |
| 102 | HashMap<String, String> map = JSON.parseToObject( |
| 103 | "{\"utf\":\"aeriennes\",\"ascii\":\"aariennes\"}".getBytes(), |
| 104 | HashMap.class); |
| 105 | assertEquals("aeriennes", map.get("utf")); |
| 106 | assertEquals("aariennes", map.get("ascii")); |
| 107 | } |
| 108 | |
| 109 | @Test (expected = IllegalArgumentException.class) |
| 110 | public void parseToObjectByteNull() throws Exception { |
nothing calls this directly
no test coverage detected