Package org.opensaml.storage.testing
Class StorageServiceTest
java.lang.Object
org.opensaml.storage.testing.StorageServiceTest
Test of
StorageService implementations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classAnnotated object class to test with. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SecureRandomRandom source.protected EnumeratableStorageServiceService being tested. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest context enumeration.voidTest of expiration handling.protected abstract EnumeratableStorageServiceReturns a fresh service instance to test.voidobjects()Test object handling.protected voidsetUp()voidstrings()Basic test of string records.protected voidtearDown()protected voidCalled to init a thread in preparation to run a test.voidupdate()Test updates.voidupdates()Test of versioned update.
-
Field Details
-
random
Random source.
-
-
Constructor Details
-
StorageServiceTest
public StorageServiceTest()
-
-
Method Details
-
getStorageService
Returns a fresh service instance to test.- Returns:
- a new instance
-
threadInit
protected void threadInit()Called to init a thread in preparation to run a test. -
setUp
- Throws:
ComponentInitializationException
-
tearDown
@AfterClass protected void tearDown() -
strings
Basic test of string records.- Throws:
IOException- on error
-
expiration
Test of expiration handling.- Throws:
IOException- on errorInterruptedException- on thread interruption
-
updates
Test of versioned update.- Throws:
IOException- on errorVersionMismatchException- on record version mismatch
-
update
Test updates.- Throws:
IOException- on error
-
objects
Test object handling.- Throws:
IOException- on errorInterruptedException- on thread interruption
-
enumerate
Test context enumeration.- Throws:
IOException- on error
-