org.opensubsystems.blog.logic
Class BlogControllerTest.BlogControllerTestInternal

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opensubsystems.core.persist.db.DatabaseTest
              extended by org.opensubsystems.blog.logic.BlogControllerTest.BlogControllerTestInternal
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
BlogControllerTest

public static class BlogControllerTest.BlogControllerTestInternal
extends org.opensubsystems.core.persist.db.DatabaseTest

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

m_blogFactory

protected org.opensubsystems.blog.persist.BlogFactory m_blogFactory
Factory to manage blogs.


m_entryFactory

protected org.opensubsystems.blog.persist.EntryFactory m_entryFactory
Factory to manage entries.


m_blogControl

protected org.opensubsystems.blog.logic.BlogController m_blogControl
Controller used to manipulate blogs.

Constructor Detail

BlogControllerTest.BlogControllerTestInternal

public BlogControllerTest.BlogControllerTestInternal(java.lang.String strTestName)
                                              throws java.lang.Exception
Constructor

Parameters:
strTestName - - name of the test
Throws:
java.lang.Exception - - an error has occured
Method Detail

testGetBlogByID

public void testGetBlogByID()
                     throws java.lang.Exception
Test of get Blog by ID

Throws:
java.lang.Exception - - an error has occured during test

testGetBlogByFolder

public void testGetBlogByFolder()
                         throws java.lang.Exception
Test of getting Blog by unique Folder name

Throws:
java.lang.Exception - - an error has occured during test

testGetAll

public void testGetAll()
                throws java.lang.Exception
Test for getting of all blogs

Throws:
java.lang.Exception - - an error has occured during test

testGetEntries

public void testGetEntries()
                    throws java.lang.Exception
Test for getting of the entries for specified blog

Throws:
java.lang.Exception - - an error has occured during test

testGetWithEntries

public void testGetWithEntries()
                        throws java.lang.Exception
Test for getting of blog and its entries knowing just the folder

Throws:
java.lang.Exception - - an error has occured during test

testGetWithEntry

public void testGetWithEntry()
                      throws java.lang.Exception
Test for getting of blog and its entry knowing just the folder and the id of the entry

Throws:
java.lang.Exception - - an error has occured during test

testGetWithEntryById

public void testGetWithEntryById()
                          throws java.lang.Exception
Test for getting of blog and its entry knowing just the blog id and the id of the entry

Throws:
java.lang.Exception - - an error has occured during test

testCreateBlog

public void testCreateBlog()
                    throws java.lang.Exception
Test create blog.

Throws:
java.lang.Exception - - an error has occured during test

testCreateEntry

public void testCreateEntry()
                     throws java.lang.Exception
Test create entry.

Throws:
java.lang.Exception - - an error has occured during test

testSaveBlog

public void testSaveBlog()
                  throws java.lang.Exception
Test save blog

Throws:
java.lang.Exception - - an error has occured during test

testSaveEntry

public void testSaveEntry()
                   throws java.lang.Exception
Test save entry

Throws:
java.lang.Exception - - an error has occured during test

testDelete

public void testDelete()
                throws java.lang.Exception
Test for deleting blog with assigned entries

Throws:
java.lang.Exception - - an error has occured during test

testDeleteEntry

public void testDeleteEntry()
                     throws java.lang.Exception
Test for deleting particular entry

Throws:
java.lang.Exception - - an error has occured during test


Copyright © 2003 - 2007 OpenSubsystems s.r.o.