use of com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean in project narayana by jbosstm.
the class ObjStoreBrowserTest method getTransactionBean.
private JTAActionBean getTransactionBean(ObjStoreBrowser osb, TransactionImple tx, boolean present) {
// there should be one MBean corresponding to the Transaction tx
UidWrapper w = osb.findUid(tx.get_uid());
if (!present) {
assertNull(w);
return null;
}
assertNotNull(w);
OSEntryBean ai = w.getMBean();
assertNotNull(ai);
// the MBean should wrap a JTAActionBean
assertTrue(ai instanceof JTAActionBean);
return (JTAActionBean) ai;
}
Aggregations