Hi,
  I'm writing tests using WicketTester (with Wicket 1.2.5); a sample test is:

        public void testPageShouldHaveRequiredComponents() {
                WicketTester wt = new WicketTester();
                wt.startPage(new 
SummaryPage(JobPostCreatorHelper.createJobPost()));
                
                wt.assertLabel("company.name", 
JobPostCreatorHelper.COMPANY_NAME);
                wt.assertLabel("company.description",
JobPostCreatorHelper.COMPANY_DESCRIPTION);
        }

The test runs fine, but the logs are filled with exceptions like:

ERROR - RequestCycle               - The component(s) below failed to
render. A common problem is that you have added a component in code
but forgot to reference it in the markup (thus the component will
never be rendered).

1. [MarkupContainer [Component id = _<body>, page =
board.pages.SummaryPage, path = 0:_<body>.HtmlBodyContainer, isVisible
= true, isVersioned = true]]
2. [Component id = company.name, page =board.pages.SummaryPage, path =
0:company.name.Label, isVisible = true, isVersioned = true]

All the components are logged as 'not rendered', but all tests are
passed and the application works.
Is this the normal behaviour of tests?

-- 
Filippo Diotalevi
http://www.diotalevi.com
http://www.jugmilano.it

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to