DBURI { public String getCharacterSet() { return characterSet; } 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 testGetCharacterSet() throws URISyntaxException, Exception { System.out.println("getCharacterSet"); DBURI instance = new DBURI(C_ORACLE_OCI_2); String expResult = "utf8"; String result = instance.getCharacterSet(); assertEquals(expResult, result); }
@Test public void testDefaultCharacterSet() throws URISyntaxException, Exception { System.out.println("testDefaultCharacterSet"); DBURI instance = new DBURI(C_TEST_DEFAULTS); String result = instance.getCharacterSet(); assertEquals(C_DEFAULT_CHARACTERSET, result); }
@Test public void testExplicitCharacterSet() throws URISyntaxException, Exception { System.out.println("testExplicitCharacterSet"); DBURI instance = new DBURI(C_TEST_EXPLICIT); String result = instance.getCharacterSet(); assertEquals(C_EXPLICIT_CHARACTERSET, result); }