DBURI { public List<String> getSourceCodeNamesList() { return sourceCodeNamesList; } DBURI(String string);  DBURI(String scheme, String userInfo, String host, int port, String path, String query, String fragment); URI getUri(); void setUri(URI uri); DBType getDbType(); void setDbType(DBType dbType); List<String> getSchemasList(); void setSchemasList(List<String> schemasList); List<String> getSourceCodeTypesList(); void setSourceCodeTypesList(List<String> sourceCodeTypesList); List<String> getSourceCodeNamesList(); void setSourceCodeNamesList(List<String> sourceCodeNamesList); List<String> getLanguagesList(); void setLanguagesList(List<String> languagesList); String getDriverClass(); void setDriverClass(String driverClass); String getCharacterSet(); void setCharacterSet(String characterSet); int getSourceCodeType(); void setSourceCodeType(int sourceCodeType); String getSubprotocol(); void setSubprotocol(String subprotocol); String getSubnamePrefix(); void setSubnamePrefix(String subnamePrefix); Map<String, String> getParameters(); void setParameters(Map<String, String> parameters); String getURL(); void setURL(String jdbcURL); @Override String toString();  }
@Test public void testGetSourceCodeNamesList() throws URISyntaxException, Exception { System.out.println("getSourceCodeNamesList"); DBURI instance = new DBURI(C_ORACLE_OCI_3); List<String> expResult = Arrays.asList("PKG_%%,PRC_%%".split(",")); List<String> result = instance.getSourceCodeNamesList(); assertEquals(expResult, result); }
@Test public void testDefaultSourceCodeNamesList() throws URISyntaxException, Exception { System.out.println("testDefaultSourceCodeNamesList"); List<String> defaultSourceCodeNamesList = Arrays.asList(C_DEFAULT_SOURCE_CODE_NAMES.split(",")); DBURI instance = new DBURI(C_TEST_DEFAULTS); List<String> result = instance.getSourceCodeNamesList(); assertEquals(defaultSourceCodeNamesList, result); }
@Test public void testExplicitSourceCodeNamesList() throws URISyntaxException, Exception { System.out.println("testExplicitSourceCodeNamesList"); List<String> defaultSourceCodeNamesList = Arrays.asList(C_EXPLICIT_SOURCE_CODE_NAMES.split(",")); DBURI instance = new DBURI(C_TEST_EXPLICIT); List<String> result = instance.getSourceCodeNamesList(); assertEquals(defaultSourceCodeNamesList, result); }