Package modTransf.model

Examples of modTransf.model.ModelHelper.createInstance()


    String value = new String("aValue");

    // Create a modelHelper, register it in a Transformation and in the context.
    ModelHelper model = setUpJavaModel("java");
    // Create an object from the model.
    MockBean parent = (MockBean)model.createInstance( MockBean.class.getName());
    parent.setName(value);

    // Try to get the value
    Object res = property.getPropertyValue( parent, context);
    assertEquals( "property value", value, res );
View Full Code Here

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.