Program: 145862
Project: 145862
Buggy source:
/** 
 * Tests the extraction of release names from an svn structure.
 * @throws Exception on test failure
 */
@Test public void testGetAvailableReleases() throws Exception {
  File repoWithReleases=new File(TEMP_DIR,"String_Node_Str");
  cleanUpTestDir(repoWithReleases);
  SVNURL localRepository=SVNRepositoryFactory.createLocalRepository(repoWithReleases,true,false);
  SVNClientManager clientManager=SVNClientManager.newInstance(SVNWCUtil.createDefaultOptions(false),"String_Node_Str","String_Node_Str");
  SVNUpdateClient updateClient=clientManager.getUpdateClient();
  File wc=new File(TEMP_DIR,"String_Node_Str");
  cleanUpTestDir(wc);
  updateClient.doCheckout(localRepository,wc,SVNRevision.HEAD,SVNRevision.HEAD,SVNDepth.INFINITY,true);
  File trunk=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  File tags=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  File branches=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  File noReleaselayout=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  createDirectoryInWC(tags,"String_Node_Str",clientManager.getWCClient());
  createDirectoryInWC(branches,"String_Node_Str",clientManager.getWCClient());
  createDirectoryInWC(branches,"String_Node_Str",clientManager.getWCClient());
  clientManager.getCommitClient().doCommit(new File[]{trunk,tags,branches,noReleaselayout},false,"String_Node_Str",null,null,false,true,SVNDepth.INFINITY);
  TestProject testProject=new TestProject();
  TestProjectConfig testProjectConfig=new TestProjectConfig();
  SVNTeamShareConfig aTeamShareConfig=new SVNTeamShareConfig();
  aTeamShareConfig.setUrl("String_Node_Str" + repoWithReleases.getAbsolutePath() + "String_Node_Str");
  testProjectConfig.setTeamShareConfig(aTeamShareConfig);
  testProject.setTestProjectConfig(testProjectConfig);
  validateReleaseNamesOnLegalPath(teamService.getAvailableReleases(testProject).keySet());
  aTeamShareConfig.setUrl("String_Node_Str" + repoWithReleases.getAbsolutePath() + "String_Node_Str");
  validateReleaseNamesOnLegalPath(teamService.getAvailableReleases(testProject).keySet());
  aTeamShareConfig.setUrl("String_Node_Str" + repoWithReleases.getAbsolutePath() + "String_Node_Str");
  assertTrue(teamService.getAvailableReleases(testProject).isEmpty());
}

Fixed version (ground truth):
/** 
 * Tests the extraction of release names from an svn structure.
 * @throws Exception on test failure
 */
@Test public void testGetAvailableReleases() throws Exception {
  File repoWithReleases=new File(TEMP_DIR,"String_Node_Str");
  cleanUpTestDir(repoWithReleases);
  SVNURL localRepository=SVNRepositoryFactory.createLocalRepository(repoWithReleases,true,false);
  SVNClientManager clientManager=SVNClientManager.newInstance(SVNWCUtil.createDefaultOptions(false),"String_Node_Str","String_Node_Str");
  SVNUpdateClient updateClient=clientManager.getUpdateClient();
  File wc=new File(TEMP_DIR,"String_Node_Str");
  cleanUpTestDir(wc);
  updateClient.doCheckout(localRepository,wc,SVNRevision.HEAD,SVNRevision.HEAD,SVNDepth.INFINITY,true);
  File trunk=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  File tags=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  File branches=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  File noReleaselayout=createDirectoryInWC(wc,"String_Node_Str",clientManager.getWCClient());
  createDirectoryInWC(tags,"String_Node_Str",clientManager.getWCClient());
  createDirectoryInWC(branches,"String_Node_Str",clientManager.getWCClient());
  createDirectoryInWC(branches,"String_Node_Str",clientManager.getWCClient());
  clientManager.getCommitClient().doCommit(new File[]{trunk,tags,branches,noReleaselayout},false,"String_Node_Str",null,null,false,true,SVNDepth.INFINITY);
  TestProject testProject=new TestProject();
  TestProjectConfig testProjectConfig=new TestProjectConfig();
  SVNTeamShareConfig aTeamShareConfig=new SVNTeamShareConfig();
  SVNURL trunkURL=SVNURL.fromFile(new File(repoWithReleases.getAbsolutePath() + File.separator + "String_Node_Str"));
  SVNURL branchURL=SVNURL.fromFile(new File(repoWithReleases.getAbsolutePath() + File.separator + "String_Node_Str"));
  SVNURL otherStuff=SVNURL.fromFile(new File(repoWithReleases.getAbsolutePath() + File.separator + "String_Node_Str"));
  aTeamShareConfig.setUrl(trunkURL.toString());
  testProjectConfig.setTeamShareConfig(aTeamShareConfig);
  testProject.setTestProjectConfig(testProjectConfig);
  validateReleaseNamesOnLegalPath(teamService.getAvailableReleases(testProject).keySet());
  aTeamShareConfig.setUrl(branchURL.toString());
  validateReleaseNamesOnLegalPath(teamService.getAvailableReleases(testProject).keySet());
  aTeamShareConfig.setUrl(otherStuff.toString());
  assertTrue(teamService.getAvailableReleases(testProject).isEmpty());
}