Skip to content

Commit

Permalink
#3835 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-grofcik committed Feb 2, 2024
1 parent 1f431cc commit c14a452
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@

package org.flowable.assertions.process;

import static org.assertj.core.api.Assertions.assertThat;
import static org.flowable.assertions.process.Utils.getProcessDescription;
import static org.flowable.assertions.process.Utils.getProcessEngine;

import org.assertj.core.api.AbstractAssert;
import org.assertj.core.api.Assertions;
import org.assertj.core.api.ListAssert;
import org.flowable.engine.ProcessEngine;
import org.flowable.engine.history.HistoricActivityInstance;
Expand All @@ -24,13 +27,9 @@
import org.flowable.task.api.history.HistoricTaskInstance;
import org.flowable.variable.api.history.HistoricVariableInstance;

import static org.flowable.assertions.process.FlowableProcessAssertions.assertThat;
import static org.flowable.assertions.process.Utils.*;

/**
* @author martin.grofcik
*/

public class HistoricProcessInstanceAssert extends AbstractAssert<HistoricProcessInstanceAssert, HistoricProcessInstance> {

protected final ProcessServicesProvider processServicesProvider;
Expand Down Expand Up @@ -121,7 +120,7 @@ public HistoricProcessInstanceAssert hasVariableWithValue(String variableName, O
hasVariable(variableName);

HistoricVariableInstance actualVariable = processServicesProvider.getHistoryService().createHistoricVariableInstanceQuery().processInstanceId(actual.getId()).variableName(variableName).singleResult();
Assertions.assertThat(actualVariable.getValue()).isEqualTo(expectedValue);
assertThat(actualVariable.getValue()).isEqualTo(expectedValue);
return this;
}

Expand Down

0 comments on commit c14a452

Please sign in to comment.