public class ListProcessorTestWatcher
extends org.junit.rules.TestWatcher
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListProcessorTestWatcher.Provider<T> |
| Modifier and Type | Field and Description |
|---|---|
private SimpleDateFormat |
dateFormat |
private ListProcessorTestWatcher.Provider<List<ListableEntity>> |
entitiesProvider |
private static org.slf4j.Logger |
logger |
private static Consumer<String> |
logStateDump |
private long |
startedAtMillis |
private ListProcessorTestWatcher.Provider<Map<String,String>> |
stateMapProvider |
private ListProcessorTestWatcher.Provider<List<FlowFile>> |
successFlowFilesProvider |
| Constructor and Description |
|---|
ListProcessorTestWatcher(ListProcessorTestWatcher.Provider<Map<String,String>> stateMapProvider,
ListProcessorTestWatcher.Provider<List<ListableEntity>> entitiesProvider,
ListProcessorTestWatcher.Provider<List<FlowFile>> successFlowFilesProvider) |
| Modifier and Type | Method and Description |
|---|---|
private void |
dumpState(Consumer<String> d,
Map<String,String> state,
List<ListableEntity> entities,
List<FlowFile> flowFiles,
long start) |
void |
dumpState(long start) |
protected void |
failed(Throwable e,
org.junit.runner.Description description)
Throw additional AssertionError with stateDump as its message.
|
private void |
log(Consumer<String> dumper,
String format,
Object... args) |
protected void |
starting(org.junit.runner.Description description) |
private static final org.slf4j.Logger logger
private final SimpleDateFormat dateFormat
private final ListProcessorTestWatcher.Provider<Map<String,String>> stateMapProvider
private final ListProcessorTestWatcher.Provider<List<ListableEntity>> entitiesProvider
private final ListProcessorTestWatcher.Provider<List<FlowFile>> successFlowFilesProvider
private long startedAtMillis
public ListProcessorTestWatcher(ListProcessorTestWatcher.Provider<Map<String,String>> stateMapProvider, ListProcessorTestWatcher.Provider<List<ListableEntity>> entitiesProvider, ListProcessorTestWatcher.Provider<List<FlowFile>> successFlowFilesProvider)
public void dumpState(long start)
private void dumpState(Consumer<String> d, Map<String,String> state, List<ListableEntity> entities, List<FlowFile> flowFiles, long start)
protected void starting(org.junit.runner.Description description)
starting in class org.junit.rules.TestWatcherprotected void failed(Throwable e, org.junit.runner.Description description)
failed in class org.junit.rules.TestWatcherCopyright © 2019 Apache NiFi Project. All rights reserved.