public abstract class AbstractJSONConformance<A extends net.automatalib.ts.acceptors.DeterministicAcceptorTS<?,JSONSymbol>> extends Object
In our case, conformance testing means that we generate JSON documents and check that the hypothesis and the classical validator agree on whether the document is valid.
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_NUMBER_SYMBOLS_GIBBERISH |
Modifier | Constructor and Description |
---|---|
protected |
AbstractJSONConformance(int numberTests,
boolean canGenerateInvalid,
int maxProperties,
int maxItems,
be.ac.umons.jsonschematools.JSONSchema schema,
Random random,
boolean shuffleKeys,
net.automatalib.words.Alphabet<JSONSymbol> alphabet) |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateInvalid() |
protected de.learnlib.api.query.DefaultQuery<JSONSymbol,Boolean> |
checkDocument(A hypothesis,
org.json.JSONObject document) |
protected de.learnlib.api.query.DefaultQuery<JSONSymbol,Boolean> |
checkWord(A hypothesis,
net.automatalib.words.Word<JSONSymbol> word) |
protected net.automatalib.words.Word<JSONSymbol> |
generateGibberish() |
protected net.automatalib.words.Alphabet<JSONSymbol> |
getAlphabet() |
int |
getMaxItems() |
int |
getMaxProperties() |
protected Random |
getRandom() |
be.ac.umons.jsonschematools.JSONSchema |
getSchema() |
protected int |
numberTests() |
protected boolean |
shouldShuffleKeys() |
protected static final int MAX_NUMBER_SYMBOLS_GIBBERISH
protected AbstractJSONConformance(int numberTests, boolean canGenerateInvalid, int maxProperties, int maxItems, be.ac.umons.jsonschematools.JSONSchema schema, Random random, boolean shuffleKeys, net.automatalib.words.Alphabet<JSONSymbol> alphabet)
protected net.automatalib.words.Alphabet<JSONSymbol> getAlphabet()
protected boolean shouldShuffleKeys()
protected int numberTests()
protected Random getRandom()
public be.ac.umons.jsonschematools.JSONSchema getSchema()
public boolean canGenerateInvalid()
public int getMaxItems()
public int getMaxProperties()
protected net.automatalib.words.Word<JSONSymbol> generateGibberish()
protected de.learnlib.api.query.DefaultQuery<JSONSymbol,Boolean> checkDocument(A hypothesis, org.json.JSONObject document)
protected de.learnlib.api.query.DefaultQuery<JSONSymbol,Boolean> checkWord(A hypothesis, net.automatalib.words.Word<JSONSymbol> word)
Copyright © 2022. All rights reserved.