Commit c9312402 authored by RANNOU's avatar RANNOU 👽
Browse files

[fix] Liquibase/Data: fix test data for PARAMBIO

parent 79da324f
......@@ -112,7 +112,7 @@ public class ProgramServiceWriteTest extends AbstractServiceTest{
if (appliedStrategy.getId() == 10) {
appliedPeriods = appliedStrategy.getAppliedPeriods();
Assert.assertNotNull(appliedPeriods);
Assert.assertEquals(4, appliedPeriods.size());
Assert.assertEquals(3, appliedPeriods.size());
LocationVO location = new LocationVO();
Beans.copyProperties(referentialService.get(Location.class, 23), location);
......
......@@ -73,7 +73,7 @@ public class StrategyServiceReadTest extends AbstractServiceTest{
Assert.assertNotNull(appliedStrategy.getLocation());
List<AppliedPeriodVO> appliedPeriods = appliedStrategy.getAppliedPeriods();
Assert.assertNotNull(appliedPeriods);
Assert.assertEquals(4, appliedPeriods.size());
Assert.assertEquals(3, appliedPeriods.size());
AppliedPeriodVO appliedPeriod = appliedPeriods.get(0);
Assert.assertNotNull(appliedPeriod.getStartDate());
}
......
......@@ -32,27 +32,25 @@
<PROGRAM2LOCATION PROGRAM_FK="40" LOCATION_FK="100"/>
<PROGRAM2LOCATION PROGRAM_FK="40" LOCATION_FK="101"/>
<!-- <PROGRAM_PROPERTY ID="54" STATUS_FK="1" PROGRAM_FK="40" CREATION_DATE="2020-09-29" LABEL="sumaris.observedLocation.location.level.ids" NAME="2"/>-->
<PROGRAM_PROPERTY ID="70" STATUS_FK="1" PROGRAM_FK="40" CREATION_DATE="2020-09-29" LABEL="sumaris.simple.strategies.enable" NAME="true"/>
<!-- Strategies / Department / Taxon -->
<STRATEGY ID="30" PROGRAM_FK="40" LABEL="2020_BIO_0001" NAME="2020_BIO_0001" DESCRIPTION="Description Plan #1" ANALYTIC_REFERENCE="EOTP1" STATUS_FK="1" CREATION_DATE="2020-09-29" UPDATE_DATE="2020-09-29"/>
<STRATEGY ID="31" PROGRAM_FK="40" LABEL="2020_BIO_0002" NAME="2020_BIO_0002" DESCRIPTION="Description Plan #2" ANALYTIC_REFERENCE="EOTP1" STATUS_FK="1" CREATION_DATE="2020-09-29" UPDATE_DATE="2020-09-29"/>
<STRATEGY ID="30" PROGRAM_FK="40" LABEL="2020_BIO_0001" NAME="2020_BIO_0001" DESCRIPTION="Description Plan #1" ANALYTIC_REFERENCE="P101-0001-01-DF" STATUS_FK="1" CREATION_DATE="2020-09-29" UPDATE_DATE="2020-09-29"/>
<STRATEGY ID="31" PROGRAM_FK="40" LABEL="2020_BIO_0002" NAME="2020_BIO_0002" DESCRIPTION="Description Plan #2" ANALYTIC_REFERENCE="P101-0002-01-RE" STATUS_FK="1" CREATION_DATE="2020-09-29" UPDATE_DATE="2020-09-29"/>
<STRATEGY2DEPARTMENT ID="1" STRATEGY_FK="30" DEPARTMENT_FK="1" PROGRAM_PRIVILEGE_FK="1" UPDATE_DATE="2020-09-29"/>
<STRATEGY2DEPARTMENT ID="2" STRATEGY_FK="30" DEPARTMENT_FK="3" PROGRAM_PRIVILEGE_FK="2" UPDATE_DATE="2020-09-29"/>
<REFERENCE_TAXON_STRATEGY STRATEGY_FK="30" REFERENCE_TAXON_FK="1006"/>
<!-- AppliedStrategy / Landing Port / Effort -->
<APPLIED_STRATEGY ID="10" STRATEGY_FK="30" LOCATION_FK="22"/>
<!-- AppliedStrategy / Fishing Area / Effort -->
<APPLIED_STRATEGY ID="10" STRATEGY_FK="30" LOCATION_FK="100"/>
<APPLIED_PERIOD APPLIED_STRATEGY_FK="10" START_DATE="2020-01-01" END_DATE="2020-03-31" ACQUISITION_NUMBER="10"/>
<APPLIED_PERIOD APPLIED_STRATEGY_FK="10" START_DATE="2020-04-01" END_DATE="2020-06-30" ACQUISITION_NUMBER="0"/>
<APPLIED_PERIOD APPLIED_STRATEGY_FK="10" START_DATE="2020-07-01" END_DATE="2020-09-30"/>
<APPLIED_PERIOD APPLIED_STRATEGY_FK="10" START_DATE="2020-10-01" END_DATE="2020-12-31" ACQUISITION_NUMBER="5"/>
<!-- AppliedStrategy / Fishing Area -->
<APPLIED_STRATEGY ID="11" STRATEGY_FK="30" LOCATION_FK="100"/>
<APPLIED_STRATEGY ID="12" STRATEGY_FK="30" LOCATION_FK="101"/>
<APPLIED_STRATEGY ID="11" STRATEGY_FK="30" LOCATION_FK="101"/>
<APPLIED_STRATEGY ID="12" STRATEGY_FK="30" LOCATION_FK="102"/>
<!-- PmfmStrategy / Observation -->
<PMFM_STRATEGY ID="500" STRATEGY_FK="30" ACQUISITION_LEVEL_FK="12" PMFM_FK="350" RANK_ORDER="1" ACQUISITION_NUMBER="1" IS_MANDATORY="0"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment