Class RepositoryTest
- java.lang.Object
-
- org.eclipse.rdf4j.testsuite.repository.RepositoryTest
-
public abstract class RepositoryTest extends Object
Integration test suite for implementations of Repository.- Author:
- Jeen Broekstra
-
-
Field Summary
Fields Modifier and Type Field Description protected Resourcealexanderprotected Resourcealiceprotected Resourcebobprotected IRIcontext1protected IRIcontext2protected static StringFOAF_NSprotected IRImboxprotected LiteralmboxAliceprotected LiteralmboxBobprotected IRInameprotected LiteralnameAliceprotected LiteralnameBobprotected IRIpublisherstatic StringTEST_DIR_PREFIXprotected RepositorytestRepositoryorg.junit.rules.TimeouttoTimeout all individual tests after 1 minute.protected IRIunknownContextprotected ValueFactoryvfprotected LiteralАлександър
-
Constructor Summary
Constructors Constructor Description RepositoryTest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RepositorycreateRepository()Gets an (uninitialized) instance of the repository that should be tested.voidsetUp()static voidsetUpClass()voidtearDown()voidtestAutoInit()voidtestShutdownFollowedByInit()
-
-
-
Field Detail
-
to
public org.junit.rules.Timeout to
Timeout all individual tests after 1 minute.
-
FOAF_NS
protected static final String FOAF_NS
- See Also:
- Constant Field Values
-
TEST_DIR_PREFIX
public static final String TEST_DIR_PREFIX
- See Also:
- Constant Field Values
-
testRepository
protected Repository testRepository
-
vf
protected ValueFactory vf
-
bob
protected Resource bob
-
alice
protected Resource alice
-
alexander
protected Resource alexander
-
name
protected IRI name
-
mbox
protected IRI mbox
-
publisher
protected final IRI publisher
-
unknownContext
protected IRI unknownContext
-
context1
protected IRI context1
-
context2
protected IRI context2
-
nameAlice
protected Literal nameAlice
-
nameBob
protected Literal nameBob
-
mboxAlice
protected Literal mboxAlice
-
mboxBob
protected Literal mboxBob
-
Александър
protected Literal Александър
-
-
Method Detail
-
createRepository
protected abstract Repository createRepository() throws Exception
Gets an (uninitialized) instance of the repository that should be tested.- Returns:
- an uninitialized repository.
- Throws:
Exception
-
testShutdownFollowedByInit
public void testShutdownFollowedByInit() throws Exception- Throws:
Exception
-
-