mgr.delete("Key1");
assertNull(mgr.retrieve("Key1"));
}
public void testFind() throws SandeshaStorageException {
mgr.insert(new InvokerBean("Key2", 1002, "SeqId2"));
mgr.insert(new InvokerBean("Key3", 1003, "SeqId2"));
InvokerBean bean = new InvokerBean();
bean.setSequenceID("SeqId2");
Iterator iter = mgr.find(bean).iterator();
InvokerBean tmp = (InvokerBean) iter.next();
if (tmp.getMessageContextRefKey().equals("Key2")) {
tmp = (InvokerBean) iter.next();
assertTrue(tmp.getMessageContextRefKey().equals("Key3"));
} else {
tmp = (InvokerBean) iter.next();
assertTrue(tmp.getMessageContextRefKey().equals("Key2"));
}
}