Package org.drools.guvnor.models.testscenarios.shared

Examples of org.drools.guvnor.models.testscenarios.shared.CollectionFieldData


    @Test
    public void testCollection() throws Exception {
        TypeResolver typeResolver = getTypeResolver();

        List<Field> fieldData = new ArrayList<Field>();
        CollectionFieldData collectionFieldData = new CollectionFieldData();
        collectionFieldData.setName( "cheeses" );
        fieldData.add( collectionFieldData );
        collectionFieldData.getCollectionFieldList().add( new FieldData( "cheeses", "=cheese1" ) );
        collectionFieldData.getCollectionFieldList().add( new FieldData( "cheeses", "=cheese2" ) );

        FactData cheeseryFactData = new FactData(
                "Cheesery",
                "cheesery",
                fieldData,
View Full Code Here


    @Test
    public void testCollectionSums() throws Exception {
        TypeResolver typeResolver = getTypeResolver();

        List<Field> fieldData = new ArrayList<Field>();
        CollectionFieldData collectionFieldData = new CollectionFieldData();
        collectionFieldData.setName( "list" );
        fieldData.add( collectionFieldData );
        collectionFieldData.getCollectionFieldList().add( new FieldData( "list", "=1+3" ) );

        FactData wrapperFactData = new FactData(
                "MyCollectionWrapper",
                "wrapper",
                fieldData,
View Full Code Here

TOP

Related Classes of org.drools.guvnor.models.testscenarios.shared.CollectionFieldData

Copyright © 2018 www.massapicom. 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.