/* simple test of getDataSource() which assumes addDataSource() works. */ public void testGetDataSource() { SPDataSource dbcs = new JDBCDataSource(target); dbcs.setName("cows"); target.addDataSource(dbcs); SPDataSource gotDbcs = target.getDataSource("cows"); assertNotNull(gotDbcs); assertSame(dbcs, gotDbcs); }
/** Ensures every data source child of this pl.ini has the right parent pointer. */ public void testParentOfDataSources() throws Exception { testRead(); for (SPDataSource ds : target.getConnections()) { assertSame(target, ds.getParentCollection()); } }