|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.sling.commons.testing.jcr.RepositoryTestBase
public class RepositoryTestBase
Base class for JUnit3-style tests which need a Repository.
Should eventually be deprecated in favor of RepositoryProvider
which is less intrusive
| Field Summary | |
|---|---|
protected javax.jcr.Session |
session
|
protected javax.jcr.Node |
testRoot
|
| Constructor Summary | |
|---|---|
RepositoryTestBase()
|
|
| Method Summary | |
|---|---|
protected org.apache.sling.jcr.api.SlingRepository |
getRepository()
Return a Repository |
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 |
protected void |
tearDown()
|
| Methods inherited from class junit.framework.TestCase |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected javax.jcr.Node testRoot
protected javax.jcr.Session session
| Constructor Detail |
|---|
public RepositoryTestBase()
| Method Detail |
|---|
protected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseException
protected javax.jcr.Session getSession()
throws javax.jcr.RepositoryException,
NamingException
javax.jcr.RepositoryException
NamingException
protected javax.jcr.Node getTestRootNode()
throws javax.jcr.RepositoryException,
NamingException
javax.jcr.RepositoryException
NamingException
protected org.apache.sling.jcr.api.SlingRepository getRepository()
throws javax.jcr.RepositoryException,
NamingException
javax.jcr.RepositoryException
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||