RepositoryPathEncoder { public static String decodeRepositoryPath( String path ) { return path.replace( ":", "/" ).replace( "\t", ":" ); }  static String encode( String value ); static String encodeURIComponent( String value ); static String encodeRepositoryPath( String path ); static String decodeRepositoryPath( String path );  }
@Test public void testDecodeRepositoryPath() { Assert.assertEquals( "/public/Steel Wheels/File:WithColon", RepositoryPathEncoder .decodeRepositoryPath( ":public:Steel Wheels:File\tWithColon" ) ); }
@Test public void testDecodeRepositoryPath() { final String testPath = "http: final String desiredResult = "http String decode = RepositoryPathEncoder.decodeRepositoryPath( testPath ); assertEquals( desiredResult, decode ); }