Difference between revisions of "PostgreSQL Adapter-nexj/alltests"
(→Running AllTests.java) |
(→Running AllTests.java) |
||
Line 6: | Line 6: | ||
: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 t | :These are methods, where t | ||
− | + | * 1- SQLWriterConnectionTest.java | |
− | + | : Checks the connection | |
− | + | * 2- SQLAdapterTest.java | |
− | + | : 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 | |
− | + | : Makes sure those methods concerning creation or manipulation of structure of a table work properly. | |
− |
Revision as of 14:39, 15 December 2010
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 t
- 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.