test_class.declarator: classUnderTest = null
test_class.modifier: private
test_class.original_string: private PathUtils classUnderTest = null;
test_class.type: PathUtils
test_class.var_name: classUnderTest
test_class.file: sql12/app/src/test/java/net/sourceforge/squirrel_sql/client/update/util/PathUtilsImplTest.java
test_class.identifier: PathUtilsImplTest
test_case.body: @Test
  	public void testBuildPath()
  	{
  		String result = classUnderTest.buildPath(true, new String[] { "a", "path", "to", "a", "file" });
  		assertEquals("/a/path/to/a/file", result);
  	}
test_case.class_method_signature: PathUtilsImplTest.testBuildPath()
test_case.full_signature: @Test public void testBuildPath()
test_case.identifier: testBuildPath
test_case.invocations: buildPath assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuildPath()
focal_class.file: sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/update/util/PathUtilsImpl.java
focal_class.identifier: PathUtilsImpl
focal_class.interfaces: implements PathUtils
focal_class.class_method_signature: PathUtilsImpl.buildPath(boolean prependSlash, String... pathElements)
focal_class.full_signature: public String buildPath(boolean prependSlash, String... pathElements)
focal_class.identifier: buildPath
focal_class.modifiers: public
focal_class.parameters: (boolean prependSlash, String... pathElements)
focal_class.return: String
focal_class.signature: String buildPath(boolean prependSlash, String... pathElements)
focal_class.class_method_signature: PathUtilsImpl.getFileFromPath(String path)
focal_class.full_signature: public String getFileFromPath(String path)
focal_class.identifier: getFileFromPath
focal_class.modifiers: public
focal_class.parameters: (String path)
focal_class.return: String
focal_class.signature: String getFileFromPath(String path)
focal_method.body: public String buildPath(boolean prependSlash, String... pathElements)
  	{
  		StringBuilder result = new StringBuilder("/");
  
  		for (String pathElement : pathElements)
  		{
  			result.append(pathElement).append("/");
  		}
  
  		String retVal = result.toString().replace("//", "/").replace("//", "/");
  
  		if (retVal.endsWith("/"))
  		{
  			retVal = retVal.substring(0, retVal.length() - 1);
  		}
  
  		return retVal;
  	}
focal_method.class_method_signature: PathUtilsImpl.buildPath(boolean prependSlash, String... pathElements)
focal_method.full_signature: public String buildPath(boolean prependSlash, String... pathElements)
focal_method.identifier: buildPath
focal_method.invocations: append append replace replace toString endsWith substring length
focal_method.modifiers: public
focal_method.parameters: (boolean prependSlash, String... pathElements)
focal_method.return: String
focal_method.signature: String buildPath(boolean prependSlash, String... pathElements)