Michael,
Most of the testing gets done on the graph-level object, Model and
Dataset are just wrapper, Dataset particularly is quite a thin wrapper.
That, and a lot of the coverage is by being used in other places.
com.hp.hpl.jena.sparql.core.AbstractTestDataset
com.hp.hpl.jena.sparql.core.AbstractDatasetGraphTests
com.hp.hpl.jena.graph.test.AbstractTestGraph
com.hp.hpl.jena.sparql.graph.AbstractTestGraph2
com.hp.hpl.jena.tdb.migrateAbstractTestTransaction.
(hmm - the package name theer is a bit of a clue ...)
Andy
On 25/03/13 14:17, Claude Warren wrote:
Michael,
I just spent some time reworking the Model tests in 2.10 so that they can
be run by other implementations of Model. As far as I know there has not
been any similar work for dataset.
see
http://svn.apache.org/repos/asf/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/rdf/model/test/TestPackage.java
for an example of how to implement the TestingModelFactory and plug it into
the testing framework.
As I recall there is a directory of testing files that need to be included
(there is a defect for this that I have not had a chance to work on yet).
https://github.com/Claudenw/JenaSecurity/blob/master/JenaSecurity/src/test/java/org/xenei/jena/security/contract/model/TestPackage.java
Shows how I used the tests in a 3rd party package.
Claude
On Mon, Mar 25, 2013 at 12:18 PM, Mike Grove <[email protected]> wrote:
I am wondering what would be the best choice to see if a custom
Model/Dataset worked as expected? I have some custom tests, but I'm sure
those are a bit short on coverage. So if there was some way I could re-use
the same tests Jena uses, that'd be helpful.
Thanks.
Michael