Class RepositoryProvider
java.lang.Object
org.apache.sling.commons.testing.jcr.RepositoryProvider
Provide a Repository to test classes, on-demand,
with auto-cleanup at JVM shutdown.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.jcr.api.SlingRepositoryReturn a SlingRepository.static RepositoryProviderinstance()
-
Method Details
-
instance
-
getRepository
public org.apache.sling.jcr.api.SlingRepository getRepository() throws javax.jcr.RepositoryExceptionReturn a SlingRepository. First call initializes it, and a JVM shutdown hook is registered to stop it.- Throws:
javax.jcr.RepositoryException
-