com.silverpeas.gallery
Class BaseGalleryTest

java.lang.Object
  extended by org.silverpeas.DataSetTest
      extended by org.silverpeas.persistence.dao.DAOBasedTest
          extended by com.silverpeas.gallery.BaseGalleryTest
Direct Known Subclasses:
GalleryBmEJBTest, MediaDaoTest, OldOrderDAOTest, OrderDAOTest, PhotoDaoTest

public abstract class BaseGalleryTest
extends org.silverpeas.persistence.dao.DAOBasedTest

Base class for tests in the gallery component. It prepares the database to use in tests.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.silverpeas.persistence.dao.DAOBasedTest
org.silverpeas.persistence.dao.DAOBasedTest.DAOTest
 
Nested classes/interfaces inherited from class org.silverpeas.DataSetTest
org.silverpeas.DataSetTest.TableRow
 
Field Summary
protected  com.stratelia.webactiv.beans.admin.UserDetail adminAccessUser
           
protected static Date CREATE_DATE
           
protected static String GALLERY0
           
protected static String GALLERY1
           
protected static String GALLERY2
           
protected static String INSTANCE_A
           
protected static Date LAST_UPDATE_DATE
           
protected static int MEDIA_INTERNAL_ROW_COUNT
           
protected static int MEDIA_ORDER_DETAIL_ROW_COUNT
           
protected static int MEDIA_ORDER_ROW_COUNT
           
protected static int MEDIA_PATH_ROW_COUNT
           
protected static int MEDIA_PHOTO_ROW_COUNT
           
protected static int MEDIA_ROW_COUNT
           
protected static int MEDIA_SOUND_ROW_COUNT
           
protected static int MEDIA_STREAMING_ROW_COUNT
           
protected static int MEDIA_VIDEO_ROW_COUNT
           
protected  com.stratelia.webactiv.beans.admin.UserDetail publisherUser
           
protected static Date TODAY
           
protected  com.stratelia.webactiv.beans.admin.UserDetail userUser
           
protected  com.stratelia.webactiv.beans.admin.UserDetail writerUser
           
 
Constructor Summary
BaseGalleryTest()
           
 
Method Summary
 String[] getApplicationContextPath()
           
 String getDataSetPath()
           
protected  org.silverpeas.core.admin.OrganisationController getOrganisationControllerMock()
           
 void setUp()
           
 void tearDown()
           
protected  void verifyDataBeforeTest()
          Verifying the data before a test.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GALLERY0

protected static final String GALLERY0
See Also:
Constant Field Values

GALLERY1

protected static final String GALLERY1
See Also:
Constant Field Values

GALLERY2

protected static final String GALLERY2
See Also:
Constant Field Values

INSTANCE_A

protected static final String INSTANCE_A
See Also:
Constant Field Values

TODAY

protected static final Date TODAY

CREATE_DATE

protected static final Date CREATE_DATE

LAST_UPDATE_DATE

protected static final Date LAST_UPDATE_DATE

MEDIA_ROW_COUNT

protected static final int MEDIA_ROW_COUNT
See Also:
Constant Field Values

MEDIA_INTERNAL_ROW_COUNT

protected static final int MEDIA_INTERNAL_ROW_COUNT
See Also:
Constant Field Values

MEDIA_PHOTO_ROW_COUNT

protected static final int MEDIA_PHOTO_ROW_COUNT
See Also:
Constant Field Values

MEDIA_VIDEO_ROW_COUNT

protected static final int MEDIA_VIDEO_ROW_COUNT
See Also:
Constant Field Values

MEDIA_SOUND_ROW_COUNT

protected static final int MEDIA_SOUND_ROW_COUNT
See Also:
Constant Field Values

MEDIA_STREAMING_ROW_COUNT

protected static final int MEDIA_STREAMING_ROW_COUNT
See Also:
Constant Field Values

MEDIA_PATH_ROW_COUNT

protected static final int MEDIA_PATH_ROW_COUNT
See Also:
Constant Field Values

MEDIA_ORDER_ROW_COUNT

protected static final int MEDIA_ORDER_ROW_COUNT
See Also:
Constant Field Values

MEDIA_ORDER_DETAIL_ROW_COUNT

protected static final int MEDIA_ORDER_DETAIL_ROW_COUNT
See Also:
Constant Field Values

adminAccessUser

protected com.stratelia.webactiv.beans.admin.UserDetail adminAccessUser

publisherUser

protected com.stratelia.webactiv.beans.admin.UserDetail publisherUser

writerUser

protected com.stratelia.webactiv.beans.admin.UserDetail writerUser

userUser

protected com.stratelia.webactiv.beans.admin.UserDetail userUser
Constructor Detail

BaseGalleryTest

public BaseGalleryTest()
Method Detail

getApplicationContextPath

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

getDataSetPath

public String getDataSetPath()
Specified by:
getDataSetPath in class org.silverpeas.DataSetTest

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class org.silverpeas.DataSetTest
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class org.silverpeas.DataSetTest
Throws:
Exception

getOrganisationControllerMock

protected org.silverpeas.core.admin.OrganisationController getOrganisationControllerMock()

verifyDataBeforeTest

protected void verifyDataBeforeTest()
                             throws Exception
Verifying the data before a test.

Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.