executes a component test passing in a custom parameter. it also executes calling a custom template using an
absolute reference.
TestAction testAction = (TestAction) action;
testAction.setFoo("bar");
ComponentTag tag = new ComponentTag();
tag.setPageContext(pageContext);
tag.setLabel("mylabel");
tag.setName("myname");
tag.setValue("foo");
tag.setTheme("test");
tag.setTemplate("Component");
tag.doStartTag();
tag.getComponent().addParameter("hello", "world");
tag.getComponent().addParameter("argle", "bargle");
tag.getComponent().addParameter("glip", "glop");
tag.getComponent().addParameter("array", new String[]{"a", "b", "c"});
tag.getComponent().addParameter("obj", tag);
tag.doEndTag();
// System.out.println(writer);
verify(ComponentTag.class.getResource("Component-param.txt"));