use of ru.ydn.wicket.wicketorientdb.model.OPropertyNamingModel in project wicket-orientdb by OrienteerBAP.
the class TestModels method testOPropertyNamingModel.
@Test
public void testOPropertyNamingModel() {
IModel<String> classNameModel = Model.of("OUser");
IModel<OClass> oClassModel = new OClassModel(classNameModel);
IModel<OProperty> propertyModel = new OPropertyModel(oClassModel, "name");
OPropertyNamingModel model = new OPropertyNamingModel(propertyModel);
assertModelObjectEquals("Name", model);
model.detach();
classNameModel.setObject("ORole");
assertModelObjectEquals("Role Name", model);
}
Aggregations