});
}
private static void check(Portlet portlet)
{
UTP1 p = (UTP1)portlet;
//correct
PortletRequestDispatcher dispatcher = p.getPortletContext().getNamedDispatcher("UniversalServletA");
assertNotNull(dispatcher);
//incorrect
dispatcher = p.getPortletContext().getNamedDispatcher("FAKE_NAME_SERVLET");
assertNull(dispatcher);
//incorrect
dispatcher = p.getPortletContext().getNamedDispatcher("/");
assertNull(dispatcher);
//incorrect
dispatcher = p.getPortletContext().getNamedDispatcher("/universalServletA");
assertNull(dispatcher);
//incorrect
dispatcher = p.getPortletContext().getRequestDispatcher("UniversalServletA");
assertNull(dispatcher);
//incorrect
dispatcher = p.getPortletContext().getRequestDispatcher("universalServletA");
assertNull(dispatcher);
//incorrect
//dispatcher = getPortletContext().getRequestDispatcher("/UniversalServletA");
//assertNull(dispatcher);
//incorrect
//dispatcher = getPortletContext().getRequestDispatcher("/");
//assertNull(dispatcher);
//correct
dispatcher = p.getPortletContext().getRequestDispatcher("/universalServletA");
assertNotNull(dispatcher);
}