@BeforeClass public static void beforeClass() { csvFileOutputStrategy = new CsvFileOutputStrategy(); athlete = new Athlete("Erki Nool", "1970-06-25", "EE"); double[] results = new double[] {10.62, 807, 16.57, 200, 47.74, 13.80, 45.51, 500, 68.53, 275.13}; List<Result> resultsList = new ArrayList<Result>(); int i = 0; for (Event event : Event.values()) { resultsList.add(new Result(event, results[i])); i++; } athlete.setResults(resultsList); athlete.setPlace("1"); }