use of com.hazelcast.internal.json.Location in project hazelcast by hazelcast.
the class JsonParser_Test method parse_handlesPositionsCorrectlyWhenInputExceedsBufferSize.
@Test
public void parse_handlesPositionsCorrectlyWhenInputExceedsBufferSize() {
final String input = "{\n \"a\": 23,\n \"b\": 42,\n}";
ParseException exception = assertException(ParseException.class, new RunnableEx() {
public void run() throws IOException {
parser.parse(new StringReader(input), 3);
}
});
assertEquals(new Location(24, 4, 1), exception.getLocation());
}
Aggregations