CRUDServiceTest

abstract class CRUDServiceTest<I : Serializable, E : CRUDEntity<I>, M : CRUDModel<I>, CM : CRUDCreateModel, UM : CRUDUpdateModel, Mapper : CRUDMapper<I, E, M, CM, UM>, R : CRUDRepository<I, E>, S : CRUDService<I, E, M, CM, UM, R, Mapper>, TestData : CRUDTestData<I, E, M, CM, UM, TestData>>(typeName: String, mapper: Mapper, testData: TestData)(source)

Base class for unit tests of CRUD services

Parameters

I

Id type of the data

E

Entity type of the data which is a CRUDEntity

M

Model type of the data which is a CRUDModel

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

R

Repository type of the data which is a CRUDRepository

S

Service type of the data which is a CRUDService

TestData

Test data type of the data which is a CRUDTestData

Constructors

Link copied to clipboard
fun <Mapper : CRUDMapper<I, E, M, CM, UM>, TestData : CRUDTestData<I, E, M, CM, UM, TestData>> CRUDServiceTest(typeName: String, mapper: Mapper, testData: TestData)