|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.jcorporate.expresso.services.test.ExpressoTestCase
com.jcorporate.expresso.core.utility.DBToolTests
What this does:
Runs DBCreate on the schemas and makes sure that no exceptions are thrown while creating. NOTE: Derive a class from this class to test all derived schemas.
| Field Summary | |
protected Vector |
schemaList
Add schemas to this list to verify other schemas |
| Constructor Summary | |
DBToolTests(String name)
|
|
| Method Summary | |
protected boolean |
isAlreadyCleared()
|
protected boolean |
isFailedOnce()
|
static void |
main(String[] args)
|
protected void |
setAlreadyCleared(boolean newValue)
|
protected void |
setFailedOnce(boolean newValue)
|
protected void |
setUp()
Sets up and makes sure that ConfigManager is fully loaded and ready to go. |
static junit.framework.Test |
suite()
Creates the test cases. |
void |
testAddingSchemas()
If testing multiple schemas, this will make sure that the schema has been added to the dbtable when created. |
void |
testCreate()
Runs the createTables() on the schema list to make sure no exceptions are getting thrown |
void |
testOtherSetups()
Runs the othersetups() on the schema list to make sure no exceptions are getting thrown |
void |
testPopulateTables()
Runs the populateTables() on the schema list to make sure no exceptions are getting thrown |
void |
testSerialization()
This testcase makes sure that all DBObjects within all the schemas are serializable. |
void |
testSetupConfigValues()
Runs through setting up the configuration values for a particular schema |
void |
testSetupSecurity()
Runs the setupSecurity() on the schema list to make sure no exceptions are getting thrown |
void |
testVerify()
Call verify on all the dbobjects. |
| Methods inherited from class com.jcorporate.expresso.services.test.ExpressoTestCase |
getLog, tearDown |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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 |
| Field Detail |
protected Vector schemaList
| Constructor Detail |
public DBToolTests(String name)
throws Exception
| Method Detail |
public static void main(String[] args)
throws Exception
Exceptionprotected boolean isAlreadyCleared()
protected void setAlreadyCleared(boolean newValue)
protected boolean isFailedOnce()
protected void setFailedOnce(boolean newValue)
public static junit.framework.Test suite()
throws Exception
Exception - upon construction error.public void testCreate()
public void testAddingSchemas()
public void testPopulateTables()
public void testSetupSecurity()
public void testSetupConfigValues()
public void testOtherSetups()
public void testVerify()
public void testSerialization()
protected void setUp()
throws Exception
ExpressoTestCase
setUp in class ExpressoTestCaseException
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||