@Test public void getExistingDriverTest() throws PlcException { MockPlcConnection mockConnection = (MockPlcConnection) new PlcDriverManager().getConnection("api-mock: assertThat(mockConnection.getAuthentication(), nullValue()); assertThat(mockConnection.isConnected(), is(true)); }
public PlcConnection getConnection(String url) throws PlcConnectionException { PlcDriver driver = getDriver(url); PlcConnection connection = driver.getConnection(url); connection.connect(); return connection; }
PlcDriverManager { public PlcConnection getConnection(String url) throws PlcConnectionException { PlcDriver driver = getDriver(url); PlcConnection connection = driver.getConnection(url); connection.connect(); return connection; } }
PlcDriverManager { public PlcConnection getConnection(String url) throws PlcConnectionException { PlcDriver driver = getDriver(url); PlcConnection connection = driver.getConnection(url); connection.connect(); return connection; } PlcDriverManager();  PlcDriverManager(ClassLoader classLoader); }
PlcDriverManager { public PlcConnection getConnection(String url) throws PlcConnectionException { PlcDriver driver = getDriver(url); PlcConnection connection = driver.getConnection(url); connection.connect(); return connection; } PlcDriverManager();  PlcDriverManager(ClassLoader classLoader); PlcConnection getConnection(String url); PlcConnection getConnection(String url, PlcAuthentication authentication); @Experimental PlcDriver getDriver(String url); }
PlcDriverManager { public PlcConnection getConnection(String url) throws PlcConnectionException { PlcDriver driver = getDriver(url); PlcConnection connection = driver.getConnection(url); connection.connect(); return connection; } PlcDriverManager();  PlcDriverManager(ClassLoader classLoader); PlcConnection getConnection(String url); PlcConnection getConnection(String url, PlcAuthentication authentication); @Experimental PlcDriver getDriver(String url);  }