...
Option 1 - Running the web tests against to a stand-alone instance of tDAR
- modify the following values in TestConstants.javaDEFAULT_BASE_URL - e.g. In your JUnit run configuration, add the following system properties (e.g -Duser.pass="foobar")
tdar.baseurl (e.g. -Dtdar.baseurl="http://alpha.tdar.org:80"
. Don't forget the colon.DEFAULT_PORT -)
- tdar.user (e.g. -Dtdar.user="8080test@tdar.org"
- USERNAME - change to a known account on the standalone instance.
- PASSWORD
- ADMIN_USERNAME - change to a known admin-level- account on the standalone instance
- ADMIN_PASSWORD )
- tdar.pass(e.g. -Dtdar.pass="test")
- Run the test using JUnit instead instead of via the maven verify goal
...
- Modify /src/main/resources/hibernate.properties to specify the test database (i.e copy/paste the values from src/test/resources/hibernate.properties)
- Modify /src/main/resources/crowd.properties to specify the test authentication host
- Do one of the following (but not both)
- change jetty port in pom.xml from 8080 to 8180, -OR- change the DEAULT_PORT in TdarConstants.java to connect to 8080 instead of 8180.In the JUnit run configuration, add the following system property:
-Dtdar.baseurl="http://localhost:8080"
Writing Tests in tDAR
Starting Points
...