Skip to content

Files

Latest commit

 

History

History
 
 

hexagonal-arrow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

http4k Hexagonal Arrow/DomainDrivenTest example

This example is an example of how to write Hexagonal http4k applications using Arrow with DomainDrivenTests to test them at various levels of abstraction.

The use case for this example is that we have a marketplace buyer marking a sold item as dispatched. The system sends a notification with the submitted Tracking Number to the Buyer's phone.

The abstraction levels for the test examples are:

  1. Domain level - running entirely in-memory.
  2. API level - using the HTTP API - running entirely in-memory.
  3. Deployed level - using the HTTP API - running against a running server (local or remote).
  4. Browser level - using the WebDriver API - running against a running Webapp.

Note that we have not implemented the WebApp here so the tests are disabled.

Build/test locally

./gradlew test