public class SegmentEncoderTest extends Object
SegmentEncoder. TODO this is a work in progress
This is also a good example of how to do integration tests.Copyright © Enremmeta LLC 2015. All Rights Reserved.
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,byte[]> |
keys |
private static Set<String> |
segments |
private static Map<String,Map<String,String>> |
segmentsMap |
private static ServiceRunner |
serviceRunner |
| Constructor and Description |
|---|
SegmentEncoderTest() |
| Modifier and Type | Method and Description |
|---|---|
private String |
decrypt(String cipherTextBase64,
byte[] key) |
static byte[] |
genKey() |
static com.lambdaworks.redis.RedisConnection<String,String> |
getRedisConnection(RedisServiceConfig config) |
static Lot49Config |
getTestConfig() |
static void |
setUp() |
void |
testExternalEncoder() |
void |
testInternalEncoder() |
private static ServiceRunner serviceRunner
public void testInternalEncoder()
public void testExternalEncoder()
private String decrypt(String cipherTextBase64, byte[] key) throws Exception
Exceptionpublic static Lot49Config getTestConfig()
public static com.lambdaworks.redis.RedisConnection<String,String> getRedisConnection(RedisServiceConfig config) throws Lot49Exception
Lot49Exception