Class ViewTemplateProviderImpl_Test
- java.lang.Object
-
- org.eclipse.emf.ecp.view.template.service.ViewTemplateProviderImpl_Test
-
public class ViewTemplateProviderImpl_Test extends java.lang.Object
Unit tests forViewTemplateProviderImpl
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description ViewTemplateProviderImpl_Test()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 ordervoid
getStyleProperties_ControlValidationConfiguration()
Test that a legacyVTControlValidationTemplate
is properly converted to a globalVTValidationStyleProperty
.void
getViewTemplate()
Test that theViewTemplateProviderImpl
returns a merged view template containing all styles and referenced ecores from all view templates provided by its suppliers.void
getViewTemplate_NoSuppliedTemplates()
void
getViewTemplate_NoSuppliers()
void
hasControlValidationTemplate_False()
void
hasControlValidationTemplate_True()
void
setUp()
Set up theViewTemplateProviderImpl
with two basic suppliers for every test.
-
-
-
Method Detail
-
setUp
public void setUp()
Set up theViewTemplateProviderImpl
with two basic suppliers for every test.
-
hasControlValidationTemplate_True
public void hasControlValidationTemplate_True()
-
hasControlValidationTemplate_False
public void hasControlValidationTemplate_False()
-
getViewTemplate
public void getViewTemplate()
Test that theViewTemplateProviderImpl
returns a merged view template containing all styles and referenced ecores from all view templates provided by its suppliers.
-
getViewTemplate_NoSuppliers
public void getViewTemplate_NoSuppliers()
-
getViewTemplate_NoSuppliedTemplates
public void getViewTemplate_NoSuppliedTemplates()
-
getStyleProperties_ControlValidationConfiguration
public void getStyleProperties_ControlValidationConfiguration()
Test that a legacyVTControlValidationTemplate
is properly converted to a globalVTValidationStyleProperty
.
-
getStyleProperties
public 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
-
-