use of ch.hsr.sa.radiotour.dataaccess.repositories.RiderRepository 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();
}
use of ch.hsr.sa.radiotour.dataaccess.repositories.RiderRepository in project app by TourLive.
the class JudgmentRiderConnectionInstrumentedTest method initTestData.
@Before
public void initTestData() {
this.judgmentRiderConnectionRepository = new JudgmentRiderConnectionRepository();
this.riderRepository = new RiderRepository();
this.judgmentRepository = new JudgmentRepository();
realm = Realm.getInstance(RadioTourApplication.getInstance());
initCallbacks();
realm.executeTransaction((Realm db) -> {
db.where(JudgmentRiderConnection.class).findAll().deleteAllFromRealm();
db.where(Rider.class).findAll().deleteAllFromRealm();
db.where(Judgement.class).findAll().deleteAllFromRealm();
});
}
use of ch.hsr.sa.radiotour.dataaccess.repositories.RiderRepository in project app by TourLive.
the class RiderRepositoryInstrumentedTest method initTestData.
@Before
public void initTestData() {
this.riderRepository = new RiderRepository();
this.riderStageConnectionRepository = new RiderStageConnectionRepository();
realm = Realm.getInstance(RadioTourApplication.getInstance());
initCallbacks();
riders.clear();
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(Realm realm) {
realm.where(Rider.class).findAll().deleteAllFromRealm();
realm.where(RiderStageConnection.class).findAll().deleteAllFromRealm();
}
});
}
use of ch.hsr.sa.radiotour.dataaccess.repositories.RiderRepository in project app by TourLive.
the class RiderStageConnectionRepositoryInstrumentedTest method initTestData.
@Before
public void initTestData() {
this.riderRepository = new RiderRepository();
this.riderStageConnectionRepository = new RiderStageConnectionRepository();
realm = Realm.getInstance(RadioTourApplication.getInstance());
initCallbacks();
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(Realm realm) {
realm.where(Rider.class).findAll().deleteAllFromRealm();
realm.where(RiderStageConnection.class).findAll().deleteAllFromRealm();
}
});
}
Aggregations