I am looking for a set of tests that I would call contract tests. I am not looking for unit tests that show a model insert works but rather things like the following:
// create a model Model m = ModelFactory.createDefaultModel(); // create a resource Resource r = m.createResource( "foo" ); // show resource is not in model Assert.assertEquals( 0, r.listProperties().toList().size() ); // add resource to model m.add( r, ResourceFactory.createProperty( "bar"), "Bar"); // add non model resource with same resource URL m.add( ResourceFactory.createResource( "foo" ), ResourceFactory.createProperty( "baz"), "Baz"); // verify that the existing resource was updated Assert.assertEquals( 2, r.listProperties().toList().size() ); Basically a set of tests that prove an implementation meets all the contracts of an API is what I am looking for. -- I like: Like Like - The likeliest place on the web Identity: https://www.identify.nu/[email protected] LinkedIn: http://www.linkedin.com/in/claudewarren
