com.silverpeas.subscribe.service
Class SubscriptionDaoTest

java.lang.Object
  extended by org.silverpeas.DataSetTest
      extended by org.silverpeas.persistence.dao.DAOBasedTest
          extended by com.silverpeas.subscribe.service.SubscriptionDaoTest

public class SubscriptionDaoTest
extends DAOBasedTest

Author:
ehugonnet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.silverpeas.persistence.dao.DAOBasedTest
DAOBasedTest.DAOTest
 
Nested classes/interfaces inherited from class org.silverpeas.DataSetTest
DataSetTest.TableRow
 
Constructor Summary
SubscriptionDaoTest()
           
 
Method Summary
 String[] getApplicationContextPath()
           
 String getDataSetPath()
           
 void testAddComponentSubscriptionForGroupByExplicitDifferentCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddComponentSubscriptionForUserByForcedMethodAndExplicitDifferentCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddComponentSubscriptionForUserBySelfCreationMethod()
          Test of add method, of class SubscriptionDao.
 void testAddComponentSubscriptionForUserBySelfCreationMethodAndExplicitCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddNodeSubscriptionForGroupByExplicitCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddNodeSubscriptionForGroupByExplicitDifferentCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddNodeSubscriptionForUnknownBySelfCreationMethod()
          Test of add method, of class SubscriptionDao.
 void testAddNodeSubscriptionForUserByForcedMethodAndExplicitDifferentCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddNodeSubscriptionForUserBySelfCreationMethod()
          Test of add method, of class SubscriptionDao.
 void testAddNodeSubscriptionForUserBySelfCreationMethodAndExplicitCreatorId()
          Test of add method, of class SubscriptionDao.
 void testAddPKSubscriptionForUserBySelfCreation()
          Test of add method, of class SubscriptionDao.
 void testComponentNodeSubscriptionForGroupByExplicitCreatorId()
          Test of add method, of class SubscriptionDao.
 void testExistsSubscription()
          Test of existsSubscription method, of class SubscriptionDao.
 void testGetSubscribersForComponentResource()
          Test of getSubscribers method, of class SubscriptionDao.
 void testGetSubscribersForNodeResource()
          Test of getSubscribers method, of class SubscriptionDao.
 void testGetSubscribersForNodeResources()
          Test of getSubscribers method, of class SubscriptionDao.
 void testGetSubscribersForPKResource()
          Test of getSubscribers method, of class SubscriptionDao.
 void testGetSubscriptionsByComponentResource()
          Test of getSubscriptionsByResource method, of class SubscriptionDao.
 void testGetSubscriptionsByGroupSubscriber()
          Test of getSubscriptionsBySubscriber method, of class SubscriptionDao.
 void testGetSubscriptionsByGroupSubscriberAndComponent()
          Test of getSubscriptionsBySubscriberAndComponent method, of class SubscriptionDao.
 void testGetSubscriptionsByGroupSubscriberAndInstanceId()
          Test of selectSubscriptionsBySubscriberAndInstanceId method, included in this class of tests.
 void testGetSubscriptionsByNodeResource()
          Test of getSubscriptionsByResource method, of class SubscriptionDao.
 void testGetSubscriptionsByPKResource()
          Test of getSubscriptionsByResource method, of class SubscriptionDao.
 void testGetSubscriptionsByUserSubscriber()
          Test of getSubscriptionsBySubscriber method, of class SubscriptionDao.
 void testGetSubscriptionsByUserSubscriberAndComponent()
          Test of getSubscriptionsBySubscriberAndComponent method, of class SubscriptionDao.
 void testGetSubscriptionsByUserSubscriberAndInstanceId()
          Test of selectSubscriptionsBySubscriberAndInstanceId method, included in this class of tests.
 void testRemoveByResource()
          Test of removeByResource method, of class SubscriptionDao.
 void testRemoveByUserSubscriberBySelfCreation()
          Test of removeBySubscriber method, of class SubscriptionDao.
 void testRemoveComponentSubscriptionForGroup()
          Test of remove method, of class SubscriptionDao.
 void testRemoveComponentSubscriptionForUserByForcedMethodWithExplicitDifferentCreatorId()
          Test of remove method, of class SubscriptionDao.
 void testRemoveComponentSubscriptionForUserBySelfCreationMethod()
          Test of remove method, of class SubscriptionDao.
 void testRemoveComponentSubscriptionForUserBySelfCreationMethodWithExplicitCreatorId()
          Test of remove method, of class SubscriptionDao.
 void testRemoveNodeSubscriptionForGroup()
          Test of remove method, of class SubscriptionDao.
 void testRemoveNodeSubscriptionForUserByForcedMethodWithExplicitDifferentCreatorId()
          Test of remove method, of class SubscriptionDao.
 void testRemoveNodeSubscriptionForUserBySelfCreationMethod()
          Test of remove method, of class SubscriptionDao.
 void testRemoveNodeSubscriptionForUserBySelfCreationMethodWithExplicitCreatorId()
          Test of remove method, of class SubscriptionDao.
 void testRemovePKSubscriptionForUserBySelfCreationMethod()
          Test of remove method, of class SubscriptionDao.
 
Methods inherited from class org.silverpeas.persistence.dao.DAOBasedTest
getDataSourceInjectionBeanId, performDAOTest
 
Methods inherited from class org.silverpeas.DataSetTest
getActualDataSet, getApplicationContext, getConnection, getDataSet, getDataSource, getTableIndexFor, getTableIndexForId, getTableRowFor, getTableRowsFor, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionDaoTest

public SubscriptionDaoTest()
Method Detail

getDataSetPath

public String getDataSetPath()
Specified by:
getDataSetPath in class DataSetTest

getApplicationContextPath

public String[] getApplicationContextPath()
Specified by:
getApplicationContextPath in class DataSetTest

testGetSubscriptionsByNodeResource

public void testGetSubscriptionsByNodeResource()
                                        throws Exception
Test of getSubscriptionsByResource method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByComponentResource

public void testGetSubscriptionsByComponentResource()
                                             throws Exception
Test of getSubscriptionsByResource method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByPKResource

public void testGetSubscriptionsByPKResource()
                                      throws Exception
Test of getSubscriptionsByResource method, of class SubscriptionDao.

Throws:
Exception

testAddNodeSubscriptionForUnknownBySelfCreationMethod

public void testAddNodeSubscriptionForUnknownBySelfCreationMethod()
                                                           throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddNodeSubscriptionForUserBySelfCreationMethod

public void testAddNodeSubscriptionForUserBySelfCreationMethod()
                                                        throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddNodeSubscriptionForUserBySelfCreationMethodAndExplicitCreatorId

public void testAddNodeSubscriptionForUserBySelfCreationMethodAndExplicitCreatorId()
                                                                            throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddNodeSubscriptionForUserByForcedMethodAndExplicitDifferentCreatorId

public void testAddNodeSubscriptionForUserByForcedMethodAndExplicitDifferentCreatorId()
                                                                               throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddNodeSubscriptionForGroupByExplicitCreatorId

public void testAddNodeSubscriptionForGroupByExplicitCreatorId()
                                                        throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddNodeSubscriptionForGroupByExplicitDifferentCreatorId

public void testAddNodeSubscriptionForGroupByExplicitDifferentCreatorId()
                                                                 throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddComponentSubscriptionForUserBySelfCreationMethod

public void testAddComponentSubscriptionForUserBySelfCreationMethod()
                                                             throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddComponentSubscriptionForUserBySelfCreationMethodAndExplicitCreatorId

public void testAddComponentSubscriptionForUserBySelfCreationMethodAndExplicitCreatorId()
                                                                                 throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddComponentSubscriptionForUserByForcedMethodAndExplicitDifferentCreatorId

public void testAddComponentSubscriptionForUserByForcedMethodAndExplicitDifferentCreatorId()
                                                                                    throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testComponentNodeSubscriptionForGroupByExplicitCreatorId

public void testComponentNodeSubscriptionForGroupByExplicitCreatorId()
                                                              throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddComponentSubscriptionForGroupByExplicitDifferentCreatorId

public void testAddComponentSubscriptionForGroupByExplicitDifferentCreatorId()
                                                                      throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testAddPKSubscriptionForUserBySelfCreation

public void testAddPKSubscriptionForUserBySelfCreation()
                                                throws Exception
Test of add method, of class SubscriptionDao.

Throws:
Exception

testRemoveNodeSubscriptionForUserBySelfCreationMethod

public void testRemoveNodeSubscriptionForUserBySelfCreationMethod()
                                                           throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveNodeSubscriptionForUserBySelfCreationMethodWithExplicitCreatorId

public void testRemoveNodeSubscriptionForUserBySelfCreationMethodWithExplicitCreatorId()
                                                                                throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveNodeSubscriptionForUserByForcedMethodWithExplicitDifferentCreatorId

public void testRemoveNodeSubscriptionForUserByForcedMethodWithExplicitDifferentCreatorId()
                                                                                   throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveNodeSubscriptionForGroup

public void testRemoveNodeSubscriptionForGroup()
                                        throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveComponentSubscriptionForUserBySelfCreationMethod

public void testRemoveComponentSubscriptionForUserBySelfCreationMethod()
                                                                throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveComponentSubscriptionForUserBySelfCreationMethodWithExplicitCreatorId

public void testRemoveComponentSubscriptionForUserBySelfCreationMethodWithExplicitCreatorId()
                                                                                     throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveComponentSubscriptionForUserByForcedMethodWithExplicitDifferentCreatorId

public void testRemoveComponentSubscriptionForUserByForcedMethodWithExplicitDifferentCreatorId()
                                                                                        throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveComponentSubscriptionForGroup

public void testRemoveComponentSubscriptionForGroup()
                                             throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemovePKSubscriptionForUserBySelfCreationMethod

public void testRemovePKSubscriptionForUserBySelfCreationMethod()
                                                         throws Exception
Test of remove method, of class SubscriptionDao.

Throws:
Exception

testRemoveByUserSubscriberBySelfCreation

public void testRemoveByUserSubscriberBySelfCreation()
                                              throws Exception
Test of removeBySubscriber method, of class SubscriptionDao.

Throws:
Exception

testRemoveByResource

public void testRemoveByResource()
                          throws Exception
Test of removeByResource method, of class SubscriptionDao.

Throws:
Exception

testExistsSubscription

public void testExistsSubscription()
                            throws Exception
Test of existsSubscription method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByUserSubscriber

public void testGetSubscriptionsByUserSubscriber()
                                          throws Exception
Test of getSubscriptionsBySubscriber method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByGroupSubscriber

public void testGetSubscriptionsByGroupSubscriber()
                                           throws Exception
Test of getSubscriptionsBySubscriber method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByUserSubscriberAndComponent

public void testGetSubscriptionsByUserSubscriberAndComponent()
                                                      throws Exception
Test of getSubscriptionsBySubscriberAndComponent method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByGroupSubscriberAndComponent

public void testGetSubscriptionsByGroupSubscriberAndComponent()
                                                       throws Exception
Test of getSubscriptionsBySubscriberAndComponent method, of class SubscriptionDao.

Throws:
Exception

testGetSubscribersForNodeResource

public void testGetSubscribersForNodeResource()
                                       throws Exception
Test of getSubscribers method, of class SubscriptionDao.

Throws:
Exception

testGetSubscribersForComponentResource

public void testGetSubscribersForComponentResource()
                                            throws Exception
Test of getSubscribers method, of class SubscriptionDao.

Throws:
Exception

testGetSubscribersForPKResource

public void testGetSubscribersForPKResource()
                                     throws Exception
Test of getSubscribers method, of class SubscriptionDao.

Throws:
Exception

testGetSubscribersForNodeResources

public void testGetSubscribersForNodeResources()
                                        throws Exception
Test of getSubscribers method, of class SubscriptionDao.

Throws:
Exception

testGetSubscriptionsByUserSubscriberAndInstanceId

public void testGetSubscriptionsByUserSubscriberAndInstanceId()
                                                       throws Exception
Test of selectSubscriptionsBySubscriberAndInstanceId method, included in this class of tests.

Throws:
Exception

testGetSubscriptionsByGroupSubscriberAndInstanceId

public void testGetSubscriptionsByGroupSubscriberAndInstanceId()
                                                        throws Exception
Test of selectSubscriptionsBySubscriberAndInstanceId method, included in this class of tests.

Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.