Class JsonEditorContract<N, M extends JsonModel<N> & JsonFactory<N> & JsonEditor<N>>
java.lang.Object
ca.marcusdunn.jsonlens.testkit.JsonModelContract<N>
ca.marcusdunn.jsonlens.testkit.JsonFactoryContract<N,M>
ca.marcusdunn.jsonlens.testkit.JsonEditorContract<N,M>
- Type Parameters:
N- the node type of the modelM- the type of the model
public abstract class JsonEditorContract<N, M extends JsonModel<N> & JsonFactory<N> & JsonEditor<N>>
extends JsonFactoryContract<N,M>
Tests that a model that also implements
JsonEditor is well-formed: each change gives the
expected value, each method returns the value that it replaced or removed, and the reverse
changes give the original value again.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class JsonFactoryContract
factory, modelMethods inherited from class JsonModelContract
keepsDuplicateNames, parse, randomDocuments, readsAnyExponent
-
Constructor Details
-
JsonEditorContract
protected JsonEditorContract()Makes the contract test. A subclass gives the model and a parser.
-