com.silverpeas.gallery.dao
Class MediaDaoTest
java.lang.Object
org.silverpeas.DataSetTest
org.silverpeas.persistence.dao.DAOBasedTest
com.silverpeas.gallery.BaseGalleryTest
com.silverpeas.gallery.dao.MediaDaoTest
public class MediaDaoTest
- extends BaseGalleryTest
This class of unit tests has been written during Entity and SGBD model migration.
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 |
Fields inherited from class com.silverpeas.gallery.BaseGalleryTest |
adminAccessUser, CREATE_DATE, GALLERY0, GALLERY1, GALLERY2, INSTANCE_A, LAST_UPDATE_DATE, MEDIA_INTERNAL_ROW_COUNT, MEDIA_ORDER_DETAIL_ROW_COUNT, MEDIA_ORDER_ROW_COUNT, MEDIA_PATH_ROW_COUNT, MEDIA_PHOTO_ROW_COUNT, MEDIA_ROW_COUNT, MEDIA_SOUND_ROW_COUNT, MEDIA_STREAMING_ROW_COUNT, MEDIA_VIDEO_ROW_COUNT, publisherUser, TODAY, userUser, writerUser |
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 |
MediaDaoTest
public MediaDaoTest()
getAllMedia
public void getAllMedia()
throws Exception
- Throws:
Exception
getAllMediaOfAlbum
public void getAllMediaOfAlbum()
throws Exception
- Throws:
Exception
getAllPhotos
public void getAllPhotos()
throws Exception
- Throws:
Exception
getAllVideos
public void getAllVideos()
throws Exception
- Throws:
Exception
getAllPhotosAndVideos
public void getAllPhotosAndVideos()
throws Exception
- Throws:
Exception
getAllSounds
public void getAllSounds()
throws Exception
- Throws:
Exception
getAllStreamings
public void getAllStreamings()
throws Exception
- Throws:
Exception
getByCriteria
public void getByCriteria()
throws Exception
- Throws:
Exception
getByCriteriaError
public void getByCriteriaError()
throws Exception
- Throws:
Exception
getByIdentifiers
public void getByIdentifiers()
throws Exception
- Throws:
Exception
getStreamingsAccordingToRequesterAndVisibility
public void getStreamingsAccordingToRequesterAndVisibility()
throws Exception
- Throws:
Exception
getSoundsAccordingToRequesterAndVisibility
public void getSoundsAccordingToRequesterAndVisibility()
throws Exception
- Throws:
Exception
getMediaThatWillBeNotVisible
public void getMediaThatWillBeNotVisible()
throws Exception
- Throws:
Exception
getPathList
public void getPathList()
throws Exception
- Throws:
Exception
getAllMediaIdByUserId
public void getAllMediaIdByUserId()
throws Exception
- Throws:
Exception
getSocialInformationListOfMyContacts
public void getSocialInformationListOfMyContacts()
throws Exception
- Throws:
Exception
verifyPhotoData
public void verifyPhotoData()
throws Exception
- Throws:
Exception
verifyVideoData
public void verifyVideoData()
throws Exception
- Throws:
Exception
verifySoundData
public void verifySoundData()
throws Exception
- Throws:
Exception
verifyStreamingData
public void verifyStreamingData()
throws Exception
- Throws:
Exception
verifyAuthorOrdering
public void verifyAuthorOrdering()
throws Exception
- Throws:
Exception
verifyTitleOrdering
public void verifyTitleOrdering()
throws Exception
- Throws:
Exception
verifyDimensionOrdering
public void verifyDimensionOrdering()
throws Exception
- Throws:
Exception
saveNewPhoto
public void saveNewPhoto()
throws Exception
- Throws:
Exception
saveExistingPhoto
public void saveExistingPhoto()
throws Exception
- Throws:
Exception
deleteMediaThatDoesNotExist
public void deleteMediaThatDoesNotExist()
throws Exception
- Throws:
Exception
deletePhoto
public void deletePhoto()
throws Exception
- Throws:
Exception
saveNewVideo
public void saveNewVideo()
throws Exception
- Throws:
Exception
saveExistingVideo
public void saveExistingVideo()
throws Exception
- Throws:
Exception
deleteVideo
public void deleteVideo()
throws Exception
- Throws:
Exception
saveNewSound
public void saveNewSound()
throws Exception
- Throws:
Exception
saveExistingSound
public void saveExistingSound()
throws Exception
- Throws:
Exception
deleteSound
public void deleteSound()
throws Exception
- Throws:
Exception
saveNewStreaming
public void saveNewStreaming()
throws Exception
- Throws:
Exception
saveExistingStreaming
public void saveExistingStreaming()
throws Exception
- Throws:
Exception
deleteStreaming
public void deleteStreaming()
throws Exception
- Throws:
Exception
saveStreamingPath
public void saveStreamingPath()
throws Exception
- Throws:
Exception
deleteAllVideoPath
public void deleteAllVideoPath()
throws Exception
- Throws:
Exception
assertMediaType
public void assertMediaType(List<Media> media,
MediaType expectedType,
Class<? extends Media> expectedClass)
assertMediaIdentifiers
public void assertMediaIdentifiers(List<Media> media,
boolean ordered,
String... ids)
Copyright © 2016 Silverpeas. All Rights Reserved.