use of org.opensmartgridplatform.domain.da.measurements.MeasurementReportHeader in project open-smart-grid-platform by OSGP.
the class DomainDistributionAutomationMapperTest method testMeasurementReportHeaderMapping.
@Test
public void testMeasurementReportHeaderMapping() {
// Arrange
final int commonAddress = 234;
final MeasurementReportHeader expected = DomainMeasurementsFactory.spontaneousReportHeader(commonAddress);
final MeasurementReportHeaderDto dtoMeasurementReportHeader = DtoMeasurementsFactory.spontaneousReportHeader(commonAddress);
// Act
final MeasurementReportHeader actual = this.mapper.map(dtoMeasurementReportHeader, MeasurementReportHeader.class);
// Assert
assertThat(actual).isEqualTo(expected);
}
Aggregations