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