DBMSMetadata { public List<SourceObject> getSourceObjectList() { if (null == dburi) { LOGGER.warning("No dbUri defined - no further action possible"); return null; } else { return getSourceObjectList(dburi.getLanguagesList(), dburi.getSchemasList(), dburi.getSourceCodeTypesList(), dburi.getSourceCodeNamesList()); } } DBMSMetadata(Connection c);  DBMSMetadata(String user, String password, DBURI dbURI);  DBMSMetadata(Properties properties, DBURI dbURI);  DBMSMetadata(DBURI dbURI); Connection getConnection(); java.io.Reader getSourceCode(SourceObject sourceObject); java.io.Reader getSourceCode(String objectType, String name, String schema); List<SourceObject> getSourceObjectList(); List<SourceObject> getSourceObjectList(List<String> languages, List<String> schemas,
            List<String> sourceCodeTypes, List<String> sourceCodeNames);  }
@Test public void testGetSourceObjectList() throws Exception { System.out.println("getConnection"); DBURI testURI = dbURI4; String driverClass = testURI.getDriverClass(); System.out.println("driverClass==" + driverClass); System.out.println("URL==" + testURI.getURL()); Class.forName(driverClass); Object object = DriverManager.getDriver(testURI.getURL()); Properties properties = new Properties(); properties.put("user", "system"); properties.put("password", "oracle"); Connection expResult = DriverManager.getDriver(testURI.getURL()).connect(testURI.getURL(), properties); DBMSMetadata instance = new DBMSMetadata(testURI); Connection result = instance.getConnection(); Assert.assertNotNull(result); List<SourceObject> sourceObjectList = instance.getSourceObjectList(); Assert.assertNotNull(sourceObjectList); System.out.format("testURI=%s,\ngetParameters()=%s\n", C_ORACLE_THIN_4, testURI.getParameters()); System.out.format( "testURI=%s,\ngetSchemasList()=%s\n,getSourceCodeTypesList()=%s\n,getSourceCodeNmesList()=%s\n", testURI, testURI.getSchemasList(), testURI.getSourceCodeTypesList(), testURI.getSourceCodeNamesList()); System.out.print("sourceObjectList ...\n"); for (SourceObject sourceObject : sourceObjectList) { System.out.printf("sourceObject=%s\n", sourceObject); System.out.printf("sourceCode=[%s]\n", getStringFromReader(instance.getSourceCode(sourceObject))); } }