AuxFileFile { public void addIssueId(Integer issueId) { issuesWeight++; issuesId.add(issueId); } 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 public void testAddIssueId() { AuxFileFile fileFile = new AuxFileFile("FileA.java", "FileB.java"); fileFile.addIssueId(1); fileFile.addIssueId(2); Set<Integer> issuesExpected = new HashSet<>(2); issuesExpected.add(1); issuesExpected.add(2); int weightExpected = 2; assertEquals(issuesExpected, fileFile.getIssuesId()); assertEquals(weightExpected, fileFile.getIssuesWeight()); }