use of org.kie.workbench.common.dmn.api.definition.v1_1.Relation in project kie-wb-common by kiegroup.
the class AddRelationRowCommandTest method setup.
@Before
public void setup() {
this.relation = new Relation();
this.row = new List();
this.uiModelRow = new DMNGridRow();
this.uiModel = new BaseGridData();
this.uiModel.appendColumn(uiRowNumberColumn);
this.uiModelMapper = new RelationUIModelMapper(() -> uiModel, () -> Optional.of(relation), listSelector);
makeCommand(0);
doReturn(ruleManager).when(handler).getRuleManager();
doReturn(0).when(uiRowNumberColumn).getIndex();
doReturn(1).when(uiModelColumn).getIndex();
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.Relation in project kie-wb-common by kiegroup.
the class DeleteRelationRowCommandTest method setup.
@Before
public void setup() {
this.relation = new Relation();
this.relation.getRow().add(new List());
this.uiModel = new BaseGridData();
this.uiModel.appendRow(new DMNGridRow());
this.uiModel.appendColumn(uiRowNumberColumn);
this.uiModelMapper = new RelationUIModelMapper(() -> uiModel, () -> Optional.of(relation), listSelector);
makeCommand(0);
doReturn(ruleManager).when(handler).getRuleManager();
doReturn(0).when(uiRowNumberColumn).getIndex();
doReturn(1).when(uiModelColumn).getIndex();
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.Relation in project kie-wb-common by kiegroup.
the class MoveColumnsCommandTest method setup.
@Before
public void setup() {
this.relation = new Relation();
this.uiModel = new DMNGridData();
doReturn(ruleManager).when(handler).getRuleManager();
doReturn(0).when(uiRowNumberColumn).getIndex();
doReturn(1).when(uiModelColumn1).getIndex();
doReturn(2).when(uiModelColumn2).getIndex();
addRelationColumn(II1);
addRelationColumn(II2);
addRelationRow(II1);
addRelationRow(II2);
addUiModelColumn(uiRowNumberColumn);
addUiModelColumn(uiModelColumn1);
addUiModelColumn(uiModelColumn2);
addUiModelRow(0);
addUiModelRow(1);
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.Relation in project kie-wb-common by kiegroup.
the class MoveRowsCommandTest method setup.
@Before
public void setup() {
this.relation = new Relation();
this.uiModel = new DMNGridData();
doReturn(ruleManager).when(handler).getRuleManager();
doReturn(0).when(uiRowNumberColumn).getIndex();
doReturn(1).when(uiModelColumn1).getIndex();
addRelationColumn(II1);
addRelationColumn(II2);
addRelationRow(II1);
addRelationRow(II2);
addUiModelColumn(uiRowNumberColumn);
addUiModelColumn(uiModelColumn1);
addUiModelRow(0);
addUiModelRow(1);
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.Relation in project webcert by sklintyg.
the class IntygRelationHelperImplTest method buildRelation.
private Relation buildRelation(String fromIntygId, String toIntygId) {
Relation r = new Relation();
IntygId from = new IntygId();
from.setExtension(fromIntygId);
IntygId to = new IntygId();
to.setExtension(toIntygId);
r.setFranIntygsId(from);
r.setTillIntygsId(to);
TypAvRelation typ = new TypAvRelation();
typ.setCode(RelationKod.ERSATT.value());
r.setTyp(typ);
r.setSkapad(LocalDateTime.now());
return r;
}
Aggregations