public void test_Rewind_Missing_Converter()
{
IRequestCycle cycle = newMock(IRequestCycle.class);
IMarkupWriter writer = newWriter();
ValueConverter conv = newMock(ValueConverter.class);
ResponseBuilder resp = newMock(ResponseBuilder.class);
IForm form = newMock(IForm.class);
IComponentSpecification spec = newSpec();
// IParameterSpecification pspec = newMock(IParameterSpecification.class);
List src = new ArrayList();
src.add("Test1");
src.add("Test2");
IBinding source = newBinding(src);
ForBean bean = newInstance(ForBean.class, new Object[] {
"valueConverter", conv,
"responseBuilder", resp,
"templateTagName", "div",
"renderTag", true,
"specification", spec
});
expect(cycle.renderStackPush(bean)).andReturn(bean);
expect(cycle.isRewinding()).andReturn(true).anyTimes();
expect(cycle.getAttribute(TapestryUtils.FORM_ATTRIBUTE)).andReturn(form);
expect(form.isRewinding()).andReturn(true);
expect(form.getElementId(bean)).andReturn("foo");
String[] parms = (String[])src.toArray((new String[src.size()]));
expect(cycle.getParameters("foo")).andReturn(parms);
expect(conv.coerceValue(src, Iterator.class)).andReturn(src.iterator());
expect(resp.isDynamic()).andReturn(false).anyTimes();
expect(cycle.renderStackPop()).andReturn(bean);