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