Search in sources :

Example 1 with GetAllConceptDescriptionsRequest

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);
}
Also used : OutputModifier(de.fraunhofer.iosb.ilt.faaast.service.model.api.modifier.OutputModifier) GetAllConceptDescriptionsResponse(de.fraunhofer.iosb.ilt.faaast.service.model.api.response.GetAllConceptDescriptionsResponse) GetAllConceptDescriptionsRequest(de.fraunhofer.iosb.ilt.faaast.service.model.request.GetAllConceptDescriptionsRequest) Test(org.junit.Test)

Aggregations

OutputModifier (de.fraunhofer.iosb.ilt.faaast.service.model.api.modifier.OutputModifier)1 GetAllConceptDescriptionsResponse (de.fraunhofer.iosb.ilt.faaast.service.model.api.response.GetAllConceptDescriptionsResponse)1 GetAllConceptDescriptionsRequest (de.fraunhofer.iosb.ilt.faaast.service.model.request.GetAllConceptDescriptionsRequest)1 Test (org.junit.Test)1