Class JsonEditorContract<N, M extends JsonModel<N> & JsonFactory<N> & JsonEditor<N>>

Type Parameters:
N - the node type of the model
M - 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 Details

    • JsonEditorContract

      protected JsonEditorContract()
      Makes the contract test. A subclass gives the model and a parser.