Open main menu

CDOT Wiki β

Changes

Run Junit Tests For Non Default SQL Adapter

12 bytes removed, 12:28, 26 February 2011
Environment/Connection Files
==== Environment/Connection Files ====
These files are located in the ''test'' source folder in the package <code>nexj</code>
#*Edit the files: '''default.config, filestorage.connections, filestoragefragment.connections'''
##In the <code>DataSourceConnections</code> elemement
##Change all occurrences of <code>adapter="MySQL"</code> to <code>adapter="DbName"</code>
##Change all occurrences of <code>port="3306"</code> to the port on which the new DbName is configured to accept connections
::::For the PostgreSQL Adapter, the following configuration is used
<source lang="xml">
<DataSourceConnections>
</DataSourceConnections>
</source>
#<li value="2">*Create a connections file for the new adapter
##Create the file '''[DbName].connections''' in the <code>nexj<code> package in the ''test'' source folder
##Copy and paste the contents of '''mysql.connections''' into the new connections file
##Change all occurrences of <code>adapter="MySQL"</code> to <code>adapter="DbName"</code>
##Change all occurrences of <code>port="3306"</code> to the port on which the new DbName is configured to accept connections
<br>::::For the PostgreSQL Adapter, the following configuration is used
<source lang="xml">
<DataSourceConnections>
</DataSourceConnections>
</source>
 
==== SQL Scripts ====
==== Unit Test Files ====
1
edit