@Test public void empty() throws IOException { Workout workout = new Workout(); workout.start.set(Mon_Jun_15_2015); workout.duration.set(2); workout.distance.set(6); workout.strokes.set(2); workout.energy.set(3); List<Snapshot> snapshots = new ArrayList<>(); StringWriter writer = new StringWriter(); new Workout2TCX(writer, new StationaryCourse(null)).document(workout, snapshots); assertContent(getClass().getResourceAsStream("/empty.tcx"), writer.toString()); }
public void document(Workout workout, List<Snapshot> snaoshots) throws IOException { serializer.startDocument("UTF-8", true); trainingCenterDatabase(workout, snaoshots); serializer.endDocument(); }
Workout2TCX { public void document(Workout workout, List<Snapshot> snaoshots) throws IOException { serializer.startDocument("UTF-8", true); trainingCenterDatabase(workout, snaoshots); serializer.endDocument(); } }
Workout2TCX { public void document(Workout workout, List<Snapshot> snaoshots) throws IOException { serializer.startDocument("UTF-8", true); trainingCenterDatabase(workout, snaoshots); serializer.endDocument(); } Workout2TCX(Writer writer, ICourse track); }
Workout2TCX { public void document(Workout workout, List<Snapshot> snaoshots) throws IOException { serializer.startDocument("UTF-8", true); trainingCenterDatabase(workout, snaoshots); serializer.endDocument(); } Workout2TCX(Writer writer, ICourse track); void document(Workout workout, List<Snapshot> snaoshots); }
Workout2TCX { public void document(Workout workout, List<Snapshot> snaoshots) throws IOException { serializer.startDocument("UTF-8", true); trainingCenterDatabase(workout, snaoshots); serializer.endDocument(); } Workout2TCX(Writer writer, ICourse track); void document(Workout workout, List<Snapshot> snaoshots);  }