Overview of LOB-agnostic context APIs
In PolicyCenter, some business contexts function the same way, regardless of the policy's line of business. One example of this is the administration business context. Supervisors and administrators typically perform their tasks in the same way. Their work does not vary with any job's line of business. These business contexts are referred to as LOB-agnostic business contexts. Behavior Testing Framework supports them using LOB-agnostic context APIs.
An LOB-agnostic context API is a context API that declares its logic in a single interface/impl pair. There is no need to create multiple impls because the same set of methods are used for every scenario.
Extending LOB-agnostic context APIs
During an implementation of Behavior Testing Framework, you may need to extend an existing LOB-agnostic context API. This is necessary when the base configuration includes a context API, but it does not include all of the functionality you need for testing your implementation of PolicyCenter.
For example, your implementation may require testing of certain aspects of supervisor functionality, such as setting the email of a user that is in one of the supervisor's groups. This is administration functionality, but there are no methods to test this in the base configuration Admin Context. However, you can extend the Admin Context to add it.
