Class ViewTemplateProviderImpl_Test


  • public class ViewTemplateProviderImpl_Test
    extends java.lang.Object
    Unit tests for ViewTemplateProviderImpl.
    Author:
    Lucas Koehler
    • Constructor Detail

      • ViewTemplateProviderImpl_Test

        public ViewTemplateProviderImpl_Test()
    • Method Detail

      • hasControlValidationTemplate_True

        public void hasControlValidationTemplate_True()
      • hasControlValidationTemplate_False

        public void hasControlValidationTemplate_False()
      • getViewTemplate

        public 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.
      • getViewTemplate_NoSuppliers

        public void getViewTemplate_NoSuppliers()
      • getViewTemplate_NoSuppliedTemplates

        public void getViewTemplate_NoSuppliedTemplates()
      • 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