use of org.opensmartgridplatform.dto.valueobjects.smartmetering.SmartMeteringDeviceDtoBuilder in project open-smart-grid-platform by OSGP.
the class DeviceConverterTest method convertsSmartMeteringDtoToDlmsDevice.
@Test
public void convertsSmartMeteringDtoToDlmsDevice() {
final SmartMeteringDeviceDto dto = new SmartMeteringDeviceDtoBuilder().build();
final DlmsDevice result = this.converter.convertTo(dto, null, null);
final DlmsDevice expected = this.converted(dto);
Assertions.assertThat(result).isEqualToIgnoringGivenFields(expected, "creationTime", "modificationTime", "version");
}
Aggregations