Class MemcachedStorageServiceTest
java.lang.Object
org.opensaml.storage.impl.memcached.MemcachedStorageServiceTest
Unit test for
MemcachedStorageService class.
NOTE
This test is not run by default since it requires an external test fixture, namely a memcached server running on
localhost:11211. This test may be executed by running the test goal with the all maven
profile if a local memcached service is available.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContextKeys(String context, org.cryptacular.generator.IdGenerator generator, int count) voidsetUp()voidtearDown()voidtestCreateReadUpdateDelete(String context, String key, String value, String updatedValue) voidtestCreateReadUpdateDeleteVersion(String context, String key, String value, String updatedValue) voidvoidvoidvoidObject[][]
-
Field Details
-
service
-
keyTrackingService
-
-
Constructor Details
-
MemcachedStorageServiceTest
public MemcachedStorageServiceTest()
-
-
Method Details
-
setUp
- Throws:
IOException
-
testValues
-
testCreateReadUpdateDelete
public void testCreateReadUpdateDelete(String context, String key, String value, String updatedValue) throws IOException - Throws:
IOException
-
testCreateReadUpdateDeleteVersion
public void testCreateReadUpdateDeleteVersion(String context, String key, String value, String updatedValue) throws IOException, VersionMismatchException - Throws:
IOExceptionVersionMismatchException
-
testDeleteContextDeletesEntries
- Throws:
IOException
-
testUpdateExpiration
- Throws:
IOException
-
testUpdateContextExpiration
- Throws:
Exception
-
testUpdateContextExpirationWithBlacklisting
- Throws:
Exception
-
tearDown
@AfterClass public void tearDown() -
createContextKeys
private Set<String> createContextKeys(String context, org.cryptacular.generator.IdGenerator generator, int count) throws IOException - Throws:
IOException
-