Esempio n. 1
0
 protected String getObjectUrlPart(Object object) {
   final Identifiable identifiable = (Identifiable) object;
   final ModelObject<?> valueModelObject = ModelResolver.getInstance().getModelObject(object);
   return ModelUtils.getQualifiedNameFromEClass(valueModelObject.eClass())
       + "/"
       + identifiable.getDb_Id(); // $NON-NLS-1$
 }
Esempio n. 2
0
 protected void getValidateOneObject(Object object) {
   final Identifiable identifiable = (Identifiable) object;
   final String content = getOneObject(object);
   final List<Object> result = deserialize(content);
   Assert.assertEquals(1, result.size());
   final Identifiable identifiable2 = (Identifiable) result.get(0);
   Assert.assertNotSame(identifiable, identifiable2);
   Assert.assertEquals(identifiable.getDb_Id(), identifiable2.getDb_Id());
   Assert.assertSame(identifiable.getClass(), identifiable2.getClass());
 }