Skip to content

Commit

Permalink
Merge pull request #1476 from suhothayan/master
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
mohanvive authored Aug 29, 2019
2 parents e5f7c52 + cef0c7b commit 1b5f045
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,10 +1222,10 @@ public void receive(Event[] events) {
for (Event event : events) {
switch (wso2Count.incrementAndGet()) {
case 1:
Assert.assertEquals( event.getData(),new Object[]{"WSO2", "inMemory", 100l});
Assert.assertEquals(event.getData(), new Object[]{"WSO2", "inMemory", 100L});
break;
case 2:
Assert.assertEquals( event.getData(),new Object[]{"WSO2", "inMemory", 101l});
Assert.assertEquals(event.getData(), new Object[]{"WSO2", "inMemory", 101L});
break;
default:
org.testng.AssertJUnit.fail();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ public Class[] getSupportedInputEventClasses() {
protected void mapAndProcess(Object eventObject, InputEventHandler inputEventHandler) throws InterruptedException {
if (eventObject != null) {
if (eventObject instanceof Event) {
Event event=((Event) eventObject);
event.getData()[0]=sourceOptionHolder.validateAndGetOption("topic").getValue(event);
event.getData()[1]=sourceType;
Event event = ((Event) eventObject);
event.getData()[0] = sourceOptionHolder.validateAndGetOption("topic").getValue(event);
event.getData()[1] = sourceType;
inputEventHandler.sendEvent((Event) eventObject);
} else
} else {
throw new SiddhiAppRuntimeException("Event object must be Event " +
"but found " + eventObject.getClass().getCanonicalName());
}
}

}

Expand Down

0 comments on commit 1b5f045

Please sign in to comment.