Stub data tables

The purpose of a stub data table is to supply stub routines with data. Stub data tables define the output behavior of a stubbed method in response to certain inputs. With the stub data table, you simulate the stubbed class by specifying the actual input and return values for each stubbed method.

In many ways stub data tables are very similar to test data tables, but there are several differences.

 

Related concepts

Stub behavior
Test data tables

 

Related tasks

Creating stubs for Java components
Creating stubs for session beans
Editing stubs in a test suite