public abstract class EventRepositoryTestSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Feature> |
features
Feature List.
|
protected FF4j |
ff4j
Initialize
|
protected EventPublisher |
publisher
Target publisher.
|
protected EventRepository |
repo
Target
EventRepository. |
| Constructor and Description |
|---|
EventRepositoryTestSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected Event |
generateFeatureUsageEvent(String uid)
Event generation.
|
protected Event |
generateFeatureUsageEvent(String uid,
long timestamp)
Event generation.
|
protected Event |
generateRandomFeatureUsageEvent(long from,
long to)
Generate random event.
|
protected Event |
generateRandomFeatureUsageEvent(String uid,
long from,
long to)
Generate random event.
|
protected abstract EventRepository |
initRepository()
Any store test will declare its store through this callback.
|
protected void |
populateRepository(long from,
long to,
int totalEvent)
Generate random events for.
|
void |
setUp() |
void |
testFeatureUsageBarCharts()
TDD.
|
void |
testFeatureUsageHitCount()
TDD.
|
void |
testGetEventByUID()
TDD.
|
void |
testGetFeatureUsageHistory() |
void |
testHostHitCount()
TDD.
|
void |
testLimitEventSeries()
TDD.
|
void |
testPurgeEvents()
TDD.
|
void |
testSaveAuditTrail()
TDD.
|
void |
testSaveCheckOff()
TDD.
|
void |
testSaveEventNull()
TDD.
|
void |
testSaveEventUnit()
TDD.
|
void |
testSearchFeatureUsageEvents() |
void |
testSourceHitCount()
TDD.
|
void |
testUserHitCount()
TDD.
|
protected FF4j ff4j
protected EventRepository repo
EventRepository.protected EventPublisher publisher
protected Event generateFeatureUsageEvent(String uid)
uid - target unique identifierprotected Event generateFeatureUsageEvent(String uid, long timestamp)
uid - target unique identifiertimestamp - current event timeprotected Event generateRandomFeatureUsageEvent(String uid, long from, long to)
uid - event uidfrom - time slot into - time slot toprotected Event generateRandomFeatureUsageEvent(long from, long to)
uid - event uidfrom - time slot into - time slot toprotected void populateRepository(long from,
long to,
int totalEvent)
throws InterruptedException
InterruptedExceptionprotected abstract EventRepository initRepository()
Exception - error during building feature storepublic void testSaveEventUnit()
throws InterruptedException
InterruptedExceptionpublic void testSaveEventNull()
public void testSaveAuditTrail()
throws InterruptedException
InterruptedExceptionpublic void testFeatureUsageBarCharts()
throws InterruptedException
InterruptedExceptionpublic void testFeatureUsageHitCount()
throws InterruptedException
InterruptedExceptionpublic void testSearchFeatureUsageEvents()
throws InterruptedException
InterruptedExceptionpublic void testGetFeatureUsageHistory()
throws InterruptedException
InterruptedExceptionpublic void testSourceHitCount()
throws InterruptedException
InterruptedExceptionpublic void testUserHitCount()
throws InterruptedException
InterruptedExceptionpublic void testHostHitCount()
throws InterruptedException
InterruptedExceptionpublic void testSaveCheckOff()
throws InterruptedException
InterruptedExceptionpublic void testLimitEventSeries()
throws InterruptedException
InterruptedExceptionpublic void testGetEventByUID()
throws InterruptedException
InterruptedExceptionpublic void testPurgeEvents()
throws InterruptedException
InterruptedExceptionCopyright © 2013–2020 FF4J. All rights reserved.