@Test public void shouldGetRnrHasSyncErrorIsFalse() throws Exception { boolean hasRnrSyncError = syncErrorsRepository.hasSyncErrorOf(SyncType.RnRForm); assertFalse(hasRnrSyncError); }
public boolean hasSyncErrorOf(final SyncType syncType) throws LMISException { SyncError syncError = dbUtil.withDao(SyncError.class, dao -> dao.queryBuilder().where().eq("syncType", syncType).queryForFirst()); return syncError != null; }
SyncErrorsRepository { public boolean hasSyncErrorOf(final SyncType syncType) throws LMISException { SyncError syncError = dbUtil.withDao(SyncError.class, dao -> dao.queryBuilder().where().eq("syncType", syncType).queryForFirst()); return syncError != null; } }
SyncErrorsRepository { public boolean hasSyncErrorOf(final SyncType syncType) throws LMISException { SyncError syncError = dbUtil.withDao(SyncError.class, dao -> dao.queryBuilder().where().eq("syncType", syncType).queryForFirst()); return syncError != null; } @Inject  SyncErrorsRepository(Context context); }
SyncErrorsRepository { public boolean hasSyncErrorOf(final SyncType syncType) throws LMISException { SyncError syncError = dbUtil.withDao(SyncError.class, dao -> dao.queryBuilder().where().eq("syncType", syncType).queryForFirst()); return syncError != null; } @Inject  SyncErrorsRepository(Context context); void save(final SyncError syncError); void delete(SyncError syncError); List<SyncError> getBySyncTypeAndObjectId(final SyncType syncType, final long syncObjectId); Integer deleteBySyncTypeAndObjectId(final SyncType syncType, final long syncObjectId); boolean hasSyncErrorOf(final SyncType syncType); }
SyncErrorsRepository { public boolean hasSyncErrorOf(final SyncType syncType) throws LMISException { SyncError syncError = dbUtil.withDao(SyncError.class, dao -> dao.queryBuilder().where().eq("syncType", syncType).queryForFirst()); return syncError != null; } @Inject  SyncErrorsRepository(Context context); void save(final SyncError syncError); void delete(SyncError syncError); List<SyncError> getBySyncTypeAndObjectId(final SyncType syncType, final long syncObjectId); Integer deleteBySyncTypeAndObjectId(final SyncType syncType, final long syncObjectId); boolean hasSyncErrorOf(final SyncType syncType);  }