[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: Templated Components do not render in BaseComponentTestCase
From:       "Kevin C. Dorff" <kcd2001 () med ! cornell ! edu>
Date:       2006-04-28 14:22:05
Message-ID: c1fc3efc0604280722x3f64bbfaica00afbf4148f2ff () mail ! gmail ! com
[Download RAW message or body]

Nobody is trying to test their templated components? No thoughts on this?

Kevin

On 4/24/06, Kevin C. Dorff <kcd2001@med.cornell.edu> wrote:
> I am trying to test my components which use templates
> (.html/.jwc/.java files) using BaseComponentTestCase. I am creating
> the controls using the standard "newInstance" method, which looks like
> it is doing the correct thing, but, when I call
>
>    insert.render(writer, cycle);
>
> and trace through the execution nothing ever renders. Within the medhod
>
>   BaseComponent.renderComponent(writer,cycle)
>
> the _outerCount is 0, so the line  _outer[i].render(writer,cycle)
> is never executed.
>
> Is there method other than "newInstance" I should be using to create
> the instance of the component that use templates? Has anyone ever used
> templated components using BaseComponentTestCase, or, for that manner
> done this kind of testing in ANY way using templated components? Is
> the only option to use HtmlUnit? I would really like more standard
> unit tests that don't require a running server (which it seems
> HtmlUnit will).
>
> Thanks,
> Kevin
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic