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