use of ch.hsr.sa.radiotour.dataaccess.repositories.RaceGroupRepository in project app by TourLive.
the class RaceGroupRepositoryInstrumentedTest method initTestData.
@Before
public void initTestData() {
this.riderRepository = new RiderRepository();
this.raceGroupRepository = new RaceGroupRepository();
realm = Realm.getInstance(RadioTourApplication.getInstance());
initCallbacks();
raceGroups.clear();
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(Realm realm) {
realm.where(Rider.class).findAll().deleteAllFromRealm();
realm.where(RaceGroup.class).findAll().deleteAllFromRealm();
}
});
createRiders();
}
Aggregations