Wes,
Thanks for the detailed information. It certainly has helped in
understanding this new feature. Our QA Team is currently using
FitNesse (predominantly, ColumnFixtures) with Selenium (using the page
object pattern) to test some of our internal facing web applications.
After further research, I do have some additional questions that
relate to the ExampleObjectEditor example you referred to earlier
1. What is a PropertyEditorSupport class all about?
2. When would extending from the PropertyEditorSupport class be
required?
3. Once the PropertyEditorSupport class has been extended, are there
any other methods to override (i.e., beyond the setAsText method)?
3. In what sort of situations would this pattern prove useful?
Apologies for the additional questions - it's just that we don't have
a whole lot of development background over here. I guess I'm trying
to get more context around the example you provided within the
givwenzen distribution.
Regards,
Robert
On Apr 22, 6:27 pm, "Williams, Wesley" <
Wesley.Willi...@sabre.com>
wrote:
> there is a test of this functionality in the SlimExamples checked in and
> in the full zip, Here is an example given step and a link to the
> fitnesse page:
>
> given: a var arg method of !-TestObjects-! o1,o2,o3
>
> note: !- and -! are just for fitnesse not to turn a wiki word into a
> link
>
>
http://code.google.com/p/givwenzen/source/browse/trunk/FitNesseRoot/Slim
> Examples/ObjectVarArgsExample/content.txt
>
> The method for the given step 'given: a var arg method of TestObjects
> o1, o2, o3' could be handled with the method below.
>
> @DomainStep("a var arg method of TestObjects (.*)")
>
> public void objectArrayParameterMethod(ExampleObject... objects) {
>
> this.objects = objects;
>
> }
>
> instead of the ... as Szczepan noted, the parameter could be an array of
> ExampleObject as well.
>
>
http://code.google.com/p/givwenzen/source/browse/trunk/src/examples/j...
>
> This method is a bit more detailed as it does not use a string array but
> an object array so it requires a property editor for the object like the
> one here:
>
>
http://code.google.com/p/givwenzen/source/browse/trunk/src/examples/j...
>
> hope this helps.
>
> -wes
>
> From:
givwenz...@googlegroups.com
> [mailto:
givwenz...@googlegroups.com] On Behalf Of szczepiq
> Sent: Friday, April 23, 2010 03:09
> To:
givwenz...@googlegroups.com
> Subject: Re: [givwenzen_user] Support for varargs in beta10
>
> Additional dots are ordinary java 1.5> varargs. This should work as
> well:
>
> @DomainStep("a route through points: (.*)")
> public void foo(String[] points) {
>
> ...because varargs are implemented via arrays.
>
> Hope that helps,
> Cheers
> Szczepan
>