use of de.fraunhofer.iosb.ilt.faaast.service.model.request.GetAllConceptDescriptionsRequest in project FAAAST-Service by FraunhoferIOSB.
the class RequestHandlerManagerTest method testGetAllConceptDescriptionsRequest.
@Test
public void testGetAllConceptDescriptionsRequest() throws ResourceNotFoundException {
when(persistence.get(null, null, null, new OutputModifier())).thenReturn(environment.getConceptDescriptions());
GetAllConceptDescriptionsRequest request = new GetAllConceptDescriptionsRequest.Builder().outputModifier(new OutputModifier()).build();
GetAllConceptDescriptionsResponse response = manager.execute(request);
GetAllConceptDescriptionsResponse expected = new GetAllConceptDescriptionsResponse.Builder().payload(environment.getConceptDescriptions()).statusCode(StatusCode.Success).build();
Assert.assertEquals(expected, response);
}
Aggregations