Class JDBCStorageServiceTest
java.lang.Object
org.opensaml.storage.testing.StorageServiceTest
net.shibboleth.plugin.storage.jdbc.impl.JDBCStorageServiceTest
Test of
JDBCStorageService implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate Object[][]Contexts used for testing.private org.apache.commons.dbcp2.BasicDataSourceprivate static final Stringprivate static final Stringprivate net.shibboleth.plugin.storage.jdbc.impl.JDBCStorageServiceprivate final booleanFields inherited from class org.opensaml.storage.testing.StorageServiceTest
random, shared -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcleanup()Object[][]contexts()protected EnumeratableStorageServicevoidvoidvoidmultithread(String context) voidvoidsetUp()Creates the shared instance of the entity manager factory.private voidprivate voidprotected voidtearDown()voidupdate()Methods inherited from class org.opensaml.storage.testing.StorageServiceTest
enumerate, expiration, objects, strings, threadInit, updates
-
Field Details
-
storageService
@NonnullBeforeTest private net.shibboleth.plugin.storage.jdbc.impl.JDBCStorageService storageService -
USE_SQLSERVER
private final boolean USE_SQLSERVER- See Also:
-
INIT_SQL_SQLSERVER
- See Also:
-
INIT_SQL_HSQLDB
- See Also:
-
CLEANUP_SQL
- See Also:
-
contexts
Contexts used for testing. -
dataSource
-
-
Constructor Details
-
JDBCStorageServiceTest
public JDBCStorageServiceTest()Constructor.
-
-
Method Details
-
setupHSSQLDB
- Throws:
ClassNotFoundExceptionSQLException
-
setupSQLServer
- Throws:
ClassNotFoundExceptionSQLException
-
setUp
Creates the shared instance of the entity manager factory.- Overrides:
setUpin classStorageServiceTest- Throws:
ComponentInitializationException
-
tearDown
@AfterClass protected void tearDown()- Overrides:
tearDownin classStorageServiceTest
-
getStorageService
- Specified by:
getStorageServicein classStorageServiceTest
-
cleanup
-
update
- Overrides:
updatein classStorageServiceTest- Throws:
ComponentInitializationExceptionIOException
-
contexts
- Throws:
Exception
-
multithread
- Throws:
IOException
-
multithreadCaseSensitiveKey
- Throws:
IOException
-
keyCollision
- Throws:
IOException
-
caseSensitiveContext
- Throws:
IOException
-
caseSensitiveKey
- Throws:
IOException
-
largeValue
- Throws:
IOException
-