Rob Dennett tmit1.org> writes:
> Property bugService
> should be read-only; remove method public abstract void
> view.Browse.setBugService(model.services.BugService).
>
> How do you get around this?
Sorry that I've using this approach to unit test T3 pages only.
I don't know why @InjectObject
: Testing pages
Rob Dennett wrote:
> My page uses an injected service to authenticate the user. The page
> only provides a getter. Do you add service setters to all your pages
> to provide hooks just for these setup pages?
Yes.
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Mana
Dennett
Subject: Re: Testing pages
Rob Dennett wrote:
> My page uses an injected service to authenticate the user. The page
> only provides a getter. Do you add service setters to all your pages
> to provide hooks just for these setup pages?
Yes.
--
Kent Tong, Msc, MCSE, SCJP, CCS
Rob Dennett wrote:
My page uses an injected service to authenticate the user. The page
only provides a getter. Do you add service setters to all your pages
to provide hooks just for these setup pages?
Yes.
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Author
Rob Dennett wrote:
Since that is the case, how do you affect the services of a page?
For example, page 1 of my app is a login page. In order to get to
page 2, there needs to be a user in the database. I can fill in the
username and password fields on page 1 and click submit using
HtmlUnit, but
bject: Re: Testing pages
You shouldn't necessarily use HiveMind at all during unit testing. How
would you propose that HiveMind inject a mock object? Mock objects have
to be trained. You'd have to write a special ServiceImplementationFactory
to create the mock object and train it j
Rob Dennett tmit1.org> writes:
> Can you test your pages using HtmlUnit with mock services? I have a service
> that is drawing data from the database and I would like to fake that for
> testing purposes, but I can’t figure out how to do it.
The way I do it is to create an XXXTestCaller extern
HtmlUnit? Is there a way to attach it to the page
>> pool and guarantee that it is the one used?
>>
>> Thanks for your help,
>> Rob
>>
>> -Original Message-
>> From: James Carman [mailto:[EMAIL PROTECTED]
>> Sent: Friday, May 05, 2006 1:05 PM
>> To:
PROTECTED]
Sent: Friday, May 05, 2006 1:05 PM
To: 'Tapestry users'
Subject: RE: Testing pages
When you use the Creator, you pass in a Map of properties. I believe the
map keys are the property names and the values are the values that the
Creator will bind to the properties. So, you'