use of org.drools.testcoverage.common.model.ListHolder in project drools by kiegroup.
the class MultipleSalienceUpdateFactTest method test.
@Test
public void test() {
session.setGlobal("LOGGER", LOGGER);
List<Command<?>> commands = new ArrayList<Command<?>>();
Person person = new Person("PAUL");
ListHolder listHolder = new ListHolder();
List<String> list = Arrays.asList("eins", "zwei", "drei");
listHolder.setList(list);
commands.add(getCommands().newInsert(person));
commands.add(getCommands().newInsert(listHolder));
commands.add(getCommands().newFireAllRules());
session.execute(getCommands().newBatchExecution(commands, null));
Assertions.assertThat(firedRules.isRuleFired("PERSON_PAUL")).isTrue();
Assertions.assertThat(firedRules.isRuleFired("PERSON_PETER")).isTrue();
}
Aggregations