Skip to content

Writing unit tests for the model

Paul Harrison edited this page Feb 23, 2022 · 1 revision

The standard VO-DML tools can automatically generate java code which will appear in the build/generated/sources/vodml/java directory (both Eclipse and IntelliJ IDEA will automatically add this to the build path using their gradle integrations)

The model is unit tested with code in the src/test/java/org/ivoa/dm/proposal/prop directory with a org.ivoa.dm.proposal.prop.AbstractProposalTest base class that provided facilities for round-trip testing of model instances to and from an XML representation add well as saving and retrieving the model instance to a relational database.