How to setup santex test

In order to setup Santext tests, please follow this process

Process

1. Donwload the .zip file provided by santex

2. Modify the pom.xml in order to add the next repository  java.net2

    <repositories>
        <repository>
            <id>java.net</id>
            <url>http://download.java.net/maven/2</url>
        </repository>
        <repository>
            <id>java.net2</id>
            <url>http://java.sun.com/products/jta</url>
        </repository>
    </repositories>

3. Setup the DB username and password

Sample
  • username = root
  • password = 1969
Within
  • <Proyect Folder Path>/src/main/resources/jdbc.properties 
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost/appfuse_light?createDatabaseIfNotExist=true
jdbc.username=root
jdbc.password=1969

4. Please use java 1.7 to run this project

5. Execute this command within the project's folder

​mvn jetty:run

If there are issues with jta file, please perform this procedure

* Please set the attached file  jta-1.0.1B.jar  into the local maven repository

Sample

  • local maven repository : /Users/abernal/.m2/repository/javax/transaction/jta/1.0.1B/
  • File : /Users/abernal/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar