/*
 * Copyright (c) 2008-2014 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.cuba.gui.components;

import com.haulmont.cuba.client.testsupport.CubaClientTestCase;
import com.haulmont.cuba.gui.xml.layout.ComponentsFactory;
import org.junit.Before;

/**
 * @author artamonov
 * @version $Id$
 */
public abstract class AbstractComponentTest extends CubaClientTestCase {
    protected ComponentsFactory factory;

    @Before
    public void setUp() throws Exception {
        addEntityPackage("com.haulmont.cuba");
        setupInfrastructure();

        initExpectations();

        messages.init();
    }

    protected void initExpectations() {
    }
}
@@ -293,40 +293,301 @@
 uba.
-gui.xml.layout.ComponentsFactory
+core.app.dynamicattributes.DynamicAttributesUtils;%0D%0Aimport com.haulmont.cuba.core.global.AppBeans;%0D%0Aimport com.haulmont.cuba.gui.dynamicattributes.DynamicAttributesGuiTools;%0D%0Aimport com.haulmont.cuba.gui.xml.layout.ComponentsFactory;%0D%0Aimport mockit.Mocked;%0D%0Aimport mockit.NonStrictExpectations
 ;%0D%0Ai
@@ -777,24 +777,113 @@
 factory;%0D%0A%0D%0A
+    protected DynamicAttributesGuiTools daGuiTools = new DynamicAttributesGuiTools();%0D%0A%0D%0A
     @Before%0D
@@ -1071,24 +1071,24 @@
 ;%0D%0A    %7D%0D%0A%0D%0A
-
     protecte
@@ -1112,20 +1112,387 @@
 ations() %7B%0D%0A
+        new NonStrictExpectations() %7B%0D%0A            %7B%0D%0A                AppBeans.get(DynamicAttributesGuiTools.NAME); result = daGuiTools;%0D%0A                AppBeans.get(DynamicAttributesGuiTools.class); result = daGuiTools;%0D%0A                AppBeans.get(DynamicAttributesGuiTools.NAME, DynamicAttributesGuiTools.class); result = daGuiTools;%0D%0A            %7D%0D%0A        %7D;%0D%0A
     %7D%0D%0A%7D

Fix ui components tests #PL-1202