Package org.shredzone.acme4j.toolbox
Class JSONTest
java.lang.Object
org.shredzone.acme4j.toolbox.JSONTest
Unit test for
JSON
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test all array related methods.void
Test all array iterator related methods.void
Test the array stream.void
Test that an emptyJSON
is empty.void
Test empty array.void
Test all getters on existing values.void
Test that getters are null safe.void
Test all object related methods.void
Test parsers.void
Test that bad JSON fails.void
Test that serialization works correctly.void
Test that wrong getters return an exception.
-
Constructor Details
-
JSONTest
public JSONTest()
-
-
Method Details
-
testEmpty
Test that an emptyJSON
is empty. -
testParsers
Test parsers.- Throws:
IOException
-
testParsersBadJSON
Test that bad JSON fails. -
testObject
Test all object related methods. -
testArray
Test all array related methods. -
testEmptyArray
Test empty array. -
testArrayIterator
Test all array iterator related methods. -
testArrayStream
Test the array stream. -
testGetter
Test all getters on existing values. -
testNullGetter
Test that getters are null safe. -
testWrongGetter
Test that wrong getters return an exception. -
testSerialization
Test that serialization works correctly.- Throws:
IOException
ClassNotFoundException
-