Hi Peter,

> This is the cause:
> java.lang.ClassNotFoundException: org.apache.tapestry5.test.
> TapestryTestConstants
>
> What is TapestryTestConstants its not packaged with the jars? so I 
> don't see how this can possibly work.

TapestryTestConstants is an object from org.apache.tapestry5.test:
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/test/TapestryTestConstants.html

So, you need to add a dependency on the tapestry-test module  (and I need 
to check what's going on in the Testify POM because you should've got that 
automatically... ).

This is the Maven dependency I suggest, as you probably don't want the 
Selenium dependencies:

<dependency>
        <groupId>org.apache.tapestry</groupId>
        <artifactId>tapestry-test</artifactId>
        <version>${tapestry.version}</version>
        <scope>test</scope>
        <exclusions>
                <exclusion>
                        <groupId>org.openqa.selenium.client-drivers</
groupId>
                        <artifactId>selenium-java-client-driver</
artifactId>
                </exclusion>
                <exclusion>
                        <groupId>org.openqa.selenium.server</groupId>
                        <artifactId>selenium-server</artifactId>
                </exclusion>
                <exclusion>
                        <groupId>org.openqa.selenium.server</groupId>
                        <artifactId>selenium-server-coreless</artifactId>
                </exclusion>
        </exclusions>
</dependency>

FYI, I'm not convinced that you should have to have this dependency at 
all. See:
https://issues.apache.org/jira/browse/TAP5-758

Paul
------------------
Paul Field
Research IT
Deutsche Bank

> 
> Kind regards,
> Peter
> 
> ----- Original Message -----
> From: "P Stavrinides" <p.stavrini...@albourne.com>
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Thursday, 25 June, 2009 10:38:32 GMT +02:00 Athens, Beirut, 
> Bucharest, Istanbul
> Subject: Re: [Announce] Tapestry Testify project
> 
> Hi Paul,
> 
> Thanks for following up on this!
> 
> > Next, I think my documentation is misleading you... try:
> > private static final TapestryTester SHARED_TESTER = new 
> > TapestryTester("demo");
> Tried this with no luck
> 
> > The documentation's example with "MyCoreModule.class" is meant to show 
you 
> > how to include your own "core" IOC module 
> Right, and this is what I am doing, but with or without the IoC 
> module I can't get it running, it fails inside TapestryTester?
> 
> >First thing, the Testify sources are published to the Maven repository
> FYI I am using maven, Hmmm... I see now that there are sources in 
> the repo, sorry my bad! I don't know why the sources are not being 
> pulled on my side, I do use a nexus repository locally so there must
> be something going wrong there. I will try to get at the sources to 
> figure out what is happening, I will let you know. Just curious if 
> anyone has testify working with JUnit 4? 
> 
> Thanks
> Peter
> 
> ----- Original Message -----
> From: "Paul Field" <paul.fi...@db.com>
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Wednesday, 24 June, 2009 18:44:30 GMT +02:00 Athens, Beirut, 
> Bucharest, Istanbul
> Subject: Re: [Announce] Tapestry Testify project
> 
> p.stavrini...@albourne.com wrote on 24/06/2009 15:35:00:
> 
> > I seem to be too stupid to get testify working with JUnit 4, I can't
> > get even past the gate:
> 
> I prefer to see it as a failure of my documentation :-)
> 
> First thing, the Testify sources are published to the Maven repository, 
so 
> you can pick them up manually from:
> http://tapestry.formos.com/maven-snapshot-
> repository/com/formos/tapestry/tapestry-testify/1.0.0-SNAPSHOT/
> 
> Or just ask Maven to download them for you: 
> mvn [goal] -DdownloadSources=true 
> 
> (The m2eclipse plugin for eclipse can download them and bind them to the 

> jar for you, which makes life very pleasant).
> 
> 
> Next, I think my documentation is misleading you... try:
> 
> private static final TapestryTester SHARED_TESTER = new 
> TapestryTester("demo");
> 
> 
> The documentation's example with "MyCoreModule.class" is meant to show 
you 
> how to include your own "core" IOC module 
> (see: 
> http://tapestry.formos.com/nightly/tapestry-testify/#Integration_testing 

> ).
> 
> Alternatively, you might need to include your AppModule as the parameter 
- 
> if you do then read the link above about integration testing
> and break up your AppModule.
> 
> Let me know how you get on!
> 
> Paul
> 
> ------------------
> Paul Field
> Research IT
> Deutsche Bank
> 
> 
> 
> 
> ---
> 
> 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.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 



---

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.

Reply via email to