Changes

Jump to: navigation, search

Run Junit Tests For Non Default SQL Adapter

279 bytes added, 13:39, 26 February 2011
Debugging a Non-Default SQL Adapter
The following files must exist for the new SQL Adapter:
<br>'''src'''
<br>:<code>nexj.core.persistence.sql.[DbName]SQLAdapter.java</code> extending <code>nexj.core.persistence.sql.SQLAdapter</code><br>:<code>nexj.core.persistence.sql.[DbName]SQLSchemaManager.java</code> extending <code>nexj.core.persistence.sql.SQLSchemaManager</code>
<br>'''test'''
<br>:<code>nexj.core.persistence.sql.[DbName]SQLAdapterTest.java</code> extending <code>nexj.core.persistence.sql.SQLAdapterTest</code><br>:<code>nexj.core.persistence.sql.[DbName]SQLSchemaManagerTest.java</code> extending <code>nexj.core.persistence.sql.SQLSchemaManagerTest</code>
<br>
<br>The following files should be edited and entries for the new SQL Adapter added:
<br>:<code>nexj.core.meta.persistence.sql.RelationalDatabase.java</code><br>:<code>nexj.core.meta.peristence.sql.RelationalDatabaseFragment.java</code><br>:<code>nexj.core.meta.sys.system.dstypes</code><br>:<code>nexj.core.persistence.sql.SQLSchemaManagerFactory.java</code><br>:<code>nexj.core.util.JDBCInfo.java</code>
=== Configurations ===
##: This script is used to:
### Create the <code>test</code> user with the following permissions:
#### Username: test
#### Password: test
#### Full privileges for the test database
#### Remote Login permission
### Create the <code>test</code> database with the follow specifications:
#### NameDatabase name: test
#### Encoding: utf-8 / unicode
#### (*Optional) Schema Name: test
}
</source>
 
==== Run Unit Tests====
# '''Create the test database'''
#: Run the <code>dbname_setup.sql</code> script that was created above to create the test database and user
# Run the unit tests using Eclipse's junit test runner
1
edit

Navigation menu