()
| 56 | } |
| 57 | |
| 58 | @Test |
| 59 | public void parseToObjectStringAsciiString() throws Exception { |
| 60 | @SuppressWarnings("unchecked") |
| 61 | HashMap<String, String> map = JSON.parseToObject( |
| 62 | "{\"utf\":\"aeriennes\",\"ascii\":\"aariennes\"}", HashMap.class); |
| 63 | assertEquals("aeriennes", map.get("utf")); |
| 64 | assertEquals("aariennes", map.get("ascii")); |
| 65 | } |
| 66 | |
| 67 | @Test (expected = IllegalArgumentException.class) |
| 68 | public void parseToObjectStringNull() throws Exception { |
nothing calls this directly
no test coverage detected