@Test public void getConnection_throwsForHls3Device() throws Exception { final DlmsDevice device = new DlmsDeviceBuilder().withHls3Active(true).build(); final DlmsMessageListener listener = new InvocationCountingDlmsMessageListener(); assertThatExceptionOfType(FunctionalException.class).isThrownBy(() -> { this.factory.getConnection(device, listener); }); }
public DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener) throws OsgpException { return this.newConnectionWithSecurityLevel(device, dlmsMessageListener, SecurityLevel.forDevice(device)); }
DlmsConnectionFactory { public DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener) throws OsgpException { return this.newConnectionWithSecurityLevel(device, dlmsMessageListener, SecurityLevel.forDevice(device)); } }
DlmsConnectionFactory { public DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener) throws OsgpException { return this.newConnectionWithSecurityLevel(device, dlmsMessageListener, SecurityLevel.forDevice(device)); } @Autowired  DlmsConnectionFactory(final Hls5Connector hls5Connector, final Lls1Connector lls1Connector,
            final Lls0Connector lls0Connector, final DomainHelperService domainHelperService); }
DlmsConnectionFactory { public DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener) throws OsgpException { return this.newConnectionWithSecurityLevel(device, dlmsMessageListener, SecurityLevel.forDevice(device)); } @Autowired  DlmsConnectionFactory(final Hls5Connector hls5Connector, final Lls1Connector lls1Connector,
            final Lls0Connector lls0Connector, final DomainHelperService domainHelperService); DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener); DlmsConnectionManager getPublicClientConnection(final DlmsDevice device,
            final DlmsMessageListener dlmsMessageListener); }
DlmsConnectionFactory { public DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener) throws OsgpException { return this.newConnectionWithSecurityLevel(device, dlmsMessageListener, SecurityLevel.forDevice(device)); } @Autowired  DlmsConnectionFactory(final Hls5Connector hls5Connector, final Lls1Connector lls1Connector,
            final Lls0Connector lls0Connector, final DomainHelperService domainHelperService); DlmsConnectionManager getConnection(final DlmsDevice device, final DlmsMessageListener dlmsMessageListener); DlmsConnectionManager getPublicClientConnection(final DlmsDevice device,
            final DlmsMessageListener dlmsMessageListener);  }