Acceptance tests can reach a system without relying on its concrete user interface. They can use an abstract interface or call application, domain, or service-layer functionality directly, reducing dependence on UI widgets that may change. section 11.2.2
Possible routes depend on the system’s architecture:
- Use an abstract UI alongside or instead of the external UI. section 11.2.2
- Call an internal API, such as a service-layer API. section 11.2.2
Two ways into a weblog application
A fixture can use JNDI to reach a remote application server’s internal API, or call the service layer directly through Java when tests run in the same JVM. section 11.2.2
Figure 11.3. Test operating against an internal API or an abstract UI in addition to or instead of the real UI
Shows tests reaching an abstract UI or internal API as alternatives to, or alongside, the external UI. section 11.2.2
