org.sourceforge.jemm.database
Class BaseDatabaseObjectTest

java.lang.Object
  extended by org.sourceforge.jemm.database.BaseDatabaseTest
      extended by org.sourceforge.jemm.database.BaseDatabaseObjectTest

public class BaseDatabaseObjectTest
extends BaseDatabaseTest

Object handling tests for the BaseDatabase database implementation.

See BaseDatabaseTest for more information.

Author:
Rory Graves

Field Summary
 org.sourceforge.jemm.database.ClientId clientId
           
 
Fields inherited from class org.sourceforge.jemm.database.BaseDatabaseTest
database, debug, DUMMY_CLASS, gcMode, typeHelper
 
Constructor Summary
BaseDatabaseObjectTest()
           
 
Method Summary
 void basicCreateTest()
           
 void changeUpdateTest()
           
 void getObjectTest()
           
 void initialiseTest()
           
 void invalidCreateObjectTest1()
          Test object creation with an undefined clientId
 void invalidCreateObjectTest2()
          Test object creation with an undefined class id
 void noChangeUpdateTest()
           
 void otherUpdateTest()
          Test the behaviour when a field is updated by
 
Methods inherited from class org.sourceforge.jemm.database.BaseDatabaseTest
cleanup, createFieldData, createSyncData, getDatabase, registerTestClass1, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientId

public final org.sourceforge.jemm.database.ClientId clientId
Constructor Detail

BaseDatabaseObjectTest

public BaseDatabaseObjectTest()
Method Detail

basicCreateTest

public void basicCreateTest()
                     throws java.lang.Exception
Throws:
java.lang.Exception

initialiseTest

public void initialiseTest()
                    throws java.lang.Exception
Throws:
java.lang.Exception

noChangeUpdateTest

public void noChangeUpdateTest()
                        throws java.lang.Exception
Throws:
java.lang.Exception

changeUpdateTest

public void changeUpdateTest()
                      throws java.lang.Exception
Throws:
java.lang.Exception

otherUpdateTest

public void otherUpdateTest()
                     throws java.lang.Exception
Test the behaviour when a field is updated by

Throws:
java.lang.Exception

getObjectTest

public void getObjectTest()
                   throws java.lang.Exception
Throws:
java.lang.Exception

invalidCreateObjectTest1

public void invalidCreateObjectTest1()
                              throws java.lang.Exception
Test object creation with an undefined clientId

Throws:
java.lang.Exception - (IllegalArgumentException expected)

invalidCreateObjectTest2

public void invalidCreateObjectTest2()
                              throws java.lang.Exception
Test object creation with an undefined class id

Throws:
java.lang.Exception - (IllegalArgumentException expected)


Copyright © 2009. All Rights Reserved.