Merge pull request #1026 from psh/extract-and-test-contribution-db

Extracted and tested the database interactions from Contribution.
This commit is contained in:
neslihanturan 2018-01-02 13:58:10 +03:00 committed by GitHub
commit d6d38e0564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 687 additions and 256 deletions

View file

@ -21,7 +21,7 @@ import javax.inject.Named;
import dagger.android.AndroidInjector;
import dagger.android.DaggerApplication;
import fr.free.nrw.commons.auth.SessionManager;
import fr.free.nrw.commons.contributions.Contribution;
import fr.free.nrw.commons.contributions.ContributionDao;
import fr.free.nrw.commons.data.Category;
import fr.free.nrw.commons.data.DBOpenHelper;
import fr.free.nrw.commons.di.CommonsApplicationComponent;
@ -170,7 +170,7 @@ public class CommonsApplication extends DaggerApplication {
ModifierSequence.Table.onDelete(db);
Category.Table.onDelete(db);
Contribution.Table.onDelete(db);
ContributionDao.Table.onDelete(db);
}
/**