|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.opensubsystems.core.persist.db.DatabaseTest
org.opensubsystems.blog.persist.db.BlogDatabaseFactoryTest.BlogDatabaseFactoryTestInternal
public static class BlogDatabaseFactoryTest.BlogDatabaseFactoryTestInternal
Internal class which can be included in other test suites directly without including the above suite. This allows us to group multiple tests together and the execute the DatabaseTestSetup only once.
| Field Summary | |
|---|---|
protected org.opensubsystems.blog.persist.db.BlogDatabaseFactory |
m_blogFactory
Factory to manage blogs. |
protected org.opensubsystems.blog.persist.db.BlogDatabaseSchema |
m_blogSchema
Schema to manage blogs. |
| Fields inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
DEFAULT_DB_PASSWORD, DEFAULT_DB_USER, DEFAULT_PROPERTY_FILE, m_connection, m_iRequestedConnectionCount, m_transaction |
| Constructor Summary | |
|---|---|
BlogDatabaseFactoryTest.BlogDatabaseFactoryTestInternal(java.lang.String strTestName)
Constructor |
|
| Method Summary | |
|---|---|
void |
testCheckUniqueConstraint()
Test for checking unique constraint for Folder attribute |
void |
testCreate()
Test creation of blogs. |
void |
testCreateCollection()
Test for creating collection of blogs |
void |
testDelete()
Test Blog deletetion |
void |
testGetAllBlogs()
Test for getting of all blogs |
void |
testGetAllBlogsNoData()
Test getting all blogs for empty table |
void |
testGetBlogByFolder()
Test of getting Blog by unique Folder name |
void |
testGetBlogByID()
Test of get Blog by ID |
void |
testGetBlogByIncorrectFolder()
Test of get Blog by incorrect folder name |
void |
testGetBlogByIncorrectID()
Test of get Blog by incorrect ID |
void |
testGetBlogByNewID()
Test of get Blog by default NEW_ID |
void |
testLoadBlog()
Test of load Blog utility |
void |
testSave()
Test of save blog |
| Methods inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
addDataSource, addDataSource, getDataSourceName, setDataSourceName, setUp, 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, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.opensubsystems.blog.persist.db.BlogDatabaseSchema m_blogSchema
protected org.opensubsystems.blog.persist.db.BlogDatabaseFactory m_blogFactory
| Constructor Detail |
|---|
public BlogDatabaseFactoryTest.BlogDatabaseFactoryTestInternal(java.lang.String strTestName)
throws java.lang.Exception
strTestName - - name of the test
java.lang.Exception - - an error has occured| Method Detail |
|---|
public void testCreate()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testCreateCollection()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testDelete()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testSave()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetBlogByID()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetBlogByIncorrectID()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetBlogByNewID()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetBlogByFolder()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetBlogByIncorrectFolder()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testCheckUniqueConstraint()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetAllBlogs()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetAllBlogsNoData()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testLoadBlog()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||