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