| 11 | The following details try to elucidate the problems of configuration across differing contexts... |
| 12 | |
| 13 | ==== Database ==== |
| 14 | The whole point of the PMI Lookup is to interface with a database. Moreover it is really only a service provided to another system; in this instance the Onyx questionnaire. This presents some problems... |
| 15 | 1. Unit tests need to be light weight |
| 16 | 1. For a developer testing Onyx, it is good to be able to eliminate yet another complex dependency (Onyx uses one type of database, whereas in the clinical environment the PMI Lookup is using a different type of database). |
| 17 | 1. The clinical environment in a test context |
| 18 | 1. The clinical environment in a live context |
| 19 | |
| 20 | ==== The pmi-lookup-*-config.properties file ==== |
| 21 | Within the project there are three versions of this file. |
| 22 | 1. One for unit testing, which uses a transitory HSQLDB database |
| 23 | 1. One for "integration" testing with Onyx |
| 24 | 1. One for the clinical environment, covering both live and test contexts |