Search in sources :

Example 1 with OClassNamingModel

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);
}
Also used : OClassNamingModel(ru.ydn.wicket.wicketorientdb.model.OClassNamingModel) OClassModel(ru.ydn.wicket.wicketorientdb.model.OClassModel) OClass(com.orientechnologies.orient.core.metadata.schema.OClass) Test(org.junit.Test)

Aggregations

OClass (com.orientechnologies.orient.core.metadata.schema.OClass)1 Test (org.junit.Test)1 OClassModel (ru.ydn.wicket.wicketorientdb.model.OClassModel)1 OClassNamingModel (ru.ydn.wicket.wicketorientdb.model.OClassNamingModel)1