I am trying to use the PageTester functionality as described in:
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/unit-testing-pages.html
My test looks like:
@Test
public void testFrontPage() {
String appPackage = "net.mydomain.package";
String appName = "MyApp";
PageTester tester = new PageTester(appPackage, appName,
"src/main/webapp");
Document doc = tester.renderPage("Start");
assertEquals(doc.getElementById("h1").getChildMarkup(), "Start
Page");
}
I get a ClassNotFoundException saying that it couldn't obtain the
class file for net.mydomain.package.pages.Start
It is looking for the correct .class file and everything works up to
the point where it tries to call renderPage("Start"). I get the same
results when I run it under maven as I do when I run it using the
TestNG plugin under Eclipse.
Is there a step I'm missing that will allow it to find the .class
files? I am using 5.0.10.
Thanks.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]