@Test public void testCleanInstancePath() { Assert.assertEquals( "", DockerAndScriptUtils.cleanInstancePath( "" )); Assert.assertEquals( "root", DockerAndScriptUtils.cleanInstancePath( "/root" )); Assert.assertEquals( "root_web_server_app_1", DockerAndScriptUtils.cleanInstancePath( "/root/web server/app-1" )); }
public static String cleanInstancePath( String instancePath ) { return instancePath.replaceFirst( "^/", "" ).replaceAll( "[\\W]", "_" ); }
DockerAndScriptUtils { public static String cleanInstancePath( String instancePath ) { return instancePath.replaceFirst( "^/", "" ).replaceAll( "[\\W]", "_" ); } }
DockerAndScriptUtils { public static String cleanInstancePath( String instancePath ) { return instancePath.replaceFirst( "^/", "" ).replaceAll( "[\\W]", "_" ); } private  DockerAndScriptUtils(); }
DockerAndScriptUtils { public static String cleanInstancePath( String instancePath ) { return instancePath.replaceFirst( "^/", "" ).replaceAll( "[\\W]", "_" ); } private  DockerAndScriptUtils(); static Map<String,String> buildReferenceMap( Instance instance ); static String cleanInstancePath( String instancePath ); static String cleanReversedInstancePath( String instancePath ); }
DockerAndScriptUtils { public static String cleanInstancePath( String instancePath ) { return instancePath.replaceFirst( "^/", "" ).replaceAll( "[\\W]", "_" ); } private  DockerAndScriptUtils(); static Map<String,String> buildReferenceMap( Instance instance ); static String cleanInstancePath( String instancePath ); static String cleanReversedInstancePath( String instancePath ); static final String ROBOCONF_INSTANCE_NAME; static final String ROBOCONF_INSTANCE_PATH; static final String ROBOCONF_CLEAN_INSTANCE_PATH; static final String ROBOCONF_CLEAN_REVERSED_INSTANCE_PATH; static final String ROBOCONF_COMPONENT_NAME; }