|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.TestRepository
Utility class for easy handling a test repository. This class contains
a static test repository instance for use by test cases. The
Repository.login()
method of the test repository
instance should return a session with full read-write access.
Method Summary | |
static Repository |
getInstance()
Returns the test repository instance. |
static void |
setInstance(Repository repository)
Sets the given repository as the test repository instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Repository getInstance() throws RepositoryException
setInstance(Repository)
as
the test repostitory, then a simple TransientRepository
instance is created with the standard test repository configuration
and the test repository location (either "jackrabbit-test-repository"
or the value of the "org.apache.jackrabbit.test.repository.home"
system property).
RepositoryException
- if a test repository can not be instantiatedpublic static void setInstance(Repository repository)
repository
- test repository
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |