@Test public void getCsvLine_BasicLocationWithManyDecimalPoints_ReturnsBasicCSV(){ CSVFileLogger plain = new CSVFileLogger(null,null); Location loc = MockLocations.builder("MOCK", 12.987654321, 19.12383457298345).build(); String actual = plain.getCsvLine(loc,"2011-09-17T18:45:33Z"); String expected = "2011-09-17T18:45:33Z,12.987654321,19.12383457298345,,,,,0,MOCK,,,,,,,,,\n"; assertThat("Location with many decimal points should show all decimal places", 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();  }