bolerio / mjson

Lean JSON Library for Java, with a compact, elegant API.
Apache License 2.0
83 stars 24 forks source link

Normal case API unit tests #16

Closed bolerio closed 8 years ago

bolerio commented 8 years ago

The API is simple and well-defined, but our pluggable factory allows for different implementations of all JSON types. It would be nice to have a comprehensive test harness so alternative implementations can be tests. One way to organize the test suite is by JSON type. So have a class containing tests for boolean, another for strings, another for objects, another for arrays, another for numbers and one for nulls. Because of the unified interface for all JSON types, it should be easy to just go over the methods and make sure they all work.