@PrepareForTest(value={ServiceRunner.class,org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.class,IpBlackListProvider.class,LogUtils.class})
@PowerMockIgnore(value={"javax.crypto.*","javax.management.*"})
public class IpBlackListProviderSpec
extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
IpBlackListProviderSpec.SimpleCallbackMarker |
| Modifier and Type | Field and Description |
|---|---|
private String |
IN_BLLIST |
private String |
NOT_IN_BLLIST |
static int |
readLineCount |
private ServiceRunner |
serviceRunnerSimpleMock |
| Constructor and Description |
|---|
IpBlackListProviderSpec() |
| Modifier and Type | Method and Description |
|---|---|
void |
getProviderInfo_deviceIsNull() |
void |
getProviderInfo_IP_found() |
void |
getProviderInfo_ShouldReturn_ProviderInfoReceived_emptyList() |
void |
InitAsync_shouldCall_schedule() |
void |
initInternal_exceptionThrown() |
void |
initInternal_readLineNotNull_correctIPV4() |
void |
initInternal_readLineNotNull_correctIPV6_compressionForm() |
void |
initInternal_readLineNotNull_correctIPV6_zeroCompression() |
void |
initInternal_readLineNotNull_correctIPV6() |
void |
initInternal_readLineNotNull_illegalIPV4_2() |
void |
initInternal_readLineNotNull_illegalIPV4() |
void |
initInternal_readLineNotNull_illegalIPV6() |
void |
initInternal_readLineNull() |
void |
match_receivedIsFound_requiredIsFound() |
void |
match_receivedIsNotFound_requiredIsFound() |
void |
match_receivedIsNull() |
void |
match_requiredIsNull() |
void |
setUp() |
private ServiceRunner serviceRunnerSimpleMock
public static int readLineCount
private final String NOT_IN_BLLIST
private final String IN_BLLIST
public void setUp()
public void initInternal_readLineNull()
throws Exception
Exceptionpublic void initInternal_exceptionThrown()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_correctIPV4()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_illegalIPV4()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_illegalIPV4_2()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_correctIPV6()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_correctIPV6_compressionForm()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_correctIPV6_zeroCompression()
throws Exception
Exceptionpublic void initInternal_readLineNotNull_illegalIPV6()
throws Exception
Exceptionpublic void InitAsync_shouldCall_schedule()
throws Exception
Exceptionpublic void getProviderInfo_ShouldReturn_ProviderInfoReceived_emptyList()
throws Exception
Exceptionpublic void getProviderInfo_deviceIsNull()
throws Exception
Exceptionpublic void match_receivedIsNotFound_requiredIsFound()
throws Exception
Exception