use of eu.europa.ec.fisheries.schema.movement.v1.TempMovementType in project UVMS-Docker by UnionVMS.
the class TempMovementRestIT method getTempMovementTest.
@Test
public void getTempMovementTest() throws Exception {
TempMovementType tempMovement = getTempMovement();
TempMovementType createdTempMovement = TempMovementRestHelper.createTempMovement(tempMovement);
TempMovementType fetchedTempMovement = TempMovementRestHelper.getTempMovement(createdTempMovement.getGuid());
assertEquals(createdTempMovement, fetchedTempMovement);
}
use of eu.europa.ec.fisheries.schema.movement.v1.TempMovementType in project UVMS-Docker by UnionVMS.
the class TempMovementRestIT method createTempMovementNoValidLatitudeShouldFail.
@Test
public void createTempMovementNoValidLatitudeShouldFail() throws Exception {
TempMovementType tempMovement = getTempMovement();
tempMovement.getPosition().setLatitude(100d);
HttpResponse response = TempMovementRestHelper.createTempMovementResponse(tempMovement);
checkErrorResponse(response);
}
Aggregations