com.silverpeas.questionReply.control
Class QuestionManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.JndiBasedDBTestCase
                      extended by com.silverpeas.components.model.AbstractTestDao
                          extended by com.silverpeas.questionReply.control.QuestionManagerTest
All Implemented Interfaces:
junit.framework.Test

public class QuestionManagerTest
extends com.silverpeas.components.model.AbstractTestDao

Author:
ehugonnet

Field Summary
 
Fields inherited from class com.silverpeas.components.model.AbstractTestDao
datasource
 
Constructor Summary
QuestionManagerTest()
           
 
Method Summary
protected  String getDatasetFileName()
           
protected  String getTableCreationFileName()
           
 void prepareMocks()
           
 void setUp()
           
 void testGetAllQuestions()
          Test of getAllQuestions method, of class QuestionManager.
 void testGetAllQuestionsByCategory()
          Test of getAllQuestionsByCategory method, of class QuestionManager.
 void testGetInstance()
          Test of getInstance method, of class QuestionManager.
 void testGetPublicQuestions()
          Test of getPublicQuestions method, of class QuestionManager.
 void testGetQuestions()
          Test of getQuestions method, of class QuestionManager.
 void testGetSimpleQuestion()
          Test of getQuestion method, of class QuestionManager.
 void testGetWrongQuestion()
          Test of getQuestion method, of class QuestionManager.
 void testUpdateRepliesPublicStatus()
          Test of updateRepliesPublicStatus method, of class QuestionManager.
 void testUpdateRepliesPublicStatusShouldDeleteQuestionWithNoResponse()
          Test of updateRepliesPublicStatus method, of class QuestionManager.
 void testUpdateRepliesPublicStatusShouldHaveNoEffectsOnPrivateReplies()
          Test of updateRepliesPublicStatus method, of class QuestionManager.
 
Methods inherited from class com.silverpeas.components.model.AbstractTestDao
cleanData, configureJNDIDatasource, getDataSet, getLookupName, getTableCreationScript, getTearDownOperation, prepareData, setUpClass, tearDown, tearDownClass
 
Methods inherited from class org.dbunit.JndiBasedDBTestCase
getJNDIProperties, newDatabaseTester
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, setUpDatabaseConfig
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuestionManagerTest

public QuestionManagerTest()
Method Detail

prepareMocks

public void prepareMocks()

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class com.silverpeas.components.model.AbstractTestDao
Throws:
Exception

testGetInstance

public void testGetInstance()
Test of getInstance method, of class QuestionManager.


testUpdateRepliesPublicStatusShouldDeleteQuestionWithNoResponse

public void testUpdateRepliesPublicStatusShouldDeleteQuestionWithNoResponse()
                                                                     throws Exception
Test of updateRepliesPublicStatus method, of class QuestionManager.

Throws:
Exception

testUpdateRepliesPublicStatusShouldHaveNoEffectsOnPrivateReplies

public void testUpdateRepliesPublicStatusShouldHaveNoEffectsOnPrivateReplies()
                                                                      throws Exception
Test of updateRepliesPublicStatus method, of class QuestionManager.

Throws:
Exception

testUpdateRepliesPublicStatus

public void testUpdateRepliesPublicStatus()
                                   throws Exception
Test of updateRepliesPublicStatus method, of class QuestionManager.

Throws:
Exception

testGetSimpleQuestion

public void testGetSimpleQuestion()
                           throws Exception
Test of getQuestion method, of class QuestionManager.

Throws:
Exception

testGetWrongQuestion

public void testGetWrongQuestion()
                          throws Exception
Test of getQuestion method, of class QuestionManager.

Throws:
Exception

testGetQuestions

public void testGetQuestions()
                      throws Exception
Test of getQuestions method, of class QuestionManager.

Throws:
Exception

testGetAllQuestions

public void testGetAllQuestions()
                         throws Exception
Test of getAllQuestions method, of class QuestionManager.

Throws:
Exception

testGetAllQuestionsByCategory

public void testGetAllQuestionsByCategory()
                                   throws Exception
Test of getAllQuestionsByCategory method, of class QuestionManager.

Throws:
Exception

testGetPublicQuestions

public void testGetPublicQuestions()
                            throws Exception
Test of getPublicQuestions method, of class QuestionManager.

Throws:
Exception

getDatasetFileName

protected String getDatasetFileName()
Specified by:
getDatasetFileName in class com.silverpeas.components.model.AbstractTestDao

getTableCreationFileName

protected String getTableCreationFileName()
Specified by:
getTableCreationFileName in class com.silverpeas.components.model.AbstractTestDao


Copyright © 2016 Silverpeas. All Rights Reserved.