|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
atg.adapter.gsa.GSATest
public class GSATest
A basic GSA test which is expected to be extended than used directly. Has several utility methods.
| Constructor Summary | |
|---|---|
GSATest()
|
|
GSATest(java.lang.String arg0)
Constructor for GSATest. |
|
| Method Summary | |
|---|---|
protected atg.repository.MutableRepositoryItem |
createDummyItem(atg.adapter.gsa.GSARepository pGSARepository,
java.lang.String descName,
java.lang.String pID)
|
protected java.lang.Object |
generateDummyValue(atg.repository.RepositoryPropertyDescriptor propertyDescriptor)
|
java.io.File |
getConfigpath()
|
java.io.File |
getConfigpath(java.lang.String pConfigDirectory)
Returns the configpath for tests |
protected atg.adapter.gsa.GSAId |
getNewCompoundId(atg.adapter.gsa.GSARepository r,
atg.adapter.gsa.GSAItemDescriptor desc)
Get a id suitable for creating items of this type. |
protected DBUtils |
initDB(java.util.Properties props)
|
protected void |
setUp()
|
protected void |
setUpAndTest(java.io.File pConfigPathWhereToCreateTheRepository,
java.lang.String[] definitionFiles,
java.util.Properties pDBProperties,
java.lang.String pMethodName)
Create a repository in the given configpath using the given repository definitions (Absolute paths) connecting to the db whose properties are specified in pDBProperties @see DBUtils Method pMethodName is invoked with the GSARepository passed to it as a parameter. |
protected void |
setUpAndTest(java.lang.String pMethodName)
Createa a file using reasonable defaults. |
static atg.nucleus.Nucleus |
startNucleus(java.io.File configpath)
Starts Nucleus using the given config directory |
static atg.nucleus.Nucleus |
startNucleus(java.lang.String configpathStr)
Starts Nucleus given an array of configpath entries |
protected void |
tearDown()
|
void |
testDummy()
A Dummy test so smokestack won't report this class as a failure. |
| 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, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GSATest()
public GSATest(java.lang.String arg0)
arg0 - | Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic java.io.File getConfigpath()
public java.io.File getConfigpath(java.lang.String pConfigDirectory)
protected void setUpAndTest(java.io.File pConfigPathWhereToCreateTheRepository,
java.lang.String[] definitionFiles,
java.util.Properties pDBProperties,
java.lang.String pMethodName)
throws java.lang.Exception
pConfigPathWhereToCreateTheRepository - definitionFiles - pDBProperties - pMethodName -
java.lang.Exception
java.lang.Exception
protected void setUpAndTest(java.lang.String pMethodName)
throws java.lang.Exception
pMethodName -
java.lang.Exception
java.lang.Exceptionpublic static atg.nucleus.Nucleus startNucleus(java.io.File configpath)
configpath -
public static atg.nucleus.Nucleus startNucleus(java.lang.String configpathStr)
configpathStr -
protected DBUtils initDB(java.util.Properties props)
throws java.lang.Exception,
java.sql.SQLException
dbName -
java.lang.Exception
java.sql.SQLExceptionpublic final void testDummy()
protected atg.repository.MutableRepositoryItem createDummyItem(atg.adapter.gsa.GSARepository pGSARepository,
java.lang.String descName,
java.lang.String pID)
throws atg.repository.RepositoryException
pGSARepository - descName -
atg.repository.RepositoryException
protected atg.adapter.gsa.GSAId getNewCompoundId(atg.adapter.gsa.GSARepository r,
atg.adapter.gsa.GSAItemDescriptor desc)
throws atg.repository.RepositoryException
Repository's IdGenerator.
atg.repository.RepositoryException - if there is trouble creating the idprotected java.lang.Object generateDummyValue(atg.repository.RepositoryPropertyDescriptor propertyDescriptor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||