Skip to content

PM628 MeasurementCollectionJobMapper Bug

In pm628 MeasurementCollectionJobMapper, the mapping of the ExecutionStateType was not mapped.

It was found through this test:

Test
mcjMVO = new MeasurementCollectionJobMVO("MeasurementCollectionJob") .outputFormat("XML") .jobOnDemand(true); mcjMVO.setExecutionState(ExecutionStateType.PENDING); MeasurementCollectionJob mcj = new MeasurementCollectionJob("MeasurementCollectionJob") .outputFormat("XML") .jobOnDemand(false); mcj.setExecutionState(ExecutionStateType.ACKNOWLEDGED); MeasurementCollectionJobMapper mapper = Mappers.getMapper(MeasurementCollectionJobMapper.class); mcj = mapper.updateMeasurementCollectionJob(mcjMVO, mcj); assertEquals("XML", mcj.getOutputFormat()); assertTrue(mcj.getJobOnDemand()); assertEquals(ExecutionStateType.PENDING, mcj.getExecutionState()); }
Result
org.opentest4j.AssertionFailedError: Expected :pending Actual :acknowledged

Result After Changes:

Screenshot 2025-07-03 at 11.57.01 AM.png

Edited by George Tziavas