use of org.kie.dmn.model.v1_3.TImportedValues in project kie-wb-common by kiegroup.
the class BaseLiteralExpressionPropertyConverterTest method testWBFromDMN.
@Test
public void testWBFromDMN() {
final LiteralExpression dmn = new TLiteralExpression();
final QName typeRef = new QName(KIE.getUri(), LOCAL, KIE.getPrefix());
final ImportedValues importedValues = new TImportedValues();
importedValues.setImportedElement(IMPORTED_ELEMENT);
dmn.setId(UUID);
dmn.setDescription(DESCRIPTION);
dmn.setTypeRef(typeRef);
dmn.setText(TEXT);
dmn.setImportedValues(importedValues);
final T wb = convertWBFromDMN(dmn);
assertThat(wb.getId().getValue()).isEqualTo(UUID);
assertThat(wb.getDescription().getValue()).isEqualTo(DESCRIPTION);
assertThat(wb.getTypeRef().getNamespaceURI()).isEqualTo(KIE.getUri());
assertThat(wb.getTypeRef().getLocalPart()).isEqualTo(LOCAL);
assertThat(wb.getTypeRef().getPrefix()).isEqualTo(KIE.getPrefix());
assertThat(wb.getText().getValue()).isEqualTo(TEXT);
assertThat(wb.getImportedValues().getImportedElement()).isEqualTo(IMPORTED_ELEMENT);
assertThat(wb.getImportedValues().getParent()).isEqualTo(wb);
}
Aggregations