use of ch.hsr.sa.radiotour.dataaccess.repositories.StageRepository 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();
}
});
}
Aggregations