They are meant to be simple examples and not do any further testing. The
other unit tests do deeper checks, even down to graph equivalence.


On Wed, Oct 2, 2013 at 12:05 AM, Peter Ansell <notifications@github.com>wrote:

> In
> integration/jena/src/test/java/com/github/jsonldjava/jena/ExampleTest.java:
>
> > + */
> > +public class ExampleTest {
> > +
> > +    @Ignore("Integration test")
> > +    @Test
> > +    public void jsonldToTurtleRIOT() throws Exception {
> > +        JenaJSONLD.init(); // Only needed once
> > +        String url = "http://json-ld.org/test-suite/tests/expand-0002-in.jsonld";
> > +        // Detects language based on extension (ideally content type)
> > +        Model model = RDFDataMgr.loadModel(url);
> > +
> > +        // or explicit with base URI,  Lang and any supported source
> > +        InputStream inStream = new ByteArrayInputStream("{}".getBytes("UTF-8"));
> > +        RDFDataMgr.read(model, inStream, "http://example.com/", JenaJSONLD.JSONLD);
> > +
> > +        RDFDataMgr.write(System.out, model, Lang.TURTLE);
>
> It may be useful in the long term for these tests to be automated and
> actually do some checking on the results. E.g, test the number of unique
> subjects, predicates, and objects and the number of triples to provide a
> basic verification.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jsonld-java/jsonld-java/pull/71/files#r6702714>
> .
>



-- 
Stian Soiland-Reyes
Manchester, UK
http://soiland-reyes.com/