Package org.tweetyproject.lp.asp.parser
Class ASPParserTest
java.lang.Object
org.tweetyproject.lp.asp.parser.ASPParserTest
This class tests all important functions of the ASP-Core-2 Parser in
 combination with InstantiateVisitor, which is responsible for walking through
 the parse-tree and generating in-memory classes of the parsed ASP program.
- Author:
- Anna Gessler, Tim Janus
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaggregation testvoidchoice testvoidcling testvoidcomparative testvoidterm testvoidDLVTest()dlv teststatic voidinit()initializes valuesvoidliteral testvoidoptimization statement testvoidtest 1voidasp rules testvoidterm testvoidweight at level test
- 
Field Details- 
DEFAULT_TIMEOUTpublic static final int DEFAULT_TIMEOUTdefault timeout- See Also:
 
 
- 
- 
Constructor Details- 
ASPParserTestpublic ASPParserTest()
 
- 
- 
Method Details- 
initpublic static void init()initializes values
- 
ProgramTest
- 
ClingoTestcling test- Throws:
- ParseException- parsing exception
 
- 
DLVTest
- 
SimpleASPRulesTestasp rules test- Throws:
- ParseException- parsing exception
 
- 
AggregateTestaggregation test- Throws:
- ParseException- parsing exception
 
- 
OptimizationStatementTestoptimization statement test- Throws:
- ParseException- parsing exception
 
- 
ChoiceTest
- 
WeightAtLevelTestweight at level test- Throws:
- ParseException- parsing exception
 
- 
SimpleTermTestterm test- Throws:
- ParseException- parsing exception
 
- 
ComplexTermTestterm test- Throws:
- ParseException- parsing exception
 
- 
ComparativeTestcomparative test- Throws:
- ParseException- parsing exception
 
- 
LiteralTestliteral test- Throws:
- ParseException- parsing exception
 
 
-