Context APIs

A context API is a set of resources that provide the implementations to test a given business context. For example:

  • AdminContext contains the resources for scenarios that test administration behavior.
  • ActivityContext contains the resources for scenarios that test activity behavior.

A context API consists of one or more pairs of classes. Each pair consists of an interface (which defines testing method signatures) and an impl (which implements those methods). The impl always implements the corresponding interface. The following diagram illustrates two context APIs.


Examples of AdminContext and ActivityContext.