* Convenience method for creating a ping target.
*/
public static PingTargetData setupPingTarget(String name, String url)
throws Exception {
PingTargetData testPing = new PingTargetData();
testPing.setName("testCommonPing");
testPing.setPingUrl("http://localhost/testCommonPing");
// store ping
PingTargetManager pingMgr = RollerFactory.getRoller().getPingTargetManager();
pingMgr.savePingTarget(testPing);
// query for it
PingTargetData ping = pingMgr.getPingTarget(testPing.getId());
if(ping == null)
throw new RollerException("error setting up ping target");
return ping;