In the other tests it is a @BeforeClass. This particular file reflects the
examples in the README.md, where I believe we should remind people of the
need to call the init(). It does not cause any harm beyond inefficiency.


On Wed, Oct 2, 2013 at 12:03 AM, Peter Ansell <notifications@github.com>wrote:

> In
> integration/jena/src/test/java/com/github/jsonldjava/jena/ExampleTest.java:
>
> > +import com.hp.hpl.jena.query.Dataset;
> > +import com.hp.hpl.jena.query.DatasetFactory;
> > +import com.hp.hpl.jena.rdf.model.Model;
> > +import com.hp.hpl.jena.rdf.model.ModelFactory;
> > +import com.hp.hpl.jena.rdf.model.Property;
> > +import com.hp.hpl.jena.rdf.model.Resource;
> > +
> > +/**
> > + * Examples from README.md
> > + */
> > +public class ExampleTest {
> > +
> > +    @Ignore("Integration test")
> > +    @Test
> > +    public void jsonldToTurtleRIOT() throws Exception {
> > +        JenaJSONLD.init(); // Only needed once
>
> You can do this action in a @BeforeClass annotated static method to have
> it executed once for all runs through this test. Ditto for other uses of it
> in other methods.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jsonld-java/jsonld-java/pull/71/files#r6702663>
> .
>



-- 
Stian Soiland-Reyes
Manchester, UK
http://soiland-reyes.com/