Search in sources :

Example 6 with FontSize

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);
}
Also used : Description(org.kie.workbench.common.dmn.api.property.dmn.Description) FontSize(org.kie.workbench.common.dmn.api.property.styling.FontSize) QName(org.kie.workbench.common.dmn.api.property.dmn.QName) StylingSet(org.kie.workbench.common.dmn.api.property.styling.StylingSet) GeneralRectangleDimensionsSet(org.kie.workbench.common.dmn.api.property.dimensions.GeneralRectangleDimensionsSet) Question(org.kie.workbench.common.dmn.api.property.dmn.Question) Id(org.kie.workbench.common.dmn.api.property.dmn.Id) AllowedAnswers(org.kie.workbench.common.dmn.api.property.dmn.AllowedAnswers) QName(org.kie.workbench.common.dmn.api.property.dmn.QName) Name(org.kie.workbench.common.dmn.api.property.dmn.Name) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 Description (org.kie.workbench.common.dmn.api.property.dmn.Description)6 Id (org.kie.workbench.common.dmn.api.property.dmn.Id)6 FontSize (org.kie.workbench.common.dmn.api.property.styling.FontSize)6 StylingSet (org.kie.workbench.common.dmn.api.property.styling.StylingSet)6 GeneralRectangleDimensionsSet (org.kie.workbench.common.dmn.api.property.dimensions.GeneralRectangleDimensionsSet)5 Name (org.kie.workbench.common.dmn.api.property.dmn.Name)5 QName (org.kie.workbench.common.dmn.api.property.dmn.QName)4 DecisionServiceRectangleDimensionsSet (org.kie.workbench.common.dmn.api.property.dimensions.DecisionServiceRectangleDimensionsSet)1 AllowedAnswers (org.kie.workbench.common.dmn.api.property.dmn.AllowedAnswers)1 DecisionServiceDividerLineY (org.kie.workbench.common.dmn.api.property.dmn.DecisionServiceDividerLineY)1 KnowledgeSourceType (org.kie.workbench.common.dmn.api.property.dmn.KnowledgeSourceType)1 LocationURI (org.kie.workbench.common.dmn.api.property.dmn.LocationURI)1 Question (org.kie.workbench.common.dmn.api.property.dmn.Question)1 Text (org.kie.workbench.common.dmn.api.property.dmn.Text)1 TextFormat (org.kie.workbench.common.dmn.api.property.dmn.TextFormat)1