use of org.kie.workbench.common.dmn.api.property.styling.FontSize in project kie-wb-common by kiegroup.
the class DecisionTest method testDifferentStylingSet.
@Test
public void testDifferentStylingSet() {
final Decision modelOne = new Decision(new Id("123"), new Description(), new Name(), new Question(), new AllowedAnswers(), new InformationItemPrimary(new Id("346"), new Name(), new QName()), new FunctionDefinition(new Id("789"), new Description(), new QName(), null), new StylingSet(), new GeneralRectangleDimensionsSet());
final Decision modelTwo = new Decision(new Id("123"), new Description(), new Name(), new Question(), new AllowedAnswers(), new InformationItemPrimary(new Id("346"), new Name(), new QName()), new FunctionDefinition(new Id("789"), new Description(), new QName(), null), new StylingSet(), new GeneralRectangleDimensionsSet());
assertEquals(modelOne, modelTwo);
modelOne.getStylingSet().setFontSize(new FontSize(10.0));
modelTwo.getStylingSet().setFontSize(new FontSize(11.0));
assertNotEquals(modelOne, modelTwo);
}
Aggregations