@Test public void getCsvLine_LocationWithAnnotation_ReturnsCSVLine(){ CSVFileLogger plain = new CSVFileLogger(null,47); Location loc = MockLocations.builder("MOCK", 12.2228821,14.151).build(); String actual = plain.getCsvLine("はい", loc, "2011-09-17T18:45:33Z"); String expected = "2011-09-17T18:45:33Z,12.2228821,14.151,,,,,0,MOCK,,,,,,,,47,\"はい\"\n"; assertThat("CSV With annotation", actual, is(expected)); }
String getCsvLine(Location loc, String dateTimeString) { return getCsvLine("", loc, dateTimeString); }
CSVFileLogger implements FileLogger { String getCsvLine(Location loc, String dateTimeString) { return getCsvLine("", loc, dateTimeString); } }
CSVFileLogger implements FileLogger { String getCsvLine(Location loc, String dateTimeString) { return getCsvLine("", loc, dateTimeString); } CSVFileLogger(File file, @Nullable Integer batteryLevel); }
CSVFileLogger implements FileLogger { String getCsvLine(Location loc, String dateTimeString) { return getCsvLine("", loc, dateTimeString); } CSVFileLogger(File file, @Nullable Integer batteryLevel); @Override void write(Location loc); @Override void annotate(String description, Location loc); @Override String getName(); }
CSVFileLogger implements FileLogger { String getCsvLine(Location loc, String dateTimeString) { return getCsvLine("", loc, dateTimeString); } CSVFileLogger(File file, @Nullable Integer batteryLevel); @Override void write(Location loc); @Override void annotate(String description, Location loc); @Override String getName();  }