-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 25/11/12 14:15, Claude Warren wrote:
> I am looking for a set of tests that I would call contract tests.
<snip example model tests>
I hope you're not trying to implement model. Will assume Graph.
> Basically a set of tests that prove an implementation meets all
> the contracts of an API is what I am looking for.
IIRC I've used com.hp.hpl.jena.graph.test.AbstractTestGraph for this
purpose. Subclass and provide a getGraph() method.
Edit: on further inspection you may want MetaTestGraph:
MetaTestGraph.suite(MetaTestGraph.class, MyGraph.class)
returns a suite of tests.
Damian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iEYEARECAAYFAlCzRhsACgkQAyLCB+mTtykgJgCg0pyP+1gi0w6zd0pDv+LpqOov
iwwAoKwFmIp/T4O8MyYQk1MTMs/JwvU3
=Nuwu
-----END PGP SIGNATURE-----