Getting Started with Streaming Analytics
Also available as:
PDF
loading table of contents...

Test Case 3: Testing Violation Event

The Assertions of this test case are the following:

  • Assertion 1: Validate test data for geo steam and speed stream that are “violation” events

  • Assertion 2: Validate the Join of data between geo stream and speed stream

  • Assertion 3: Validate that the filter “EventType” detects that this is a “Violation Event”

  • Assertion 4: Validate that the inputs to the aggregate speed processor. There should only be 1 in the window

  • Assertion 5: Validate the result of the DriverAvgSpeed aggregate process is average speed of 79 since there only 1 event

  • Assertion 6: Validate the isDriverSpeeding rule recognized it was not speeding since the speed wasn’t greater than 80. The event should stop.

Create a test named “Test-Violation-Event”, use the following test data for TruckGeoEvent and use the following test data for TruckSpeedEvent.