@Test public void should_get_a_connection() throws MalformedURLException { TeamCityConnection connection = plugin.getConnection(teamcityUrl, new HashMap<String, String>()); assertFalse(connection.isClosed()); }
@Override public TeamCityConnection getConnection(URL url, Map<String, String> properties) { TeamCityConnection connectionPlugin = new TeamCityConnection(); connectionPlugin.connect(url.toString(), properties.get("login"), properties.get("password")); return connectionPlugin; }
TeamCityPlugin implements VisuwallPlugin<TeamCityConnection> { @Override public TeamCityConnection getConnection(URL url, Map<String, String> properties) { TeamCityConnection connectionPlugin = new TeamCityConnection(); connectionPlugin.connect(url.toString(), properties.get("login"), properties.get("password")); return connectionPlugin; } }
TeamCityPlugin implements VisuwallPlugin<TeamCityConnection> { @Override public TeamCityConnection getConnection(URL url, Map<String, String> properties) { TeamCityConnection connectionPlugin = new TeamCityConnection(); connectionPlugin.connect(url.toString(), properties.get("login"), properties.get("password")); return connectionPlugin; }  }
TeamCityPlugin implements VisuwallPlugin<TeamCityConnection> { @Override public TeamCityConnection getConnection(URL url, Map<String, String> properties) { TeamCityConnection connectionPlugin = new TeamCityConnection(); connectionPlugin.connect(url.toString(), properties.get("login"), properties.get("password")); return connectionPlugin; }  @Override TeamCityConnection getConnection(URL url, Map<String, String> properties); @Override Class<TeamCityConnection> getConnectionClass(); @Override String getName(); @Override float getVersion(); @Override SoftwareId getSoftwareId(URL url, Map<String, String> properties); @Override String toString(); @Override Map<String, String> getPropertiesWithDefaultValue(); }
TeamCityPlugin implements VisuwallPlugin<TeamCityConnection> { @Override public TeamCityConnection getConnection(URL url, Map<String, String> properties) { TeamCityConnection connectionPlugin = new TeamCityConnection(); connectionPlugin.connect(url.toString(), properties.get("login"), properties.get("password")); return connectionPlugin; }  @Override TeamCityConnection getConnection(URL url, Map<String, String> properties); @Override Class<TeamCityConnection> getConnectionClass(); @Override String getName(); @Override float getVersion(); @Override SoftwareId getSoftwareId(URL url, Map<String, String> properties); @Override String toString(); @Override Map<String, String> getPropertiesWithDefaultValue();  }