public abstract class AbstractRepositoryTest extends Object implements IdentifiableTestClass
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Session |
session |
protected String |
testInstanceName |
protected javax.jcr.Node |
testRoot |
| Constructor and Description |
|---|
AbstractRepositoryTest(String testInstanceName) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.sling.jcr.api.SlingRepository |
getRepository()
Return a Repository - first call initializes it, and a JVM
shutdown hook is registered to stop it
|
protected javax.jcr.Session |
getSession()
Return a JCR Session, initialized on demand
|
protected javax.jcr.Node |
getTestRootNode()
Return a test root node, created on demand, with a unique path
|
String |
testClassName() |
protected String testInstanceName
protected javax.jcr.Session session
protected javax.jcr.Node testRoot
public AbstractRepositoryTest(String testInstanceName)
protected org.apache.sling.jcr.api.SlingRepository getRepository()
throws javax.jcr.RepositoryException,
NamingException
javax.jcr.RepositoryExceptionNamingExceptionprotected javax.jcr.Session getSession()
throws javax.jcr.RepositoryException,
NamingException
javax.jcr.RepositoryExceptionNamingExceptionprotected javax.jcr.Node getTestRootNode()
throws javax.jcr.RepositoryException,
NamingException
javax.jcr.RepositoryExceptionNamingExceptionpublic String testClassName()
testClassName in interface IdentifiableTestClassCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.