@Test public void testEventListWriter() { mWriter.write(mEventTeams, 0L); SQLiteDatabase db = mDb.getWritableDatabase(); for (EventTeam eventTeam : mEventTeams) { verify(db).insert(Database.TABLE_EVENTTEAMS, null, eventTeam.getParams(mGson)); } }
@Override @WorkerThread public void write(List<EventTeam> eventTeams, Long lastModified) { mDb.getEventTeamsTable().add(ImmutableList.copyOf(eventTeams), lastModified); }
EventTeamListWriter extends BaseDbWriter<List<EventTeam>> { @Override @WorkerThread public void write(List<EventTeam> eventTeams, Long lastModified) { mDb.getEventTeamsTable().add(ImmutableList.copyOf(eventTeams), lastModified); } }
EventTeamListWriter extends BaseDbWriter<List<EventTeam>> { @Override @WorkerThread public void write(List<EventTeam> eventTeams, Long lastModified) { mDb.getEventTeamsTable().add(ImmutableList.copyOf(eventTeams), lastModified); } @Inject  EventTeamListWriter(Database db); }
EventTeamListWriter extends BaseDbWriter<List<EventTeam>> { @Override @WorkerThread public void write(List<EventTeam> eventTeams, Long lastModified) { mDb.getEventTeamsTable().add(ImmutableList.copyOf(eventTeams), lastModified); } @Inject  EventTeamListWriter(Database db); @Override @WorkerThread void write(List<EventTeam> eventTeams, Long lastModified); }
EventTeamListWriter extends BaseDbWriter<List<EventTeam>> { @Override @WorkerThread public void write(List<EventTeam> eventTeams, Long lastModified) { mDb.getEventTeamsTable().add(ImmutableList.copyOf(eventTeams), lastModified); } @Inject  EventTeamListWriter(Database db); @Override @WorkerThread void write(List<EventTeam> eventTeams, Long lastModified);  }