- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
variablesList.getDefaultValueMap().put( variable, defaultValue );
String defaultValue = variablesList.getDefaultValueMap().get( key ); properties.put( key, Const.NVL( defaultValue, "" ) );
@Test public void testInit() throws Exception { KettleVariablesList variablesList = KettleVariablesList.getInstance(); variablesList.init(); //See PDI-14522 boolean actual = Boolean.valueOf( variablesList.getDefaultValueMap().get( Const.VFS_USER_DIR_IS_ROOT ) ); assertEquals( false, actual ); String vfsUserDirIsRootDefaultMessage = "Set this variable to true if VFS should treat the user directory" + " as the root directory when connecting via ftp. Defaults to false."; assertEquals( variablesList.getDescriptionMap().get( Const.VFS_USER_DIR_IS_ROOT ), vfsUserDirIsRootDefaultMessage ); }