FilePairApriori { @Override public String toString() { if (file2HasGreaterConfidence) { return file2Issues + SEPARATOR + fileIssues + SEPARATOR + issues + SEPARATOR + allIssues + SEPARATOR + supportFile2 + SEPARATOR + supportFile + SEPARATOR + supportFilePair + SEPARATOR + confidence2 + SEPARATOR + confidence + SEPARATOR + lift + SEPARATOR + conviction2 + SEPARATOR + conviction + SEPARATOR; } return fileIssues + SEPARATOR + file2Issues + SEPARATOR + issues + SEPARATOR + allIssues + SEPARATOR + supportFile + SEPARATOR + supportFile2 + SEPARATOR + supportFilePair + SEPARATOR + confidence + SEPARATOR + confidence2 + SEPARATOR + lift + SEPARATOR + conviction + SEPARATOR + conviction2 + SEPARATOR; } FilePairApriori(long fileIssues, long file2Issues, long filePairIssues, long allIssues); long getFileIssues(); long getFile2Issues(); long getIssues(); long getAllIssues(); double getSupportFile(); double getSupportFile2(); double getSupportFilePair(); double getConfidence(); double getConfidence2(); double getLift(); double getConviction(); double getConviction2(); boolean isFile2GreaterConfidence(); double getHighestConfidence(); boolean hasMinIssues(int minIssues); boolean hasIssues(int issues); boolean hasMaxIssues(int maxIssues); boolean hasMinSupport(Double minSupport); boolean hasMaxSupport(Double maxSupport); boolean hasMinConfidence(Double minConfidence); boolean hasMaxConfidence(Double maxConfidence); boolean fits(FilterByApriori aprioriFilter); boolean hasMinMaxConfidence(Double minConfidence, Double maxConfidence); boolean hasMinMaxSupport(Double minSupport, Double maxSupport); boolean hasMinMaxIssues(Integer minIssues, Integer maxIssues); @Override String toString(); String toStringPairFileApriori(); static String getToStringHeader(); static String getToStringHeaderPairFileApriori();  }
@Test public void testToString() { assertEquals("2;4;2;4;0.5;1.0;0.5;1.0;0.5;1.0;0.0;0.0;", instance.toString()); }
@Test public void testToStringInverted() { instance = new FilePairApriori(4, 2, 2, 4); assertEquals("2;4;2;4;0.5;1.0;0.5;1.0;0.5;1.0;0.0;0.0;", instance.toString()); }