wicket tester / tester.assertResultPage(clazz, filename);

2007-09-06 Thread Nino Saturnino Martinez Vazquez Wael

Hi

Im trying to create a test that renders a page and then compares it to 
the expected result. Currently I keep getting diff errors although I 
just copied the contents of the html file from the tester.dumpPage() and 
placed it in the expected result file. I guess its just a matter of 
spaces thats wrong, but not matter how I change them they dont seem to 
add up apparently.


As it can be somewhat a task guessing how the contents of a wicket page 
might look, I thought this was the most simple approach to doing this 
but I might be wrong?


regards Nino

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket tester / tester.assertResultPage(clazz, filename);

2007-09-06 Thread Nino Saturnino Martinez Vazquez Wael

I should also mentioned that Im testing by doing this:

WicketTester.assertResultPage(this.getClass(), filename);

Nino Saturnino Martinez Vazquez Wael wrote:

Hi

Im trying to create a test that renders a page and then compares it to 
the expected result. Currently I keep getting diff errors although I 
just copied the contents of the html file from the tester.dumpPage() 
and placed it in the expected result file. I guess its just a matter 
of spaces thats wrong, but not matter how I change them they dont seem 
to add up apparently.


As it can be somewhat a task guessing how the contents of a wicket 
page might look, I thought this was the most simple approach to doing 
this but I might be wrong?


regards Nino

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket tester / tester.assertResultPage(clazz, filename);

2007-09-06 Thread Nino Saturnino Martinez Vazquez Wael

Fidling around with the spaces, I've now boiled it down to this error only:

ERROR - DiffUtil   - ===

It's not that descriptive though:( Cant really see whats wrong..

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:

I should also mentioned that Im testing by doing this:

WicketTester.assertResultPage(this.getClass(), filename);

Nino Saturnino Martinez Vazquez Wael wrote:

Hi

Im trying to create a test that renders a page and then compares it 
to the expected result. Currently I keep getting diff errors although 
I just copied the contents of the html file from the 
tester.dumpPage() and placed it in the expected result file. I guess 
its just a matter of spaces thats wrong, but not matter how I change 
them they dont seem to add up apparently.


As it can be somewhat a task guessing how the contents of a wicket 
page might look, I thought this was the most simple approach to doing 
this but I might be wrong?


regards Nino

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket tester / tester.assertResultPage(clazz, filename);

2007-09-06 Thread Nino Saturnino Martinez Vazquez Wael

looking at the sourcefile I saw this option:

-Dwicket.replace.expected.results=true

could this be what I was looking for to genereate the expected results? 
I think so:)


regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:
Fidling around with the spaces, I've now boiled it down to this error 
only:


ERROR - DiffUtil   - ===

It's not that descriptive though:( Cant really see whats wrong..

regards Nino

Nino Saturnino Martinez Vazquez Wael wrote:

I should also mentioned that Im testing by doing this:

WicketTester.assertResultPage(this.getClass(), filename);

Nino Saturnino Martinez Vazquez Wael wrote:

Hi

Im trying to create a test that renders a page and then compares it 
to the expected result. Currently I keep getting diff errors 
although I just copied the contents of the html file from the 
tester.dumpPage() and placed it in the expected result file. I guess 
its just a matter of spaces thats wrong, but not matter how I change 
them they dont seem to add up apparently.


As it can be somewhat a task guessing how the contents of a wicket 
page might look, I thought this was the most simple approach to 
doing this but I might be wrong?


regards Nino

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]