AuxFileFile { @Override public String toString() { StringBuilder toString = new StringBuilder(); toString.append(fileName).append(";").append(fileName2).append(";"); appendInteger(toString, issuesWeight); appendSetInteger(toString, issuesId); appendInteger(toString, commitsWeight); appendSetInteger(toString, commitsId); if (defectsWeight > 0) { appendInteger(toString, defectsWeight); appendSetInteger(toString, defectIssuesId); } if (support > 0) { toString.append(support); toString.append(";"); } toString.append(futureDefects); return toString.toString(); } AuxFileFile(String fileName, String fileName2); String getFileName(); String getFileName2(); Set<Integer> getIssuesId(); Set<Integer> getCommitsId(); Set<Integer> getDefectIssuesId(); void addIssueId(Integer issueId); void addDefectIssueId(Integer issueId); double getSupport(); void setSupport(double support); void addCommitId(Integer issueId); int getIssuesWeight(); int getCommitsWeight(); int getDefectsWeight(); void setFutureDefects(long futureDefects); long getFutureDefects(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test @Ignore public void testToString() { AuxFileFile fileFile = new AuxFileFile("FileA.java", "FileB.java"); fileFile.addIssueId(1); fileFile.addIssueId(2); String toStringExpected = "FileA.java;FileB.java;2;1,2;0;;0;;0.0"; assertEquals(toStringExpected, fileFile.toString()); }