net.sf.jaxme.sqls.junit
Class CreateTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sf.jaxme.sqls.junit.CreateTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DB2Test

public class CreateTest
extends junit.framework.TestCase

Author:
Jochen Wiedmann

Constructor Summary
CreateTest(java.lang.String pName)
          Creates a new instance of CreateTest.java.
 
Method Summary
protected  Table getBasicTable()
          Creates a basic table
protected  Table getComposedKeyTable()
          Creates a table with a composed primary key.
protected  java.lang.String getCreateForeignKeyResult()
           
protected  Table getForeignKeyTable(Table pTable)
           
protected  Table getPrimaryKeyTable()
          Creates a table with primary key
protected  SQLFactory newSQLFactory()
           
 void setUp()
           
 void testBasicCreate()
          Basic test for creating a CREATE TABLE statement.
 void testBasicDelete()
          Basic test for creating an DELETE statement.
 void testBasicInsert()
          Basic test for creating an INSERT statement.
 void testBasicSelect()
          Basic test for creating a SELECT statement.
 void testBasicUpdate()
          Basic test for creating an UPDATE statement.
 void testComposedPrimaryKey()
          Test for composed primary keys.
 void testCreateForeignKey()
          Test for a FOREIGN KEY definition.
 void testIndexNames()
          Test for index names.
 void testJoin()
          Test for a JOIN statement.
 void testSubSelect()
          Test for subselects.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateTest

public CreateTest(java.lang.String pName)

Creates a new instance of CreateTest.java.

Method Detail

newSQLFactory

protected SQLFactory newSQLFactory()

setUp

public void setUp()

getBasicTable

protected Table getBasicTable()

Creates a basic table


getPrimaryKeyTable

protected Table getPrimaryKeyTable()

Creates a table with primary key


getForeignKeyTable

protected Table getForeignKeyTable(Table pTable)

testBasicCreate

public void testBasicCreate()

Basic test for creating a CREATE TABLE statement.


testBasicInsert

public void testBasicInsert()

Basic test for creating an INSERT statement.


testBasicSelect

public void testBasicSelect()

Basic test for creating a SELECT statement.


testBasicUpdate

public void testBasicUpdate()

Basic test for creating an UPDATE statement.


testBasicDelete

public void testBasicDelete()

Basic test for creating an DELETE statement.


getCreateForeignKeyResult

protected java.lang.String getCreateForeignKeyResult()

testCreateForeignKey

public void testCreateForeignKey()

Test for a FOREIGN KEY definition.


testJoin

public void testJoin()

Test for a JOIN statement.


getComposedKeyTable

protected Table getComposedKeyTable()

Creates a table with a composed primary key.


testComposedPrimaryKey

public void testComposedPrimaryKey()

Test for composed primary keys.


testIndexNames

public void testIndexNames()

Test for index names.


testSubSelect

public void testSubSelect()

Test for subselects.