...
For more information on integration tests and testing modules in general, see theĀ Integration tests page.
Data layers and test data
When building a persistence layer in your module, you should try to follow these conventions:
- an id of 0 (primitive) means the entity has not been persisted to the database
- all other ids (both positive and negative) should be allowed
- auto generated ids should always be larger than 0
- the id range below zero should be available for providing test data
- your service layer should support creating new entities with a predefined id (eg. using a isNewEntity like property on a DTO)
- an example of this can be found on the UserDto implementation in theĀ UserModule
Database support
Standard modules should support the folllowing databases:
...