public class WebServiceTest extends CoserTestAbstract
| Modifier and Type | Field and Description |
|---|---|
protected WebService |
webService |
config, serviceContext, testDirectory| Constructor and Description |
|---|
WebServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertFileExists(String filepath) |
protected void |
assertFileNotExists(String filepath) |
void |
initServices() |
protected void |
registerUploadedResult(String path)
Simule la publication de nouveaux resultats (uplaod client lourd).
|
void |
testExtractDataAsZip()
Test une validation de formulaire web pour extraire parmis toutes les
données celle choisie sous forme de zip.
|
void |
testGetAllZoneSpeciesAndIndicators()
Test des modifications de methodes suite à l'intoduction du
moteur de recherche pour extraire les données.
|
void |
testGetChartCom()
Test que la generation d'un graph fonctionne.
|
void |
testGetChartDataCom()
Test que la generation d'un sous fichier csv à partir du fichier
estcomind fonctionne.
|
void |
testGetChartDataPop()
Test que la generation d'un sous fichier csv à partir du fichier
estcomind fonctionne.
|
void |
testGetChartPop()
Test que la generation d'un graph fonctionne.
|
void |
testGetIndicatorLists()
Test que la recuperation des noms de list pour un indicateur fonctionne.
|
void |
testGetIndicators()
Test de lecture du fichier des indicateurs des resources de test.
|
void |
testGetMapFile()
Test la récupération d'une image parmit les resultat de type "mapReference".
|
void |
testGetZoneMetaInfo()
Test de lecture du fichier de zones de resources de test.
|
void |
testGetZonePictures()
Test de lecture du fichier de zones de resources de test.
|
void |
testGetZones()
Test de lecture du fichier de zones de resources de test.
|
void |
testSourceZip()
Test du contenu du zip de téléchargement des sources.
|
void |
testSourceZipError()
Test du contenu du zip de téléchargement des sources avec erreur
can le projet ne le permet pas.
|
void |
testUploadDirectoryMerge()
Test que les upload successible merge bien les resultats en fonction
des idenfiants des zones auquels ils sont affectés et que les resulats
en conflit sont bien supprimé (avec si besoins leurs selections et projets).
|
cleanDirectory, copyDirectoryContent, createTestProject, getFile, initConfig, initProjectDatabase, openTestProject, setUpClassLoaderprotected WebService webService
public void initServices()
protected void assertFileExists(String filepath)
protected void assertFileNotExists(String filepath)
protected void registerUploadedResult(String path) throws CoserBusinessException
path - result to uploadCoserBusinessExceptionpublic void testGetIndicators()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetZones()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetZonePictures()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetZoneMetaInfo()
throws CoserBusinessException
CoserBusinessExceptionpublic void testUploadDirectoryMerge()
throws CoserBusinessException
CoserBusinessExceptionpublic void testSourceZipError()
throws CoserBusinessException,
IOException
CoserBusinessExceptionIOExceptionpublic void testSourceZip()
throws CoserBusinessException,
IOException
CoserBusinessExceptionIOExceptionpublic void testGetMapFile()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetChartCom()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetChartPop()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetChartDataCom()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetChartDataPop()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetIndicatorLists()
throws CoserBusinessException
CoserBusinessExceptionpublic void testGetAllZoneSpeciesAndIndicators()
throws CoserBusinessException
CoserBusinessExceptionpublic void testExtractDataAsZip()
throws CoserBusinessException
CoserBusinessExceptionCopyright © 2010–2015 Ifremer. All rights reserved.