PostgreSQL Adapter-nexj/alltests

From CDOT Wiki
Revision as of 14:40, 15 December 2010 by Minooz (talk | contribs) (Running AllTests.java)
Jump to: navigation, search

PostgreSQL Adapter for NexJ - First Test Design

Running AllTests.java

How test/nexj/core/persistence/sql/AllTests.java works:

In all these test files, first codes that are executed are setup() and lock() in SQLDataTest.java to reset the schema 'test'.
These are methods, where tables are created for the first time, and methods in SQLSchemaManager.java are checked.
  • 1- SQLWriterConnectionTest.java
Checks the connection
  • 2- SQLAdapterTest.java
Modifies some values in some tables or insert new values, then SELECT with particular statements and checks if the result is as what is expected.
  • 3- SQLSchemaManagerTest.java
Makes sure those methods concerning creation or manipulation of structure of a table work properly.