use of ch.hsr.sa.radiotour.dataaccess.repositories.RiderStageConnectionRepository in project app by TourLive.
the class StageRepositoryInstrumentedTest method initTestData.
@Before
public void initTestData() {
this.stageRepository = new StageRepository();
this.riderStageConnectionRepository = new RiderStageConnectionRepository();
realm = Realm.getInstance(RadioTourApplication.getInstance());
initCallbacks();
realm.executeTransaction(new Realm.Transaction() {
@Override
public void execute(Realm realm) {
realm.where(Stage.class).findAll().deleteAllFromRealm();
realm.where(RiderStageConnection.class).findAll().deleteAllFromRealm();
}
});
}
use of ch.hsr.sa.radiotour.dataaccess.repositories.RiderStageConnectionRepository 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.RiderStageConnectionRepository 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