use of com.servoy.j2db.server.ngclient.property.types.NGCustomJSONObjectType in project servoy-client by Servoy.
the class RhinoMapWrapperTest method setUp.
@Before
public void setUp() {
Context cx = Context.enter();
TopLevel toplevelScope = new ImporterTopLevel(cx);
PropertyDescription pd = new PropertyDescriptionBuilder().withName("myCustomObjectProp").withType(new NGCustomJSONObjectType("myCustomObjectType", null)).build();
PropertyDescription copd = new PropertyDescriptionBuilder().withName("myCustomObjectType").withType(pd.getType()).withProperty("someInt", new PropertyDescriptionBuilder().withName("someInt").withType(IntPropertyType.INSTANCE).build()).build();
((NGCustomJSONObjectType) pd.getType()).setCustomJSONDefinition(copd);
wrappedMapValue = new HashMap<String, Object>();
wrappedMapValue.put("someInt", 111);
w = new RhinoMapOrArrayWrapper(wrappedMapValue, null, pd, toplevelScope);
Context.exit();
}
Aggregations