Unit tests are used in OpenL Tablets to validate data accuracy. OpenL methods with predefined input data compare the test results with expected results. Every decision table can be accessed as an OpenL method. The method signature is included in the header of a decision table. Each unit test is stored in a separate table.
For example, in the following diagram, the table on the left is a decision table but the table on the right is a unit test table that tests data of the decision table:
Figure 41: Decision table and its unit test table
OpenL Web Studio supports visual controls for creating and running project unit tests. Unit test tables can be modified like all other tables in OpenL Web Studio. For information on modifying a table, see Modifying Tables. Test results are displayed in a simple format directly in the user interface.