public class JPAStorageServiceTest extends StorageServiceTest
JPAStorageService implementation.| Modifier and Type | Field and Description |
|---|---|
private Object[][] |
contexts
Contexts used for testing.
|
private EntityManagerFactory |
factory
Entity manager factory.
|
protected StorageService |
storageService
Storage service to test.
|
random, shared| Constructor and Description |
|---|
JPAStorageServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
clearDatabase()
Removes all test data from the database.
|
Object[][] |
contexts() |
private EntityManagerFactory |
createEntityManagerFactory()
Creates an entity manager factory instance.
|
protected StorageService |
getStorageService() |
void |
multithread(String context) |
void |
setupEntityManagerFactory()
Creates the shared instance of the entity manager factory.
|
void |
validConfig() |
expiration, objects, setUp, strings, tearDown, threadInit, updatesprotected StorageService storageService
private EntityManagerFactory factory
private Object[][] contexts
public void setupEntityManagerFactory()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprivate EntityManagerFactory createEntityManagerFactory() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void clearDatabase()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
IOException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionIOException@Nonnull protected StorageService getStorageService()
getStorageService in class StorageServiceTestpublic void validConfig()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void cleanup()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
IOException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionIOExceptionpublic void multithread(String context) throws IOException
IOExceptionCopyright © 1999–2014. All rights reserved.