@Test(expectedExceptions = IllegalArgumentException.class) public void testIsSameBranchOrHasImageNamePrefix() { new GitForkBranch("", "1", ""); }
public boolean isSameBranchOrHasImageNamePrefix(String branchName) { if (this.imageTag.equals("")) { return this.getBranchName().equals(branchName); } else if (branchName != null) { String tempBranchName = branchName.trim(); return getBranchWithoutTag(tempBranchName).equals(this.branchPrefix); } return false; }
GitForkBranch { public boolean isSameBranchOrHasImageNamePrefix(String branchName) { if (this.imageTag.equals("")) { return this.getBranchName().equals(branchName); } else if (branchName != null) { String tempBranchName = branchName.trim(); return getBranchWithoutTag(tempBranchName).equals(this.branchPrefix); } return false; } }
GitForkBranch { public boolean isSameBranchOrHasImageNamePrefix(String branchName) { if (this.imageTag.equals("")) { return this.getBranchName().equals(branchName); } else if (branchName != null) { String tempBranchName = branchName.trim(); return getBranchWithoutTag(tempBranchName).equals(this.branchPrefix); } return false; } GitForkBranch(String imageName, String imageTag, String specifiedBranch); }
GitForkBranch { public boolean isSameBranchOrHasImageNamePrefix(String branchName) { if (this.imageTag.equals("")) { return this.getBranchName().equals(branchName); } else if (branchName != null) { String tempBranchName = branchName.trim(); return getBranchWithoutTag(tempBranchName).equals(this.branchPrefix); } return false; } GitForkBranch(String imageName, String imageTag, String specifiedBranch); boolean isSameBranchOrHasImageNamePrefix(String branchName); boolean useSpecifiedBranchOverride(); String getBranchName(); String getImageName(); String getImageTag(); }
GitForkBranch { public boolean isSameBranchOrHasImageNamePrefix(String branchName) { if (this.imageTag.equals("")) { return this.getBranchName().equals(branchName); } else if (branchName != null) { String tempBranchName = branchName.trim(); return getBranchWithoutTag(tempBranchName).equals(this.branchPrefix); } return false; } GitForkBranch(String imageName, String imageTag, String specifiedBranch); boolean isSameBranchOrHasImageNamePrefix(String branchName); boolean useSpecifiedBranchOverride(); String getBranchName(); String getImageName(); String getImageTag();  }