Class CharonFactoryUnitTest
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.factory.impl.CharonFactoryUnitTest
-
public class CharonFactoryUnitTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedExceptionexpectedException
-
Constructor Summary
Constructors Constructor Description CharonFactoryUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprepareClient(java.lang.Class client, java.lang.String cacheKey)voidsetup()voidtestBuildCacheKeyWithNullDestination()voidtestBuildCacheKeyWithValidDestinationHasCredential()voidtestBuildCacheKeyWithValidDestinationNoCredential()voidtestClearCache()voidtestClient()voidtestInvalidateCacheWithCredentialUpdateForMultipleClients()voidtestInvalidateCacheWithCredentialUpdateForOneClientHasCredential()voidtestInvalidateCacheWithCredentialUpdateForTwoClientBothHasCredential()voidtestInvalidateCacheWithDestinationUpdateForOneClientHasCredential()voidtestInvalidateCacheWithDestinationUpdateForOneClientHasNoCredential()voidtestInvalidateCacheWithDestinationUpdateForTwoClientBothHasCredential()voidtestInvalidateCacheWithDestinationUpdateForTwoClientBothHasNoCredential()voidtestInvalidateCacheWithNullKey()
-
-
-
Method Detail
-
setup
public void setup()
-
testClient
public void testClient() throws CredentialException- Throws:
CredentialException
-
testBuildCacheKeyWithNullDestination
public void testBuildCacheKeyWithNullDestination()
-
testBuildCacheKeyWithValidDestinationNoCredential
public void testBuildCacheKeyWithValidDestinationNoCredential()
-
testBuildCacheKeyWithValidDestinationHasCredential
public void testBuildCacheKeyWithValidDestinationHasCredential()
-
testInvalidateCacheWithNullKey
public void testInvalidateCacheWithNullKey()
-
testInvalidateCacheWithDestinationUpdateForOneClientHasNoCredential
public void testInvalidateCacheWithDestinationUpdateForOneClientHasNoCredential() throws CredentialException- Throws:
CredentialException
-
testInvalidateCacheWithDestinationUpdateForTwoClientBothHasNoCredential
public void testInvalidateCacheWithDestinationUpdateForTwoClientBothHasNoCredential() throws CredentialException- Throws:
CredentialException
-
testInvalidateCacheWithDestinationUpdateForOneClientHasCredential
public void testInvalidateCacheWithDestinationUpdateForOneClientHasCredential() throws CredentialException- Throws:
CredentialException
-
testInvalidateCacheWithDestinationUpdateForTwoClientBothHasCredential
public void testInvalidateCacheWithDestinationUpdateForTwoClientBothHasCredential() throws CredentialException- Throws:
CredentialException
-
testInvalidateCacheWithCredentialUpdateForOneClientHasCredential
public void testInvalidateCacheWithCredentialUpdateForOneClientHasCredential() throws CredentialException- Throws:
CredentialException
-
testInvalidateCacheWithCredentialUpdateForTwoClientBothHasCredential
public void testInvalidateCacheWithCredentialUpdateForTwoClientBothHasCredential() throws CredentialException- Throws:
CredentialException
-
testInvalidateCacheWithCredentialUpdateForMultipleClients
public void testInvalidateCacheWithCredentialUpdateForMultipleClients() throws CredentialException- Throws:
CredentialException
-
testClearCache
public void testClearCache() throws CredentialException- Throws:
CredentialException
-
prepareClient
protected void prepareClient(java.lang.Class client, java.lang.String cacheKey) throws CredentialException- Throws:
CredentialException
-
-