Difference between revisions of "PostgreSQL Adapter-nexj/alltests"
(→Running AllTests.java) |
(→Running AllTests.java) |
||
Line 1: | Line 1: | ||
+ | <big><big> PostgreSQL Adapter for NexJ - First Test Design </big></big> | ||
+ | {{NexJ_Express Index}} | ||
+ | |||
<big><big> PostgreSQL Adapter for NexJ - First Test Design </big></big> | <big><big> PostgreSQL Adapter for NexJ - First Test Design </big></big> | ||
{{NexJ_Express Index}} | {{NexJ_Express Index}} | ||
Line 5: | Line 8: | ||
How <code>test/nexj/core/persistence/sql/AllTests.java</code> works: | How <code>test/nexj/core/persistence/sql/AllTests.java</code> works: | ||
:In all these test files, first codes that are executed are <code>setup()</code> and <code>lock()</code> in <code>SQLDataTest.java</code> to reset the schema 'test'. | :In all these test files, first codes that are executed are <code>setup()</code> and <code>lock()</code> in <code>SQLDataTest.java</code> to reset the schema 'test'. | ||
− | :These are methods, where tables are created for the first time, and methods in <code>SQLSchemaManager.java</code> are checked. | + | :These are methods, where tables are created for the first time, and methods in <code>SQLSchemaManager.java</code> are checked and an exception will be thrown if any problem with syntax. |
* 1- SQLWriterConnectionTest.java | * 1- SQLWriterConnectionTest.java | ||
: Checks the connection | : Checks the connection | ||
* 2- SQLAdapterTest.java | * 2- SQLAdapterTest.java | ||
+ | : Deals with data values in tables | ||
: Modifies some values in some tables or insert new values, then <code>SELECT</code> with particular statements and checks if the result is as what is expected. | : Modifies some values in some tables or insert new values, then <code>SELECT</code> with particular statements and checks if the result is as what is expected. | ||
* 3- SQLSchemaManagerTest.java | * 3- SQLSchemaManagerTest.java | ||
+ | : Deals with syntax and how to change each syntax to match with each SQL database system's properties. | ||
: Makes sure those methods concerning creation or manipulation of structure of a table work properly. | : Makes sure those methods concerning creation or manipulation of structure of a table work properly. |
Revision as of 14:43, 15 December 2010
PostgreSQL Adapter for NexJ - First Test Design
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()
andlock()
inSQLDataTest.java
to reset the schema 'test'. - These are methods, where tables are created for the first time, and methods in
SQLSchemaManager.java
are checked and an exception will be thrown if any problem with syntax.
- 1- SQLWriterConnectionTest.java
- Checks the connection
- 2- SQLAdapterTest.java
- Deals with data values in tables
- 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
- Deals with syntax and how to change each syntax to match with each SQL database system's properties.
- Makes sure those methods concerning creation or manipulation of structure of a table work properly.