Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Log info in Processor Test #1445

Merged
merged 1 commit into from Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -135,12 +135,12 @@ public void disconnect() throws SpRuntimeException {}
assertEquals(expectedBooleanCount, counter);
}


private Integer sendEvents(BooleanCounterProcessor booleanCounter, SpOutputCollector spOut) {
int counter = 0;
List<Event> events = makeEvents();
for (Event event : events) {
LOG.info("Sending event with value " + event.getFieldBySelector("s0::" + invertFieldName));
LOG.info("Sending event with value "
+ event.getFieldBySelector("s0::" + invertFieldName).getAsPrimitive().getAsBoolean());
booleanCounter.onEvent(event, spOut);
try {
Thread.sleep(100);
Expand Down
Expand Up @@ -124,12 +124,12 @@ public void disconnect() throws SpRuntimeException {}
assertEquals(expectedBooleanCount, result);
}


private boolean sendEvents(BooleanInverterProcessor trend, SpOutputCollector spOut) {
boolean result = false;
List<Event> events = makeEvents();
for (Event event : events) {
LOG.info("Sending event with value " + event.getFieldBySelector("s0::" + invertFieldName));
LOG.info("Sending event with value "
+ event.getFieldBySelector("s0::" + invertFieldName).getAsPrimitive().getAsBoolean());
trend.onEvent(event, spOut);
try {
Thread.sleep(100);
Expand Down