assertEquals("xmbeans", pm.getTable());
}
private XMBeanMetaData createXMBeanMetaData()
{
XMBeanMetaData xmbean = new XMBeanMetaData();
xmbean.setDescription("The JBoss XMBean version of the monitor server");
xmbean.setMbeanClass("monitor.MonitorPOJO");
XMBeanConstructorMetaData constructor = new XMBeanConstructorMetaData();
constructor.setDescription("The no-arg constructor");
constructor.setName("monitor.MonitorPOJO");
xmbean.addConstructor(constructor);
XMBeanAttributeMetaData attribute = new XMBeanAttributeMetaData();
attribute.setAccess("read-write");
attribute.setGetMethod("getInterval");
attribute.setSetMethod("setInterval");
attribute.setDescription("The interval in milliseconds between checks of VM memory and threads");
attribute.setName("Interval");
attribute.setType("int");
xmbean.addAttribute(attribute);
XMBeanOperationMetaData operation = new XMBeanOperationMetaData();
operation.setDescription("Access the last HistoryLength monitor reports");
operation.setName("history");
operation.setReturnType("java.lang.String");
xmbean.addOperation(operation);
XMBeanNotificationMetaData notification = new XMBeanNotificationMetaData();
notification.setDescription("A notification sent when the monitor interval expires");
notification.setName("javax.management.Notification");
notification.setNotificationType("monitor.IntervalElapsed");
xmbean.addNotification(notification);
JDBCPm pm = new JDBCPm();
pm.setDatasource("java:/DefaultDS");
pm.setTable("xmbeans");
xmbean.setPersistenceManager(pm);
return xmbean;
}