CRUDServiceTest

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

TestMapper

Test mapper type of the data which is a CRUDTestMapper

S

Service type of the data which is a CRUDService

Constructors

Link copied to clipboard
fun <E : CRUDEntity<I, E>, Mapper : CRUDMapper<I, E, M, CM, UM>, TestMapper : CRUDTestMapper<I, E, M, CM, UM>> CRUDServiceTest(typeName: String, mapper: Mapper, testMapper: TestMapper, duplicateCheck: BiPredicate<E, E>, testEntity1: E, testEntity2: E, testEntity3: E, vararg moreTestEntities: E)