DDMFormRendererTag extends BaseDDMFormRendererTag { protected String getRedirectURL() { DDMFormInstance ddmFormInstance = getDDMFormInstance(); if (ddmFormInstance == null) { return StringPool.BLANK; } try { DDMFormInstanceSettings ddmFormInstanceSettings = ddmFormInstance.getSettingsModel(); return ddmFormInstanceSettings.redirectURL(); } catch (PortalException portalException) { if (_log.isDebugEnabled()) { _log.debug(portalException, portalException); } } return StringPool.BLANK; }  @Override int doStartTag();  }
@Test public void testGetRedirectURLWhenFormInstanceIsNull() { setDDMFormRendererTagInputs(null, null, null, null); Assert.assertEquals( StringPool.BLANK, _ddmFormRendererTag.getRedirectURL()); }