ResourceTagHandler extends BodyTagSupport implements DynamicAttributes { protected ITagModel getModel() { ensureTag(); return m_tag.getModel(); }  @Override int doAfterBody(); @Override int doEndTag(); @Override int doStartTag(); void setDynamicAttribute(String uri, String localName, Object value); void setValue(Object value); void setSecure(Boolean secure);  }
@Test public void testAjaxTokenTagHandler() { TokenTagHandler tokenTagHandler = new TokenTagHandler(); String expectedType = "js"; ITagModel model = tokenTagHandler.getModel(); tokenTagHandler.setType(expectedType); String actualType = model.getAttributes().get("type").toString(); Assert.assertEquals(expectedType, actualType); }
@Test public void testBundleTagHandler() { BundleTagHandler bundleTagHandler = new BundleTagHandler(); String expectedId = "testBundle"; ITagModel model = bundleTagHandler.getModel(); bundleTagHandler.setId(expectedId); String actualId = model.getAttributes().get("id").toString(); Assert.assertEquals(expectedId, actualId); }
@Test public void testBeanTagHandler() { BeanTagHandler beanTagHandler = new BeanTagHandler(); String expectedId = "testBundle"; ITagModel model = beanTagHandler.getModel(); beanTagHandler.setId(expectedId); String actualId = model.getAttributes().get("id").toString(); Assert.assertEquals(expectedId, actualId); }