use of ru.ydn.wicket.wicketorientdb.utils.DocumentWrapperTransformer in project wicket-orientdb by OrienteerBAP.
the class MainUtilsTest method testDocumentWrapper.
@Test
public void testDocumentWrapper() throws Exception {
// Admin ORID
ORID orid = new ORecordId("#5:0");
ODocument adminDocument = orid.getRecord();
OUser admin = wicket.getTester().getMetadata().getSecurity().getUser("admin");
DocumentWrapperTransformer<OUser> transformer = new DocumentWrapperTransformer<OUser>(OUser.class);
assertEquals(admin, transformer.apply(adminDocument));
}
Aggregations