@Test public void getCsvLine_LocationWithSpeedProvider_ReturnsCSVLine(){ CSVFileLogger plain = new CSVFileLogger(null,null); Location loc = MockLocations.builder("BRAINS", 12.193001, 19.1115127).withAltitude(101).withBearing(119).withSpeed(9).build(); String actual = plain.getCsvLine(loc,"2011-09-17T18:45:33Z"); String expected = "2011-09-17T18:45:33Z,12.193001,19.1115127,101.0,,119.0,9.0,0,BRAINS,,,,,,,,,\n"; assertThat("CSV line with speed and provider", 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();  }