Skip to content

Commit

Permalink
chore(engine-tests): configure requited history level
Browse files Browse the repository at this point in the history
Related to CAM-9864
  • Loading branch information
yanavasileva committed Mar 12, 2019
1 parent ae5bc53 commit d39807e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@
import java.util.Collection;

import org.camunda.bpm.engine.AuthorizationService;
import org.camunda.bpm.engine.ProcessEngineConfiguration;
import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.TaskService;
import org.camunda.bpm.engine.authorization.Authorization;
import org.camunda.bpm.engine.history.HistoricVariableInstance;
import org.camunda.bpm.engine.impl.TaskServiceImpl;
import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.camunda.bpm.engine.test.ProcessEngineRule;
import org.camunda.bpm.engine.test.RequiredHistoryLevel;
import org.camunda.bpm.engine.test.api.authorization.util.AuthorizationScenario;
import org.camunda.bpm.engine.test.api.authorization.util.AuthorizationTestRule;
import org.camunda.bpm.engine.test.util.ProvidedProcessEngineRule;
Expand Down Expand Up @@ -235,6 +237,7 @@ public void testSetVariablesLocal() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testRemoveVariable() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY, getVariables());
Expand All @@ -258,6 +261,7 @@ public void testRemoveVariable() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testRemoveVariableLocal() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -283,6 +287,7 @@ public void testRemoveVariableLocal() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testRemoveVariables() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY, getVariables());
Expand All @@ -306,6 +311,7 @@ public void testRemoveVariables() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testRemoveVariablesLocal() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -331,6 +337,7 @@ public void testRemoveVariablesLocal() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesAdd() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -354,6 +361,7 @@ public void testUpdateVariablesAdd() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesRemove() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -378,6 +386,7 @@ public void testUpdateVariablesRemove() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesAddRemove() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -401,6 +410,7 @@ public void testUpdateVariablesAddRemove() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesLocalAdd() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -424,6 +434,7 @@ public void testUpdateVariablesLocalAdd() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesLocalRemove() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand All @@ -448,6 +459,7 @@ public void testUpdateVariablesLocalRemove() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesLocalAddRemove() {
// given
runtimeService.startProcessInstanceByKey(PROCESS_KEY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void testRemoveVariables() {
}

@Test
// @RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testRemoveVariablesLocal() {
// given
createTask(taskId);
Expand All @@ -314,6 +314,7 @@ public void testRemoveVariablesLocal() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesAdd() {
// given
createTask(taskId);
Expand All @@ -336,6 +337,7 @@ public void testUpdateVariablesAdd() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesRemove() {
// given
createTask(taskId);
Expand All @@ -359,6 +361,7 @@ public void testUpdateVariablesRemove() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesAddRemove() {
// given
createTask(taskId);
Expand All @@ -381,6 +384,7 @@ public void testUpdateVariablesAddRemove() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesLocalAdd() {
// given
createTask(taskId);
Expand All @@ -403,6 +407,7 @@ public void testUpdateVariablesLocalAdd() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesLocalRemove() {
// given
createTask(taskId);
Expand All @@ -426,6 +431,7 @@ public void testUpdateVariablesLocalRemove() {
}

@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL)
public void testUpdateVariablesLocalAddRemove() {
// given
createTask(taskId);
Expand Down

0 comments on commit d39807e

Please sign in to comment.