/** Insert the method's description here. Creation date: (06.12.2000 21:59:14) */ public void tearDown() { try { broker.clearCache(); broker.close(); } catch (PersistenceBrokerException e) { } }
public void testConversion() { int id = (int) (System.currentTimeMillis() % Integer.MAX_VALUE); ConversionVO vo = new ConversionVO( null, new ConversionId(new Integer(id)), null, new ConversionId(new Integer(id + 1))); broker.beginTransaction(); broker.store(vo); broker.commitTransaction(); Identity identity = new Identity(vo, broker); broker.clearCache(); ConversionVO find_vo = (ConversionVO) broker.getObjectByIdentity(identity); }