Package com.salas.bb.views.querybuilder.editors

Source Code of com.salas.bb.views.querybuilder.editors.TestCompositePropertyVEScenarios

package com.salas.bb.views.querybuilder.editors;

import junit.framework.TestCase;
import com.salas.bb.domain.query.PropertyType;
import com.salas.bb.domain.query.ICriteria;
import com.salas.bb.domain.query.articles.Query;
import com.jgoodies.binding.beans.PropertyAdapter;

/**
* This suite contains scenarios for composite editor.
*/
public class TestCompositePropertyVEScenarios extends TestCase
{
    public void testIntializing()
    {
        ICriteria criteria = new Query().addCriteria();
        PropertyAdapter model = new PropertyAdapter(criteria, ICriteria.PROP_VALUE, true);
        CompositePropertyVE compositeEditor = new CompositePropertyVE(model);

        // When type of the property becomes obvious we are setting type to editor
        compositeEditor.setType(PropertyType.STATUS);
    }
}
TOP

Related Classes of com.salas.bb.views.querybuilder.editors.TestCompositePropertyVEScenarios

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.