assertTrue(eDWM.toString().equals(o1.toString()));
}
@Test
public void typeComparision() throws JIException {
OCVariant variant = null;
Object o = null;
/*
* OCArray vList = app.newArray(); variant = new OCVariant(vList); o =
* variant.value(); assertTrue("OCArray instance error", o instanceof
* OCArray);
*
* OCStructure structure = app.newStructure(); variant = new
* OCVariant(structure); o = variant.value(); assertTrue(o instanceof
* OCStructure);
*/
OCDocumentManager manager1 = app
.getDocumentManager("СчетНаОплатуПокупателю");
OCDocumentSelection selection1 = manager1.select();
selection1.next();
OCDocumentRef ref1 = selection1.getRef();
OCDocumentObject obj1 = ref1.getObject();
variant = new OCVariant(obj1);
o = variant.value();
assertTrue("Not " + OCDocumentObject.class.getName() + " it is "
+ o.getClass().getName(), o instanceof OCDocumentObject);
}