You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Roy van Rijn (JIRA)" <ji...@apache.org> on 2007/08/16 10:59:30 UTC

[jira] Resolved: (WICKET-848) WicketTester.startPage(Page) doesn't validate the HTML

     [ https://issues.apache.org/jira/browse/WICKET-848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy van Rijn resolved WICKET-848.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-beta3

This bug is already fixed in 1.3. So for me its no longer a issue, I'll resolve it.

> WicketTester.startPage(Page) doesn't validate the HTML
> ------------------------------------------------------
>
>                 Key: WICKET-848
>                 URL: https://issues.apache.org/jira/browse/WICKET-848
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.6
>            Reporter: Roy van Rijn
>            Priority: Minor
>             Fix For: 1.3.0-beta3
>
>
> I found something strange in this simple test I wrote. When experementing with the method of calling the wicketTester.startPage (with class of pageobject) I found that outcomes may vary. The Testpage_2.java only has a simple label BUT the Testpage_2.html has a deliberate HTML error.
> public class WicketTesterHTMLFailureTest extends TestCase {
> 	public void test() throws ServletException {
> 		WicketTester wicketTester = new WicketTester();
> 		//When you call the test with *.class it generates a MarkupException
> 		//wicketTester.startPage(TestPage_2.class);
> 		//When this is called the whole test is ok, it doesn't find the HTML error (!!)
> 		wicketTester.startPage(new TestPage_2());
> 		wicketTester.assertRenderedPage(TestPage_2.class);
> 	}
> }
> This is very strange, and probably a bug. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.