@Test public void testSetConnection() { JdbcConnection connection = new JdbcConnection(); JdbcServiceList list = new JdbcServiceList(); assertNull(list.getConnection()); list.setConnection(connection); assertEquals(connection, list.connection()); assertEquals(connection, list.getConnection()); list.setConnection(null); assertEquals(null, list.getConnection()); assertNull(list.connection()); }
@Override public void setConnection(AdaptrisConnection c) { this.connection = c; }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } JdbcServiceList();  JdbcServiceList(Collection<Service> serviceList);  JdbcServiceList(Service... services); }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } JdbcServiceList();  JdbcServiceList(Collection<Service> serviceList);  JdbcServiceList(Service... services); @Override void prepare(); @Override AdaptrisConnection getConnection(); @Override void setConnection(AdaptrisConnection c); }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } JdbcServiceList();  JdbcServiceList(Collection<Service> serviceList);  JdbcServiceList(Service... services); @Override void prepare(); @Override AdaptrisConnection getConnection(); @Override void setConnection(AdaptrisConnection c);  }