public class ViewTemplateProviderImpl_Test extends Object
ViewTemplateProviderImpl
.Constructor and Description |
---|
ViewTemplateProviderImpl_Test() |
Modifier and Type | Method and Description |
---|---|
void |
getStyleProperties_ControlValidationConfiguration()
Test that a legacy
VTControlValidationTemplate is properly converted to a global
VTValidationStyleProperty . |
void |
getStyleProperties()
Tests various aspects of the getStyleProperties method:
Style Properties from all Suppliers are collected
For two applicable, equal styles with different specificities, the highest specificity is
used
For two applicable, unequal styles of the same type with equal specificities, a warning is
logged because there is no specified behaviour which one of the styles is ranked higher.
The result set is ordered by specificity in descending order
|
void |
getViewTemplate_NoSuppliedTemplates() |
void |
getViewTemplate_NoSuppliers() |
void |
getViewTemplate()
Test that the
ViewTemplateProviderImpl returns a merged view template containing all styles and
referenced ecores from all view templates provided by its suppliers. |
void |
hasControlValidationTemplate_False() |
void |
hasControlValidationTemplate_True() |
void |
setUp()
Set up the
ViewTemplateProviderImpl with two basic suppliers for every test. |
public void setUp()
ViewTemplateProviderImpl
with two basic suppliers for every test.public void hasControlValidationTemplate_True()
public void hasControlValidationTemplate_False()
public void getViewTemplate()
ViewTemplateProviderImpl
returns a merged view template containing all styles and
referenced ecores from all view templates provided by its suppliers.public void getViewTemplate_NoSuppliers()
public void getViewTemplate_NoSuppliedTemplates()
public void getStyleProperties_ControlValidationConfiguration()
VTControlValidationTemplate
is properly converted to a global
VTValidationStyleProperty
.public void getStyleProperties()
Copyright © 2019. All rights reserved.