Search in sources :

Example 1 with CRUDService

use of ca.corefacility.bioinformatics.irida.service.CRUDService in project irida by phac-nml.

the class GenericControllerTest method setUp.

@Before
@SuppressWarnings("unchecked")
public void setUp() {
    crudService = mock(CRUDService.class);
    entity = new IdentifiableTestEntity();
    identifier = 1L;
    entity.setId(identifier);
    controller = new RESTGenericController<IdentifiableTestEntity>(crudService, IdentifiableTestEntity.class) {
    };
    updatedFields = new HashMap<>();
}
Also used : CRUDService(ca.corefacility.bioinformatics.irida.service.CRUDService) IdentifiableTestEntity(ca.corefacility.bioinformatics.irida.web.controller.test.unit.support.IdentifiableTestEntity) Before(org.junit.Before)

Aggregations

CRUDService (ca.corefacility.bioinformatics.irida.service.CRUDService)1 IdentifiableTestEntity (ca.corefacility.bioinformatics.irida.web.controller.test.unit.support.IdentifiableTestEntity)1 Before (org.junit.Before)1