use of org.opensmartgridplatform.simulator.protocol.iec60870.server.handlers.Iec60870SingleCommandAsduHandler in project open-smart-grid-platform by OSGP.
the class Iec60870AsduHandlerRegistryTest method registryShouldReturnSingleCommandHandlerForSingleCommandAsduType.
@Test
public void registryShouldReturnSingleCommandHandlerForSingleCommandAsduType() throws Exception {
// arrange
final ASduType asduType = ASduType.C_SC_NA_1;
final Iec60870SingleCommandAsduHandler expected = this.iec60870SingleCommandAsduHandler;
// act
final Iec60870AsduHandler actual = this.iec60870AsduHandlerRegistry.getHandler(asduType);
// assert
assertThat(actual).isEqualTo(expected);
}
Aggregations