Package-level declarations

Base implementations for CRUD API tests

Description

This is the base package for CRUD test implementations.

Types

Link copied to clipboard
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, M, E, CM, UM, Mapper>>(typeName: String, mapper: Mapper, testMapper: TestMapper, duplicateCheck: BiPredicate<E, E>, testEntity1: E, testEntity2: E, testEntity3: E, moreTestEntities: E)

Base class for unit tests of CRUD services

Link copied to clipboard
interface CRUDTestMapper<I : Serializable, E : CRUDEntity<I, E>, M : CRUDModel<I>, CM : CRUDCreateModel, UM : CRUDUpdateModel>

Mapper to convert between models and entities in tests

Link copied to clipboard
class InMemoryCRUDRepository<I : Serializable, E : CRUDEntity<I, E>, CM : CRUDCreateModel, out Mapper : CRUDTestMapper<I, E, *, CM, *>>(typeName: String, mapper: Mapper, duplicateCheck: BiPredicate<E, E>, initialEntities: E) : CRUDRepository<I, E>

In-memory implementation of CRUDRepository for testing