use of eu.europa.ec.fisheries.schema.movement.module.v1.CreateMovementBatchResponse in project UVMS-Docker by UnionVMS.
the class MovementJmsIT method createMovementBatchRequestTest.
@Test
public void createMovementBatchRequestTest() throws Exception {
Asset testAsset = AssetTestHelper.createTestAsset();
MobileTerminalType mobileTerminalType = MobileTerminalTestHelper.createMobileTerminalType();
MobileTerminalTestHelper.assignMobileTerminal(testAsset, mobileTerminalType);
List<LatLong> latLongList = movementHelper.createRuttCobhNewYork(ALL, 0.4f);
final CreateMovementBatchRequest createMovementBatchRequest = movementHelper.createMovementBatchRequest(testAsset, mobileTerminalType, latLongList);
CreateMovementBatchResponse createMovementResponse = movementHelper.createMovementBatch(testAsset, mobileTerminalType, createMovementBatchRequest);
}
use of eu.europa.ec.fisheries.schema.movement.module.v1.CreateMovementBatchResponse in project UVMS-Docker by UnionVMS.
the class MovementHelper method unMarshallCreateMovementBatchResponse.
/**
* @param response
* @return
* @throws Exception
*/
public CreateMovementBatchResponse unMarshallCreateMovementBatchResponse(final Message response) throws Exception {
TextMessage textMessage = (TextMessage) response;
JAXBContext jaxbContext = JAXBContext.newInstance(CreateMovementBatchResponse.class);
return (CreateMovementBatchResponse) jaxbContext.createUnmarshaller().unmarshal(new StringReader(textMessage.getText()));
}
Aggregations