@Test public void cured_path_branch() { assertEquals("/branches/xxx", new SVNBranchConfigurationProperty(" /branches/xxx/ ", null).getCuredBranchPath()); }
@JsonIgnore public String getCuredBranchPath() { String trim = StringUtils.trim(branchPath); if ("/".equals(trim)) { return trim; } else { return StringUtils.stripEnd(trim, "/"); } }
SVNBranchConfigurationProperty { @JsonIgnore public String getCuredBranchPath() { String trim = StringUtils.trim(branchPath); if ("/".equals(trim)) { return trim; } else { return StringUtils.stripEnd(trim, "/"); } } }
SVNBranchConfigurationProperty { @JsonIgnore public String getCuredBranchPath() { String trim = StringUtils.trim(branchPath); if ("/".equals(trim)) { return trim; } else { return StringUtils.stripEnd(trim, "/"); } } SVNBranchConfigurationProperty(String branchPath, ServiceConfiguration buildRevisionLink); }
SVNBranchConfigurationProperty { @JsonIgnore public String getCuredBranchPath() { String trim = StringUtils.trim(branchPath); if ("/".equals(trim)) { return trim; } else { return StringUtils.stripEnd(trim, "/"); } } SVNBranchConfigurationProperty(String branchPath, ServiceConfiguration buildRevisionLink); @JsonIgnore String getCuredBranchPath(); }
SVNBranchConfigurationProperty { @JsonIgnore public String getCuredBranchPath() { String trim = StringUtils.trim(branchPath); if ("/".equals(trim)) { return trim; } else { return StringUtils.stripEnd(trim, "/"); } } SVNBranchConfigurationProperty(String branchPath, ServiceConfiguration buildRevisionLink); @JsonIgnore String getCuredBranchPath();  }