Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To make this possible the libraries fineract-cn-test and fineract-cn-anubis contain some supporting code:

  • TestEnvironment sets the public key for the simulated provisioner and keeps the corresponding private key around for future use.  It's a so-called test resource with a before and after clause which are run automatically by the framework.
  • TenantApplicationSecurityEnvironmentTestRule uses the TestEnvironment to create the necessary call to initialize, and to set a user token header in the REST calls to the service.  In most cases a new user context is created for each test.

...

To support these needs, we've created an EventRecorder which can be used to note events and to wait for events.  To use it, do four things:

...