use of org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem in project kie-wb-common by kiegroup.
the class RelationUIModelMapperHelperTest method testGetSectionInformationItemColumnIndexEqualToColumnCount.
@Test(expected = IllegalArgumentException.class)
public void testGetSectionInformationItemColumnIndexEqualToColumnCount() {
relation.getColumn().add(new InformationItem());
assertEquals(RelationSection.INFORMATION_ITEM, getInformationItemIndex(relation, relation.getColumn().size() + 1));
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem in project kie-wb-common by kiegroup.
the class RelationUIModelMapperHelperTest method testGetSectionInformationItemColumnNegativeIndex.
@Test(expected = IllegalArgumentException.class)
public void testGetSectionInformationItemColumnNegativeIndex() {
relation.getColumn().add(new InformationItem());
assertEquals(RelationSection.INFORMATION_ITEM, getInformationItemIndex(relation, -1));
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem in project kie-wb-common by kiegroup.
the class RelationUIModelMapperHelperTest method testGetSectionNonExistingIndexEqualToColumnCount.
@Test
public void testGetSectionNonExistingIndexEqualToColumnCount() {
relation.getColumn().add(new InformationItem());
assertEquals(RelationSection.NONE, getSection(relation, relation.getColumn().size() + 1));
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem in project kie-wb-common by kiegroup.
the class RelationUIModelMapperHelperTest method testGetSectionInformationItemColumn.
@Test
public void testGetSectionInformationItemColumn() {
relation.getColumn().add(new InformationItem());
assertEquals(RelationSection.INFORMATION_ITEM, getSection(relation, 1));
}
use of org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem in project kie-wb-common by kiegroup.
the class RelationUIModelMapperHelperTest method testGetSectionNonExistingNegativeIndex.
@Test
public void testGetSectionNonExistingNegativeIndex() {
relation.getColumn().add(new InformationItem());
assertEquals(RelationSection.NONE, getSection(relation, -1));
}
Aggregations