@RunWithCustomExecutor @Test public void testCreate() throws Exception { VitamThreadUtils.getVitamSession().setTenantId(0); alertLogbookOperationsDecorator.create(logbookParameters); verify(alertService).createAlert(Mockito.eq(VitamLogLevel.INFO), Mockito.anyString()); }
@Override public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException { logbookOperations.create(parameters); createAlertIfNecessary(parameters); }
AlertLogbookOperationsDecorator extends LogbookOperationsDecorator { @Override public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException { logbookOperations.create(parameters); createAlertIfNecessary(parameters); } }
AlertLogbookOperationsDecorator extends LogbookOperationsDecorator { @Override public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException { logbookOperations.create(parameters); createAlertIfNecessary(parameters); } AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents); @VisibleForTesting  AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents, AlertService alertService); }
AlertLogbookOperationsDecorator extends LogbookOperationsDecorator { @Override public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException { logbookOperations.create(parameters); createAlertIfNecessary(parameters); } AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents); @VisibleForTesting  AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents, AlertService alertService); @Override void create(LogbookOperationParameters parameters); @Override void update(LogbookOperationParameters parameters); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select, boolean sliced); @Override void createBulkLogbookOperation(LogbookOperationParameters[] operationArray); @Override void updateBulkLogbookOperation(LogbookOperationParameters[] operationArray); }
AlertLogbookOperationsDecorator extends LogbookOperationsDecorator { @Override public void create(LogbookOperationParameters parameters) throws LogbookAlreadyExistsException, LogbookDatabaseException { logbookOperations.create(parameters); createAlertIfNecessary(parameters); } AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents); @VisibleForTesting  AlertLogbookOperationsDecorator(LogbookOperations logbookOperations, List<LogbookEvent> alertEvents, AlertService alertService); @Override void create(LogbookOperationParameters parameters); @Override void update(LogbookOperationParameters parameters); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select); @Override RequestResponse<LogbookOperation> selectOperations(JsonNode select, boolean sliced); @Override void createBulkLogbookOperation(LogbookOperationParameters[] operationArray); @Override void updateBulkLogbookOperation(LogbookOperationParameters[] operationArray);  }