Skip to content

Commit

Permalink
fix: bug in export format value
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Nov 27, 2023
1 parent 8029738 commit 7d3eb8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public String getFormat() {
}

public static boolean isCsv(String clientFormat) {
return clientFormat.equals(CSV_GZIP.toString());
return clientFormat.equals(CSV_GZIP.getFormat());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ public class ExportFormatTest {

@Test
public void isCsv() {
assertFalse(ExportFormat.isCsv(ExportFormat.BINARY.toString()));
assertTrue(ExportFormat.isCsv(ExportFormat.CSV_GZIP.toString()));
assertFalse(ExportFormat.isCsv("any"));
assertFalse(ExportFormat.isCsv("binary"));
assertTrue(ExportFormat.isCsv("csv_gzip"));
}

}

0 comments on commit 7d3eb8d

Please sign in to comment.