CRUDService Test
abstract class CRUDServiceTest<I : Serializable, M : CRUDModel<I>, E : CRUDEntity<I, E>, CM : CRUDCreateModel, UM : CRUDUpdateModel, Mapper : CRUDMapper<I, E, M, CM, UM>, TestMapper : CRUDTestMapper<I, E, M, CM, UM>, S : CRUDService<I, E, M, CM, UM, Mapper>>(typeName: String, mapper: Mapper, testMapper: TestMapper, duplicateCheck: BiPredicate<E, E>, testEntity1: E, testEntity2: E, testEntity3: E, moreTestEntities: E)(source)
Base class for unit tests of CRUD services
Parameters
I
Id type of the data
M
Model type of the data which is a CRUDModel
E
Entity type of the data which is a CRUDEntity
CM
Create model type of the data which is a CRUDCreateModel
UM
Update model type of the data which is a CRUDUpdateModel
Mapper
Mapper type of the data which is a CRUDMapper
Test Mapper
Test mapper type of the data which is a CRUDTestMapper
S
Service type of the data which is a CRUDService