- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
@Test public void testYamlMapFromMap() { Map<String, Object> map = new HashMap<>(); map.put("key", "value"); ImmutableMap<String, Object> immutableMap = ImmutableMap.copyOf(map); YamlMap yamlMap = new YamlMap(map); assertEquals("yaml map should have immutable map", immutableMap, yamlMap.dataTree()); }
@Test public void testYamlMapFromStringObjectPair() { YamlMap yamlMap = new YamlMap("key", "value"); ImmutableMap<String, Object> immutableMap = ImmutableMap.of("key", "value"); assertEquals("yaml map should have immutable map", immutableMap, yamlMap.dataTree()); }
@Test public void testSource() throws IOException { YamlMap yamlMap = new YamlMap("key", "value"); assertEquals( "Source should be original key value pair", "key: value", yamlMap.getSource().trim()); } }