Run Junit Tests For Non Default SQL Adapter

From CDOT Wiki
Revision as of 12:38, 26 February 2011 by Gbatumbya (talk | contribs) (Created page with '== Debugging a Non-Default SQL Adapter == ===Summary=== By default, NexJ Express Unit tests are configured to test the MySQL Adapter. The instructions that follow outline instruc…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Debugging a Non-Default SQL Adapter

Summary

By default, NexJ Express Unit tests are configured to test the MySQL Adapter. The instructions that follow outline instructions for configuring Unit tests to be run for other SQL Adapters. For this manual, reference will be made to the PostgreSQL Adapter but it will work the same for other adapters

Prerequisite

The following source must exist for the new SQL Adapter: nexj.core.persistence.sql.[DbName]SQLAdapter.java extending nexj.core.persistence.sql.SQLAdapter nexj.core.persistence.sql.[DbName]SQLSchemaManager.java extending nexj.core.persistence.sql.SQLSchemaManager

The following files should be edited and entries for the new SQL Adapter added: nexj.core.meta.persistence.sql.RelationalDatabase.java nexj.core.meta.peristence.sql.RelationalDatabaseFragment.java nexj.core.meta.sys.system.dstypes nexj.core.persistence.sql.SQLSchemaManagerFactory.java nexj.core.util.JDBCInfo.java

Environment Files