use of org.activiti.engine.impl.persistence.entity.TaskEntityImpl in project Activiti by Activiti.
the class ExecutionElResolverTest method resolve_should_returnVariableScopeExecutionWhenItsTaskEntity.
@Test
public void resolve_should_returnVariableScopeExecutionWhenItsTaskEntity() {
// given
ExecutionEntityImpl execution = new ExecutionEntityImpl();
TaskEntityImpl variableScope = new TaskEntityImpl();
variableScope.setExecution(execution);
// when
Object result = resolver.resolve(EXECUTION_KEY, variableScope);
// then
assertThat(result).isEqualTo(execution);
}
use of org.activiti.engine.impl.persistence.entity.TaskEntityImpl in project Activiti by Activiti.
the class ExecutionElResolverTest method canResolve_should_returnTrueWhenItsTaskEntityAndPropertyIsExecution.
@Test
public void canResolve_should_returnTrueWhenItsTaskEntityAndPropertyIsExecution() {
// when
boolean canResolve = resolver.canResolve(EXECUTION_KEY, new TaskEntityImpl());
// then
assertThat(canResolve).isTrue();
}
use of org.activiti.engine.impl.persistence.entity.TaskEntityImpl in project Activiti by Activiti.
the class TaskElResolverTest method resolve_should_returnVariableScope.
@Test
public void resolve_should_returnVariableScope() {
// given
TaskEntity variableScope = new TaskEntityImpl();
// when
Object result = resolver.resolve(TASK_KEY, variableScope);
// then
assertThat(result).isEqualTo(variableScope);
}
use of org.activiti.engine.impl.persistence.entity.TaskEntityImpl in project Activiti by Activiti.
the class TaskElResolverTest method canResolve_should_returnFalseWhenItsTaskEntityAndPropertyIsNotTask.
@Test
public void canResolve_should_returnFalseWhenItsTaskEntityAndPropertyIsNotTask() {
// when
boolean canResolve = resolver.canResolve("differentFromTask", new TaskEntityImpl());
// then
assertThat(canResolve).isFalse();
}
use of org.activiti.engine.impl.persistence.entity.TaskEntityImpl in project Activiti by Activiti.
the class TaskElResolverTest method canResolve_should_returnTrueWhenItsTaskEntityAndPropertyIsTask.
@Test
public void canResolve_should_returnTrueWhenItsTaskEntityAndPropertyIsTask() {
// when
boolean canResolve = resolver.canResolve(TASK_KEY, new TaskEntityImpl());
// then
assertThat(canResolve).isTrue();
}
Aggregations