@Test public void onDeleteSuccess() { mListener.onDeleteSuccess(new Object(), new DatabaseOperationMetadata()); verify(mDriveDatabaseManager).syncDatabase(); }
@Override public void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata) { if (databaseOperationMetadata.getOperationFamilyType() != OperationFamilyType.Sync) { mDriveDatabaseManager.syncDatabase(); } }
DatabaseBackupListener extends StubTableEventsListener<ModelType> { @Override public void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata) { if (databaseOperationMetadata.getOperationFamilyType() != OperationFamilyType.Sync) { mDriveDatabaseManager.syncDatabase(); } } }
DatabaseBackupListener extends StubTableEventsListener<ModelType> { @Override public void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata) { if (databaseOperationMetadata.getOperationFamilyType() != OperationFamilyType.Sync) { mDriveDatabaseManager.syncDatabase(); } } DatabaseBackupListener(@NonNull DriveDatabaseManager driveDatabaseManager); }
DatabaseBackupListener extends StubTableEventsListener<ModelType> { @Override public void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata) { if (databaseOperationMetadata.getOperationFamilyType() != OperationFamilyType.Sync) { mDriveDatabaseManager.syncDatabase(); } } DatabaseBackupListener(@NonNull DriveDatabaseManager driveDatabaseManager); @Override void onInsertSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata); @Override void onUpdateSuccess(@NonNull ModelType oldT, @NonNull ModelType newT, @NonNull DatabaseOperationMetadata databaseOperationMetadata); @Override void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata); }
DatabaseBackupListener extends StubTableEventsListener<ModelType> { @Override public void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata) { if (databaseOperationMetadata.getOperationFamilyType() != OperationFamilyType.Sync) { mDriveDatabaseManager.syncDatabase(); } } DatabaseBackupListener(@NonNull DriveDatabaseManager driveDatabaseManager); @Override void onInsertSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata); @Override void onUpdateSuccess(@NonNull ModelType oldT, @NonNull ModelType newT, @NonNull DatabaseOperationMetadata databaseOperationMetadata); @Override void onDeleteSuccess(@NonNull ModelType modelType, @NonNull DatabaseOperationMetadata databaseOperationMetadata);  }