Search in sources :

Example 1 with MeasurementReportHeader

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);
}
Also used : MeasurementReportHeader(org.opensmartgridplatform.domain.da.measurements.MeasurementReportHeader) MeasurementReportHeaderDto(org.opensmartgridplatform.dto.da.measurements.MeasurementReportHeaderDto) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 MeasurementReportHeader (org.opensmartgridplatform.domain.da.measurements.MeasurementReportHeader)1 MeasurementReportHeaderDto (org.opensmartgridplatform.dto.da.measurements.MeasurementReportHeaderDto)1