EventFlow Fragment Unit Tests

EventFlow Fragment Unit Tests provide a way to verify that an application module produces the exact expected output for specific input. An EventFlow Fragment Unit Test is a Java program that starts StreamBase Server, loads the EventFlow module to be tested, sends tuples to the module's input streams, and compares the output emitted from the module's output streams to an expected set of tuples. You can run an EventFlow Fragment Unit Test:

  • Interactively, in StreamBase Studio.

  • As part of an automated application test script.

To use the EventFlow Fragment Unit Test mechanism, you must know how to write Java code, and should be familiar with the JUnit 4 test framework in general. See EventFlow Fragment Unit Test Tutorial for a step by step tutorial that walks through each step of generating an EventFlow Fragment Unit Test for one of the StreamBase samples.