public class MexicoHelperTest extends AbstractIsisFishTest
Modifier and Type | Field and Description |
---|---|
protected org.nuiton.topia.TopiaContext |
regionContext |
dirIsisBase
Constructor and Description |
---|
MexicoHelperTest() |
Modifier and Type | Method and Description |
---|---|
protected fr.ifremer.isisfish.simulator.sensitivity.DesignPlan |
getTestDesignPlan(boolean use40Features,
boolean use401Features)
Get a test design plan composed with all possibles value types.
|
void |
setUpRegion() |
void |
testDiscreteEquationFactor()
Test l'ajout des nouveaux type de facteurs equation discrete.
|
void |
testExportImport()
Test que l'export XML de l'import XML produise le meme xml.
|
void |
testExportImportV2()
Test que l'export XML de l'import XML produise le meme xml.
|
void |
testExportImportV3()
Test que l'export XML de l'import XML produise le meme xml.
|
void |
testExportImportWithGroup()
Test que l'export XML de l'import XML produise le meme xml.
|
void |
testFactorGroupAndRule()
Test le chargement des groupes de facteurs et des facteurs de type
regles depuis isis 4.0.0.0.
|
void |
testFactorRuleParams()
Test le chargement des groupes de facteurs et des facteurs de type
entite (ou autre) sur les parametres de regles.
|
void |
testGetDesignPlanAsXML()
Test method
MexicoHelper.getDesignPlanAsXML(DesignPlan, String...) . |
void |
testGetDesignPlanFromXML()
Test method
MexicoHelper.getDesignPlanFromXML(File, TopiaContext) . |
void |
testGetObjectFormString()
Test que lors de la lecture du design plan, les types representés en string
seront correctement convertit en objets.
|
void |
testGetStringFromObject()
Test la representation string d'un object dans le format mexico.
|
void |
testPercentageMinMaxFactor()
Test l'ajout des nouveaux type de facteurs, min/max et pourcentage.
|
void |
validOutputXml()
Test que le xml généré est valide avec la xsd mexico (exp design).
|
clean, getCurrentDatabaseDirectory, getFreemarkerConfiguration, getTestDirectory, init, resetConfig
public void setUpRegion()
protected fr.ifremer.isisfish.simulator.sensitivity.DesignPlan getTestDesignPlan(boolean use40Features, boolean use401Features) throws fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
use40Features
- build design plan with sub factor groupsuse401Features
- build plan with distribution definitionfr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testGetDesignPlanAsXML() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
MexicoHelper.getDesignPlanAsXML(DesignPlan, String...)
.
Sans groupe de facteur, tel qu'il était en 3.3.0.0.IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testGetDesignPlanFromXML() throws IOException
MexicoHelper.getDesignPlanFromXML(File, TopiaContext)
.
Sans groupe de facteur.IOException
public void testExportImport() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testFactorGroupAndRule() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testExportImportWithGroup() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testFactorRuleParams() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testPercentageMinMaxFactor() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
- This test may fail because of date delay by one seconds due to slow testingpublic void testDiscreteEquationFactor() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testExportImportV2() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
public void testGetStringFromObject()
public void testGetObjectFormString() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaException
public void validOutputXml() throws Exception
Exception
public void testExportImportV3() throws IOException, fr.ifremer.isisfish.IsisFishException, org.nuiton.topia.TopiaException
IOException
fr.ifremer.isisfish.IsisFishException
org.nuiton.topia.TopiaException
Copyright © 1999–2019 CodeLutin. All rights reserved.