@Test public void givenSomeOtherJobDataWithoutThreadId_whenIMigrate_thenIDoNotReplace() { JobMigration.JobData jobData = new JobMigration.JobData("SomeOtherJob", "asdf", new Data.Builder().build()); JobMigration.JobData result = testSubject.migrate(jobData); assertEquals(jobData, result); }
@Override protected @NonNull JobData migrate(@NonNull JobData jobData) { if ("SendReadReceiptJob".equals(jobData.getFactoryKey())) { return migrateSendReadReceiptJob(mmsSmsDatabase, jobData); } return jobData; }
SendReadReceiptsJobMigration extends JobMigration { @Override protected @NonNull JobData migrate(@NonNull JobData jobData) { if ("SendReadReceiptJob".equals(jobData.getFactoryKey())) { return migrateSendReadReceiptJob(mmsSmsDatabase, jobData); } return jobData; } }
SendReadReceiptsJobMigration extends JobMigration { @Override protected @NonNull JobData migrate(@NonNull JobData jobData) { if ("SendReadReceiptJob".equals(jobData.getFactoryKey())) { return migrateSendReadReceiptJob(mmsSmsDatabase, jobData); } return jobData; } SendReadReceiptsJobMigration(@NonNull MmsSmsDatabase mmsSmsDatabase); }
SendReadReceiptsJobMigration extends JobMigration { @Override protected @NonNull JobData migrate(@NonNull JobData jobData) { if ("SendReadReceiptJob".equals(jobData.getFactoryKey())) { return migrateSendReadReceiptJob(mmsSmsDatabase, jobData); } return jobData; } SendReadReceiptsJobMigration(@NonNull MmsSmsDatabase mmsSmsDatabase);  }
SendReadReceiptsJobMigration extends JobMigration { @Override protected @NonNull JobData migrate(@NonNull JobData jobData) { if ("SendReadReceiptJob".equals(jobData.getFactoryKey())) { return migrateSendReadReceiptJob(mmsSmsDatabase, jobData); } return jobData; } SendReadReceiptsJobMigration(@NonNull MmsSmsDatabase mmsSmsDatabase);   }