use of org.opensmartgridplatform.adapter.protocol.iec60870.domain.valueobjects.ConnectionParameters in project open-smart-grid-platform by OSGP.
the class ConnectRequestMessageProcessorTest method testProcessShouldSendGeneralInInterrogation.
@Test
void testProcessShouldSendGeneralInInterrogation() throws Exception {
// Arrange
final ConnectionParameters connectionParameters = ConnectionParameters.newBuilder().deviceIdentification(DEVICE_IDENTIFICATION).build();
final DeviceConnection deviceConnection = new DeviceConnection(this.connection, connectionParameters);
final RequestMetadata requestMetadata = RequestMetadataFactory.forDevice(DEVICE_IDENTIFICATION);
// Act
this.connectRequestMessageProcessor.process(deviceConnection, requestMetadata);
// Assert
verify(this.generalInterrogationService).sendGeneralInterrogation(deviceConnection, requestMetadata);
}
Aggregations