@Test public void testEventListWriter() { mWriter.write(mMedias, 0L); SQLiteDatabase db = mDb.getWritableDatabase(); for (Media media : mMedias) { verify(db).insert(Database.TABLE_MEDIAS, null, media.getParams(mGson)); } }
@Override @WorkerThread public void write(List<Media> medias, Long lastModified) { mDb.getMediasTable().add(ImmutableList.copyOf(medias), lastModified); }
MediaListWriter extends BaseDbWriter<List<Media>> { @Override @WorkerThread public void write(List<Media> medias, Long lastModified) { mDb.getMediasTable().add(ImmutableList.copyOf(medias), lastModified); } }
MediaListWriter extends BaseDbWriter<List<Media>> { @Override @WorkerThread public void write(List<Media> medias, Long lastModified) { mDb.getMediasTable().add(ImmutableList.copyOf(medias), lastModified); } @Inject  MediaListWriter(Database db); }
MediaListWriter extends BaseDbWriter<List<Media>> { @Override @WorkerThread public void write(List<Media> medias, Long lastModified) { mDb.getMediasTable().add(ImmutableList.copyOf(medias), lastModified); } @Inject  MediaListWriter(Database db); @Override @WorkerThread void write(List<Media> medias, Long lastModified); }
MediaListWriter extends BaseDbWriter<List<Media>> { @Override @WorkerThread public void write(List<Media> medias, Long lastModified) { mDb.getMediasTable().add(ImmutableList.copyOf(medias), lastModified); } @Inject  MediaListWriter(Database db); @Override @WorkerThread void write(List<Media> medias, Long lastModified);  }