use of me.vertretungsplan.objects.SubstitutionScheduleData in project substitution-schedule-parser by vertretungsplanme.
the class CSVDemoTest method setUp.
@Before
public void setUp() throws JSONException {
csv = readResource("/csv/csv.csv");
SubstitutionScheduleData scheduleData = new SubstitutionScheduleData();
JSONObject data = new JSONObject();
data.put("skipLines", 1);
data.put("separator", "\\|");
JSONArray columns = new JSONArray();
columns.put("ignore").put("day").put("stand").put("class").put("lesson").put("subject").put("teacher").put("room").put("desc-type");
data.put("columns", columns);
data.put("classes", new JSONArray());
scheduleData.setData(data);
parser = new CSVParser(scheduleData, null);
}
Aggregations