/** 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()); } }
/* * Test method for 'ca.sqlpower.architect.PlDotIni.read(File)' */ public void testRead() throws IOException { target.read(makeInputStream(makePlIniString())); assertTrue(target.getConnections().size() > 0); }
/* * Test method for 'ca.sqlpower.architect.PlDotIni.getConnections()' */ public void testGetConnections() throws IOException { testRead(); List l = target.getConnections(); assertEquals(1, l.size()); assertEquals(target.getDataSource(FUN_DATASOURCE_NAME), l.get(0)); }