@RunWithCustomExecutor @Test public void updateBulkLogbookOperationTest() throws Exception { VitamThreadUtils.getVitamSession().setTenantId(0); reset(mongoDbAccess); when(mongoDbAccess.getLogbookOperation(any())).thenReturn(new LogbookOperation(logbookParameters)); LogbookOperationParameters[] param = new LogbookOperationParameters[2]; param[0] = LogbookParameterHelper.newLogbookOperationParameters(); param[1] = LogbookParameterHelper.newLogbookOperationParameters(); logbookOperationsImpl.updateBulkLogbookOperation(param); }
@Override public final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException { mongoDbAccess.updateBulkLogbookOperation(operationArray); backupBulkOperation(operationArray); }
LogbookOperationsImpl implements LogbookOperations { @Override public final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException { mongoDbAccess.updateBulkLogbookOperation(operationArray); backupBulkOperation(operationArray); } }
LogbookOperationsImpl implements LogbookOperations { @Override public final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException { mongoDbAccess.updateBulkLogbookOperation(operationArray); backupBulkOperation(operationArray); } LogbookOperationsImpl(LogbookDbAccess mongoDbAccess); @VisibleForTesting  LogbookOperationsImpl(LogbookDbAccess mongoDbAccess, WorkspaceClientFactory workspaceClientFactory,
        StorageClientFactory storageClientFactory, IndexationHelper indexationHelper); }
LogbookOperationsImpl implements LogbookOperations { @Override public final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException { mongoDbAccess.updateBulkLogbookOperation(operationArray); backupBulkOperation(operationArray); } LogbookOperationsImpl(LogbookDbAccess mongoDbAccess); @VisibleForTesting  LogbookOperationsImpl(LogbookDbAccess mongoDbAccess, WorkspaceClientFactory workspaceClientFactory,
        StorageClientFactory storageClientFactory, IndexationHelper indexationHelper); @Override void create(LogbookOperationParameters parameters); @Override void update(LogbookOperationParameters parameters); @Override List<LogbookOperation> select(JsonNode select); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select, boolean sliced); @Override List<LogbookOperation> select(JsonNode select, boolean sliced); @Override LogbookOperation getById(String idProcess); @Override final void createBulkLogbookOperation(final LogbookOperationParameters[] operationArray); @Override final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray); @Override MongoCursor<LogbookOperation> selectOperationsByLastPersistenceDateInterval(LocalDateTime startDate,
        LocalDateTime endDate); @Override LogbookOperation findFirstTraceabilityOperationOKAfterDate(final LocalDateTime date); @Override LogbookOperation findLastTraceabilityOperationOK(); @Override IndexationResult reindex(IndexParameters indexParameters); @Override void switchIndex(String alias, String newIndexName); }
LogbookOperationsImpl implements LogbookOperations { @Override public final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray) throws LogbookDatabaseException, LogbookNotFoundException { mongoDbAccess.updateBulkLogbookOperation(operationArray); backupBulkOperation(operationArray); } LogbookOperationsImpl(LogbookDbAccess mongoDbAccess); @VisibleForTesting  LogbookOperationsImpl(LogbookDbAccess mongoDbAccess, WorkspaceClientFactory workspaceClientFactory,
        StorageClientFactory storageClientFactory, IndexationHelper indexationHelper); @Override void create(LogbookOperationParameters parameters); @Override void update(LogbookOperationParameters parameters); @Override List<LogbookOperation> select(JsonNode select); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select, boolean sliced); @Override List<LogbookOperation> select(JsonNode select, boolean sliced); @Override LogbookOperation getById(String idProcess); @Override final void createBulkLogbookOperation(final LogbookOperationParameters[] operationArray); @Override final void updateBulkLogbookOperation(final LogbookOperationParameters[] operationArray); @Override MongoCursor<LogbookOperation> selectOperationsByLastPersistenceDateInterval(LocalDateTime startDate,
        LocalDateTime endDate); @Override LogbookOperation findFirstTraceabilityOperationOKAfterDate(final LocalDateTime date); @Override LogbookOperation findLastTraceabilityOperationOK(); @Override IndexationResult reindex(IndexParameters indexParameters); @Override void switchIndex(String alias, String newIndexName);  }