It turned out that changing:
String appName = "MyApp";

to

String appName = "App";

got rid of this error. I think that Tapestry is appending Module (so it becomes AppModule) to figure out what class to launch the ioc from. Since my application (created from the mvn quickstart) uses AppModule instead of MyAppModule this change seems to have fixed the problem.


Mark





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]





--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
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]

Reply via email to