public class ChainedKeyProviderTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ID |
static URI |
KEY_URI |
| Constructor and Description |
|---|
ChainedKeyProviderTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
void |
shouldFailoverIfKeyDoesNotExistInFirstProvider() |
void |
shouldFailWhenNoProviders() |
void |
shouldNotWrapForSingleProvider() |
void |
shouldSuccessfullyGetKeyFromFirstProvider() |
void |
shouldSuccessfullyGetKeyFromSecondProvider() |
void |
shouldThrowExceptionIfAllProvidersAreDown() |
void |
shouldThrowExceptionIfKeyIsNotFoundAnywhere() |
public static final String KEY_ID
public static final URI KEY_URI
public void initialise()
throws InvalidHeaderException
InvalidHeaderExceptionpublic void shouldSuccessfullyGetKeyFromFirstProvider()
throws Exception
Exceptionpublic void shouldSuccessfullyGetKeyFromSecondProvider()
throws Exception
Exceptionpublic void shouldFailoverIfKeyDoesNotExistInFirstProvider()
throws Exception
Exceptionpublic void shouldThrowExceptionIfAllProvidersAreDown()
throws Exception
Exceptionpublic void shouldThrowExceptionIfKeyIsNotFoundAnywhere()
throws Exception
Exceptionpublic void shouldNotWrapForSingleProvider()
public void shouldFailWhenNoProviders()
throws CannotRetrieveKeyException,
InvalidHeaderException
Copyright © 2017 Atlassian. All rights reserved.