Hi Mats, Sorry for the delay replying - I've been on holiday. Did you get this resolved?
I think you'd get this kind of error if you put your tests inside one of Tapestry's controlled packages (e.g. the pages or components packages). Or make your pages subclasses of the test classes. However, if that comment doesn't help let me know and I'll put some more thought into it :-) Paul Mats Henricson <m...@henricson.se> wrote on 21/10/2009 12:19:30: > I'm trying to create a simple smoke test of all pages, like this: > > @Test > public void testRenderPages() { > Collection<String> pages = > classNameLocator.locateClassNames(PAGES_PACKAGE); > > tellMockitoHowToMock(); > > for (String page : pages) { > String pagePath = getPagePath(page); > Document p = tester.renderPage(pagePath); > > // Assert p doesn't contain "Application Exception" > } > } > > The getPagePath() function converts from "com.x.pages.y.Foo" to > "y/Foo". > > But I get this exception: > > Caused by: java.lang.RuntimeException: > Base class com.formos.tapestry.testify.junit4.TapestryTest > (super class of com.x.base.TestifyTest) is not in a > controlled package and is therefore not valid. > You should try moving the class to package com.x.base. > > But that is slightly hard to achieve, of course. > > Anyone has an idea how to solve this problem? > > Mats --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.