com.silverpeas.social.invitation
Class TestInvitationService

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.social.invitation.TestInvitationService
All Implemented Interfaces:
junit.framework.Test

public class TestInvitationService
extends AbstractTestDao

Author:
Bensalem Nabil

Field Summary
 
Fields inherited from class com.silverpeas.components.model.AbstractTestDao
datasource
 
Constructor Summary
TestInvitationService()
           
 
Method Summary
protected  String getDatasetFileName()
           
protected  String getTableCreationFileName()
           
 void setUp()
           
 void tearDown()
           
 void testAccepteInvitation()
           
 void testGetAllMyInvitationsReceive()
           
 void testGetAllMyInvitationsSent()
           
 void testGetInvitation()
           
 void testignoreInvitation()
           
 void testInvite()
           
 
Methods inherited from class com.silverpeas.components.model.AbstractTestDao
cleanData, configureJNDIDatasource, getDataSet, getLookupName, getTableCreationScript, getTearDownOperation, prepareData, setUpClass, 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

TestInvitationService

public TestInvitationService()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractTestDao
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class AbstractTestDao
Throws:
Exception

getDatasetFileName

protected String getDatasetFileName()
Specified by:
getDatasetFileName in class AbstractTestDao

testInvite

public void testInvite()
                throws Exception
Throws:
Exception

testignoreInvitation

public void testignoreInvitation()
                          throws Exception
Throws:
Exception

testGetInvitation

public void testGetInvitation()
                       throws Exception
Throws:
Exception

testGetAllMyInvitationsSent

public void testGetAllMyInvitationsSent()
                                 throws Exception
Throws:
Exception

testGetAllMyInvitationsReceive

public void testGetAllMyInvitationsReceive()
                                    throws Exception
Throws:
Exception

testAccepteInvitation

public void testAccepteInvitation()
                           throws Exception
Throws:
Exception

getTableCreationFileName

protected String getTableCreationFileName()
Specified by:
getTableCreationFileName in class AbstractTestDao


Copyright © 2016 Silverpeas. All Rights Reserved.