Versions Compared

Key

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

Postgres Repositories Unit tests

Testing Structure

The tests uses the configuration fileĀ opensrp-core/src/test/resources/test-applicationContext-opensrp.xml.
This file unlike the runtime loads both Postgres and CouchDb beans, this will to allow the existing unit tests that used CouchDb continue to run without any changes. The CouchDb beans are annotated with the annotationĀ @Primary which means that they are the used even if there are other beans implementing an interface.

...