Tuscany End User Sample Testing
Initial Setup
Most of the following only needs to be done once
unless noted otherwise.
- Follow the steps to build
Tuscany core from either the samples
readme or the more
comprehensive instructions in the Getting Involved with Apache Tuscany
page. This step
needs to be done when ever you have new source to test.
- Change directory
to java/testing/tomcat
directory.
- Download
Tomcat Core 5.5.xx zip
for Windows or tar.gz for Linux from Apache
Tomcat.
- You may
have to edit build.xml to change the property tuscany.acceptance.tomcat.version
to match the xx
to the specific version that you downloaded.
- During
the build Maven
references the dependency jsr173 jar which is not in any maven 2.0
repository to resolve this you need to add it to your local Maven
repository by :
Running
In
the java/testing/tomcat
directory run maven:
mvn
Explanation
Maven does
the following:
- Unpacks the
Tomcat distribution into the target directory to ensure a pristine
environment.
- It adds the appropriate Tuscany and it
dependencies jars into Tomcat (for more details)
- Does
the necessary changes
to Tomcat's configuration as required. (for more details)
- Deploys
Tuscany's sample war files into Tomcat.
- Starts
Tomcat (You should see another window running Tomcat)
- Begins
running HTML unit tests that should closely match running the samples
as a user would.
If all goes well at the end you
should see:
[INFO] ----------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ----------------------------------------------------------------------------
[INFO] Tuscany Testing in Tomcat .............................. SUCCESS [0.340s]
[INFO] Tuscany Testing Tomcat HelloWorld WS ................... SUCCESS [10.956s]
[INFO] Tuscany Testing Tomcat HelloWorld Axis2 ................ SUCCESS [4.847s]
[INFO] ----------------------------------------------------------------------------
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Tue Apr 11 13:19:42 EDT 2006
[INFO] Final Memory: 8M/15M
[INFO] ----------------------------------------------------------------------------
Cleanup
Close
the Tomcat window and issue mvn clean
.