|
|||||||||
| 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.logic.BlogControllerTest.BlogControllerTestInternal
public static class BlogControllerTest.BlogControllerTestInternal
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.logic.BlogController |
m_blogControl
Controller used to manipulate blogs. |
protected org.opensubsystems.blog.persist.BlogFactory |
m_blogFactory
Factory to manage blogs. |
protected org.opensubsystems.blog.persist.EntryFactory |
m_entryFactory
Factory to manage entries. |
| 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 | |
|---|---|
BlogControllerTest.BlogControllerTestInternal(java.lang.String strTestName)
Constructor |
|
| Method Summary | |
|---|---|
void |
testCreateBlog()
Test create blog. |
void |
testCreateEntry()
Test create entry. |
void |
testDelete()
Test for deleting blog with assigned entries |
void |
testDeleteEntry()
Test for deleting particular entry |
void |
testGetAll()
Test for getting of all blogs |
void |
testGetBlogByFolder()
Test of getting Blog by unique Folder name |
void |
testGetBlogByID()
Test of get Blog by ID |
void |
testGetEntries()
Test for getting of the entries for specified blog |
void |
testGetWithEntries()
Test for getting of blog and its entries knowing just the folder |
void |
testGetWithEntry()
Test for getting of blog and its entry knowing just the folder and the id of the entry |
void |
testGetWithEntryById()
Test for getting of blog and its entry knowing just the blog id and the id of the entry |
void |
testSaveBlog()
Test save blog |
void |
testSaveEntry()
Test save entry |
| 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.BlogFactory m_blogFactory
protected org.opensubsystems.blog.persist.EntryFactory m_entryFactory
protected org.opensubsystems.blog.logic.BlogController m_blogControl
| Constructor Detail |
|---|
public BlogControllerTest.BlogControllerTestInternal(java.lang.String strTestName)
throws java.lang.Exception
strTestName - - name of the test
java.lang.Exception - - an error has occured| Method Detail |
|---|
public void testGetBlogByID()
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 testGetAll()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetEntries()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetWithEntries()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetWithEntry()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetWithEntryById()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testCreateBlog()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testCreateEntry()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testSaveBlog()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testSaveEntry()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testDelete()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testDeleteEntry()
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 | ||||||||