|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.TestRepository
public class 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 javax.jcr.Repository |
getInstance()
Returns the test repository instance. |
static void |
setInstance(javax.jcr.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 javax.jcr.Repository getInstance()
throws javax.jcr.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).
javax.jcr.RepositoryException - if a test repository can not be instantiatedpublic static void setInstance(javax.jcr.Repository repository)
repository - test repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||