Author: tchemit Date: 2011-12-15 22:53:41 +0100 (Thu, 15 Dec 2011) New Revision: 197 Url: http://forge.codelutin.com/repositories/revision/echobase/197 Log: - rename LoaderTest to LoaderIT (otherwise run-loaders profile can not work) - fill Gear references - prepare Operation model Added: trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/GearLoader.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderIT.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderIT.java trunk/echobase-tools/src/test/resources/csv/new/input-Gear.csv Removed: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderTest.java trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderTest.java Modified: trunk/echobase-entities/src/main/java/fr/ifremer/echobase/EchoBaseDecoratorProvider.java trunk/echobase-entities/src/main/java/fr/ifremer/echobase/entities/EntitiesUtil.java trunk/echobase-entities/src/main/resources/i18n/echobase-entities_fr_FR.properties trunk/echobase-entities/src/main/xmi/echobase.zargo trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/CsvModelUtil.java trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/EntityCsvModel.java trunk/echobase-tools/pom.xml trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/EchotypeLoader.java trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoader.java trunk/src/doc/reunions/reunion-2011-12-14.txt Modified: trunk/echobase-entities/src/main/java/fr/ifremer/echobase/EchoBaseDecoratorProvider.java =================================================================== --- trunk/echobase-entities/src/main/java/fr/ifremer/echobase/EchoBaseDecoratorProvider.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-entities/src/main/java/fr/ifremer/echobase/EchoBaseDecoratorProvider.java 2011-12-15 21:53:41 UTC (rev 197) @@ -59,7 +59,6 @@ import fr.ifremer.echobase.entities.references.GearCharacteristic; import fr.ifremer.echobase.entities.references.GearCharacteristicValue; import fr.ifremer.echobase.entities.references.GearMetadata; -import fr.ifremer.echobase.entities.references.GearType; import fr.ifremer.echobase.entities.references.Impacte; import fr.ifremer.echobase.entities.references.LengthAgeKey; import fr.ifremer.echobase.entities.references.MeasureType; @@ -169,9 +168,6 @@ // GearMetadataValue decorator registerJXPathDecorator(locale, GearMetadataValue.class, "${dataValue}$s"); - // GearType decorator - registerJXPathDecorator(locale, GearType.class, "${name}$s"); - // Impacte decorator registerJXPathDecorator(locale, Impacte.class, "${measurementUnit}$s - ${species.genusSpecies}"); Modified: trunk/echobase-entities/src/main/java/fr/ifremer/echobase/entities/EntitiesUtil.java =================================================================== --- trunk/echobase-entities/src/main/java/fr/ifremer/echobase/entities/EntitiesUtil.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-entities/src/main/java/fr/ifremer/echobase/entities/EntitiesUtil.java 2011-12-15 21:53:41 UTC (rev 197) @@ -105,7 +105,6 @@ result.add(EchoBaseEntityEnum.CellMethod); result.add(EchoBaseEntityEnum.AcousticInstrument); result.add(EchoBaseEntityEnum.CategoryType); - result.add(EchoBaseEntityEnum.GearType); result.add(EchoBaseEntityEnum.CategoryMeaning); result.add(EchoBaseEntityEnum.Species); result.add(EchoBaseEntityEnum.GearCharacteristic); @@ -173,6 +172,7 @@ result.add(EchoBaseEntityEnum.DataMetadata); result.add(EchoBaseEntityEnum.OperationMetadata); result.add(EchoBaseEntityEnum.GearMetadata); + result.add(EchoBaseEntityEnum.Gear); return result.toArray(new EchoBaseEntityEnum[result.size()]); } Modified: trunk/echobase-entities/src/main/resources/i18n/echobase-entities_fr_FR.properties =================================================================== --- trunk/echobase-entities/src/main/resources/i18n/echobase-entities_fr_FR.properties 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-entities/src/main/resources/i18n/echobase-entities_fr_FR.properties 2011-12-15 21:53:41 UTC (rev 197) @@ -5,6 +5,7 @@ echobase.common.acousticDensityUnit= echobase.common.acousticInstrument= echobase.common.acquisitionSoftwareVersion= +echobase.common.active= echobase.common.addOffset= echobase.common.admin=Administrateur echobase.common.age= @@ -26,6 +27,7 @@ echobase.common.calendar= echobase.common.calibration=calibration echobase.common.callsign= +echobase.common.casinoGearName= echobase.common.category= echobase.common.categoryMeaning= echobase.common.categoryRef= @@ -78,11 +80,13 @@ echobase.common.exportQuery=Requête d'export echobase.common.exportQueryDTO= echobase.common.fillValue= +echobase.common.fishingGear= echobase.common.flagMeanings= echobase.common.frequency= echobase.common.gear= echobase.common.gearCharacteristic= echobase.common.gearCharacteristicValue= +echobase.common.gearClassification= echobase.common.gearMetadata= echobase.common.gearMetadataValue= echobase.common.gearShootingEndLatitude= @@ -108,6 +112,7 @@ echobase.common.institution=Institution echobase.common.invalidSince= echobase.common.keywords=Môts clefs +echobase.common.label= echobase.common.lastModifiedDate=Date de dernière modification echobase.common.lastModifiedUser=Utilisateur de dernière modification echobase.common.length= @@ -153,6 +158,7 @@ echobase.common.operator= echobase.common.organisationLevelAcknowledgements= echobase.common.organisationReferences= +echobase.common.parentGear= echobase.common.password=Mot de passe echobase.common.percentAtAge= echobase.common.pingDutyCycle= @@ -196,6 +202,7 @@ echobase.common.startLocality= echobase.common.startPort= echobase.common.startTime= +echobase.common.status= echobase.common.strata= echobase.common.taxonCode= echobase.common.taxonFatherMemocode= @@ -205,6 +212,7 @@ echobase.common.timeCoverageStart= echobase.common.title= echobase.common.tonnage= +echobase.common.towed= echobase.common.transceiverAcquisitionAbsorption= echobase.common.transceiverAcquisitionAbsorptionDescription= echobase.common.transceiverAcquisitionGain= @@ -240,6 +248,7 @@ echobase.common.type= echobase.common.unit= echobase.common.units= +echobase.common.updateDate= echobase.common.validMax= echobase.common.validMin= echobase.common.validSince= Modified: trunk/echobase-entities/src/main/xmi/echobase.zargo =================================================================== (Binary files differ) Modified: trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/CsvModelUtil.java =================================================================== --- trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/CsvModelUtil.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/CsvModelUtil.java 2011-12-15 21:53:41 UTC (rev 197) @@ -40,6 +40,7 @@ import java.text.ParseException; import java.util.Collection; +import java.util.Date; import java.util.Locale; import java.util.Map; @@ -83,6 +84,55 @@ return new AssociationValueParserFormatter<E>(entityType, universe); } + public static final ValueParser<Date> IMPORT_DAY = new DateValue("dd/MM/yy"); + + public static class BooleanParserFormatter extends NullableParserFormatter<Boolean> { + + public BooleanParserFormatter(Boolean defaultValue, boolean nullAllowed) { + super(defaultValue, nullAllowed); + } + + @Override + public String format(Boolean bool) { + String value; + if (bool == null) { + if (nullAllowed) { + value = "?"; + } else { + throw new IllegalArgumentException(); + } + } else if (bool) { + value = "Y"; + } else { + value = "N"; + } + return value; + } + + @Override + protected Boolean parseNoneEmptyValue(String value) { + Boolean result; + if ("?".equals(value)) { + result = null; + } else if ("Y".equals(value)) { + result = true; + } else if ("N".equals(value)) { + result = false; + } else { + result = Boolean.parseBoolean(value); + } + return result; + } + } + + public static final ValueParser<Boolean> INT_TO_BOOLEAN_PARSER = new ValueParser<Boolean>() { + + @Override + public Boolean parse(String value) { + return "1".equals(value); + } + }; + public static class AssociationValueParserFormatter<E extends TopiaEntity> implements ValueParserFormatter<Collection<E>> { protected final Class<E> entityType; Modified: trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/EntityCsvModel.java =================================================================== --- trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/EntityCsvModel.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-services/src/main/java/fr/ifremer/echobase/services/models/EntityCsvModel.java 2011-12-15 21:53:41 UTC (rev 197) @@ -30,6 +30,7 @@ import org.nuiton.util.csv.ImportExportModel; import org.nuiton.util.csv.ImportableColumn; import org.nuiton.util.csv.ModelBuilder; +import org.nuiton.util.csv.ValueParser; import java.util.Collection; import java.util.Date; @@ -232,6 +233,10 @@ return modelBuilder.newMandatoryColumn(headerName, headerName); } + public <T> ImportableColumn<E, T> newMandatoryColumn(String headerName, String propertyName, ValueParser<T> valueParser) { + return modelBuilder.newMandatoryColumn(headerName, valueParser, CsvModelUtil.<E, T>newBeanProperty(propertyName)); + } + protected EntityCsvModel(char separator, TableMeta tableMeta) { this.separator = separator; Modified: trunk/echobase-tools/pom.xml =================================================================== --- trunk/echobase-tools/pom.xml 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/pom.xml 2011-12-15 21:53:41 UTC (rev 197) @@ -132,37 +132,21 @@ </plugin> </plugins> </pluginManagement> - - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <excludes> - <excludes>**/*LoaderTest.java</excludes> - </excludes> - </configuration> - </plugin> - </plugins> </build> <profiles> <profile> <id>run-loaders</id> - <activation> - <property> - <name>runLoaders</name> - <value>true</value> - </property> - </activation> <build> + <defaultGoal>test</defaultGoal> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> - <include>**/*LoaderTest.java</include> + <include>**/*LoaderIT.java</include> </includes> </configuration> </plugin> Modified: trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/EchotypeLoader.java =================================================================== --- trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/EchotypeLoader.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/EchotypeLoader.java 2011-12-15 21:53:41 UTC (rev 197) @@ -42,162 +42,10 @@ */ public class EchotypeLoader extends EntityLoader<Echotype> { -// /** Logger. */ -// private static final Log log = -// LogFactory.getLog(EchotypeLoader.class); - public EchotypeLoader() { super(Echotype.class, FileType.NEW); } -// @Override -// protected void importBaracoudaEntities(Database db) throws IOException, TopiaException { -// -// // require referenceDatum, dataType and cellMethod -// -// TopiaContext tx = serviceContext.getTransaction(); -// -// List<DepthStratum> allDepthStratum = EchoBaseDAOHelper.getDepthStratumDAO(tx).findAll(); -// ImmutableMap<String, DepthStratum> depthStratumsById = Maps.uniqueIndex(allDepthStratum, EchoBaseFunctions.DEPTH_STRATUM_ID); -// -// List<EchotypeCategory> allEchotypeCategory = EchoBaseDAOHelper.getEchotypeCategoryDAO(tx).findAll(); -// ImmutableMap<String, EchotypeCategory> categoriesByName = Maps.uniqueIndex(allEchotypeCategory, EchoBaseFunctions.ECHO_TYPE_CATEGORY_NAME); -// -// // get all descriptions of echotyped indexed by their id -// Map<Integer, Map<String, Object>> descriptEchoById = Maps.uniqueIndex( -// db.getTable("EIT_DESCRIPT_ECHOS"), EchoBaseFunctions.newRowIntegerFunction("ID_DESCRIPTION_DEVIATION")); -// -// // obtain Species fro table ESPECE_ECHOS -// ImmutableListMultimap<Integer, Map<String, Object>> especeEchoById = Multimaps.index( -// db.getTable("ESPECE_ECHOS"), EchoBaseFunctions.newRowIntegerFunction("CODE_DESCRIPTION_DEVIATION")); -// -// -// Set<Integer> ids = descriptEchoById.keySet(); -// -// // obtain for each id the corresponding name in EIT_VALEUR_ECHOS -// Map<Integer, String> pairs = Maps.newTreeMap(); -// for (Map<String, Object> row : db.getTable("EIT_VALEUR_ECHOS")) { -// Integer id = (Integer) row.get("ID_DESCRIPTION_DEVIATION"); -// String name = (String) row.get("LIBELLE_DEVIATION"); -// if (!pairs.containsKey(id)) { -// -// // this id is new push the name -// pairs.put(id, name); -// if (pairs.size() == ids.size()) { -// // ok all ids are covered -// break; -// } -// } -// } -// -// SpeciesDAO speciesDAO = EchoBaseDAOHelper.getSpeciesDAO(tx); -// -// TopiaDAO<Echotype> dao = getDAO(); -// -// List<Echotype> echotypes = Lists.newArrayList(); -// -// Set<String> missingDepthStratum = Sets.newHashSet(); -// Set<String> missingCategories = Sets.newHashSet(); -// Set<String> missingSpecies = Sets.newHashSet(); -// -// // to get a cache of species -// Map<String, Species> speciesMap = Maps.newTreeMap(); -// -// for (Map.Entry<Integer, Map<String, Object>> entry : descriptEchoById.entrySet()) { -// Map<String, Object> row = entry.getValue(); -// -// Integer id = entry.getKey(); -// -// String name = pairs.get(id); -// -// String meaning = (String) row.get("LIBELLE_DESCRIPTION_DEVIATION"); -// -// // get echotype category -// String categoryId = (String) row.get("TYPE_DEVIATION"); -// EchotypeCategory echotypeCategory = categoriesByName.get(categoryId.toLowerCase()); -// if (echotypeCategory == null) { -// missingCategories.add(categoryId); -// } -// -// // get echotype depthstratum -// String depthStratumId = (String) row.get("IMAGES"); -// DepthStratum depthStratum = depthStratumsById.get(depthStratumId.toLowerCase()); -// if (depthStratum == null) { -// missingDepthStratum.add(depthStratumId); -// } -// -// // get all species for this id -// ImmutableList<Map<String, Object>> speciesRows = especeEchoById.get(id); -// for (Map<String, Object> speciesRow : speciesRows) { -// -// String speciesId = (String) speciesRow.get("GENRE_ESP"); -// Species species; -// if (speciesMap.containsKey(speciesId.toLowerCase())) { -// -// // already in cache (even if was a not found species) -// species = speciesMap.get(speciesId.toLowerCase()); -// } else { -// -// // first time this species is requested -// species = speciesDAO.findByBaracoudaCode(speciesId); -// -// if (species == null) { -// missingSpecies.add(speciesId); -// } -// speciesMap.put(speciesId.toLowerCase(), species); -// } -// -// Echotype echotype = dao.create(Echotype.PROPERTY_ID, id, -// Echotype.PROPERTY_NAME, name -// ); -// -// echotype.setSpecies(species); -// echotype.setMeaning(meaning); -// echotype.setSpecies(species); -// echotype.setEchotypeCategory(echotypeCategory); -// echotype.setDepthStratum(depthStratum); -// -// echotypes.add(echotype); -// } -// } -// -// if (!missingDepthStratum.isEmpty()) { -// -// // there is some missing id in this table -// List<String> missingDepthStratumList = Lists.newArrayList(missingDepthStratum); -// Collections.sort(missingDepthStratumList); -// -// if (log.isWarnEnabled()) { -// log.warn("There is " + missingDepthStratumList.size() + " missing depth stratum ids in table EIT_DESCRIPT_ECHOS : " + missingDepthStratumList); -// } -// } -// if (!missingCategories.isEmpty()) { -// -// // there is some missing id in this table -// List<String> missingCategoriesList = Lists.newArrayList(missingDepthStratum); -// Collections.sort(missingCategoriesList); -// -// if (log.isWarnEnabled()) { -// log.warn("There is " + missingCategories.size() + " missing echotypecategories ids in table EIT_DESCRIPT_ECHOS : " + missingCategoriesList); -// } -// } -// -// if (!missingSpecies.isEmpty()) { -// -// // there is some missing id in this table -// List<String> missingSpeciesList = Lists.newArrayList(missingSpecies); -// Collections.sort(missingSpeciesList); -// -// if (log.isWarnEnabled()) { -// log.warn("There is " + missingSpeciesList.size() + " missing species baracouda codesids in table ESPECE_ECHOS : " + missingSpeciesList); -// } -// } -// -// if (log.isInfoEnabled()) { -// log.info("Found " + echotypes.size() + " Echotype(s)."); -// } -// } - @Override protected EntityCsvModel<Echotype> createCsvImportModel(TableMeta meta) { Added: trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/GearLoader.java =================================================================== --- trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/GearLoader.java (rev 0) +++ trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/GearLoader.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,72 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.meta.TableMeta; +import fr.ifremer.echobase.entities.references.Gear; +import fr.ifremer.echobase.services.models.CsvModelUtil; +import fr.ifremer.echobase.services.models.EntityCsvModel; +import fr.ifremer.echobase.tools.FileType; + +import java.util.Date; + +/** + * {@link Gear} loader. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class GearLoader extends EntityLoader<Gear> { + + public GearLoader() { + super(Gear.class, FileType.NEW); + } + + @Override + protected EntityCsvModel<Gear> createCsvImportModel(TableMeta meta) { + + EntityCsvModel<Gear> model = EntityCsvModel.newModel( + getCsvSeparator(), + meta + ); + + /* + CasinoGearName;ValidSince;InvalidSince;IsFishingGear;gearLabel;GearName;Description;UpdateDate;GearClassification;ParentGear;Status;IsActive;IsTowed + */ + model.newMandatoryColumn("CasinoGearName", Gear.PROPERTY_CASINO_GEAR_NAME); + model.newMandatoryColumn("ValidSince", Gear.PROPERTY_VALID_SINCE, CsvModelUtil.IMPORT_DAY); + model.newMandatoryColumn("InvalidSince", Gear.PROPERTY_INVALID_SINCE, CsvModelUtil.IMPORT_DAY); + model.newMandatoryColumn("IsFishingGear", Gear.PROPERTY_FISHING_GEAR, CsvModelUtil.INT_TO_BOOLEAN_PARSER); + model.newMandatoryColumn("gearLabel", Gear.PROPERTY_LABEL); + model.newMandatoryColumn("GearName", Gear.PROPERTY_NAME); + model.newMandatoryColumn("Description", Gear.PROPERTY_DESCRIPTION); + model.addDefaultColumn("UpdateDate", Gear.PROPERTY_UPDATE_DATE, Date.class); + model.addDefaultColumn("GearClassification", Gear.PROPERTY_GEAR_CLASSIFICATION, int.class); + model.addDefaultColumn("ParentGear", Gear.PROPERTY_PARENT_GEAR, int.class); + model.addDefaultColumn("Status", Gear.PROPERTY_STATUS, int.class); + model.newMandatoryColumn("IsActive", Gear.PROPERTY_ACTIVE, CsvModelUtil.INT_TO_BOOLEAN_PARSER); + model.newMandatoryColumn("IsTowed", Gear.PROPERTY_TOWED, CsvModelUtil.INT_TO_BOOLEAN_PARSER); + return model; + } +} \ No newline at end of file Property changes on: trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/GearLoader.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Modified: trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoader.java =================================================================== --- trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoader.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/main/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoader.java 2011-12-15 21:53:41 UTC (rev 197) @@ -55,7 +55,7 @@ model.newMandatoryColumn("sampleDataType", SampleDataType.PROPERTY_NAME); model.newMandatoryColumn("sampleDataTypeMeaningFr",SampleDataType.PROPERTY_MEANING_FR); model.newMandatoryColumn("Units",SampleDataType.PROPERTY_UNITS); - model.newMandatoryColumn("Precision",SampleDataType.PROPERTY_UNITS); + model.newMandatoryColumn("Precision",SampleDataType.PROPERTY_PRECISION); return model; } } \ No newline at end of file Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,376 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import com.google.common.base.Preconditions; +import com.google.common.collect.Lists; +import com.google.common.collect.Sets; +import com.healthmarketscience.jackcess.Database; +import fr.ifremer.echobase.entities.EchoBaseEntityEnum; +import fr.ifremer.echobase.entities.meta.AssociationMeta; +import fr.ifremer.echobase.entities.meta.DbMeta; +import fr.ifremer.echobase.entities.meta.MetaFilenameAware; +import fr.ifremer.echobase.entities.meta.TableMeta; +import fr.ifremer.echobase.services.CsvImportResult; +import fr.ifremer.echobase.tools.AbstractToolTest; +import fr.ifremer.echobase.tools.FileType; +import fr.ifremer.echobase.tools.TestHelper; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.junit.Assert; +import org.junit.Assume; +import org.junit.Before; +import org.junit.BeforeClass; +import org.nuiton.topia.TopiaException; +import org.nuiton.topia.persistence.TopiaDAO; +import org.nuiton.topia.persistence.TopiaEntity; +import org.nuiton.util.FileUtil; + +import java.io.File; +import java.io.IOException; +import java.text.ParseException; +import java.util.List; +import java.util.Set; + +/** + * Abstract entity loader test. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public abstract class AbstractLoaderIT<E extends TopiaEntity, L extends EntityLoader<E>> extends AbstractToolTest { + + /** Logger. */ + private static final Log log = + LogFactory.getLog(AbstractLoaderIT.class); + + protected static File msAccessFile; + + protected File exportdir; + + protected L loader; + + private final Class<L> loaderType; + + private Database db; + + protected final long expectedNewEntities; + + protected final long expectedBaracoudaEntities; + + protected boolean loadDependencies = true; + + protected List<EntityLoader<?>> entityLoaders; + + + @BeforeClass + public static void beforeClass() { + + AbstractToolTest.beforeClass(); + + msAccessFile = FileUtil.getFileFromPaths(TestHelper.getBasedir(), + "src", + "test", + "private", + "baracouda.mdb" + ); + if (!msAccessFile.exists()) { + if (log.isWarnEnabled()) { + log.warn("Could not find " + msAccessFile + + ", the test will be skip."); + } + } + Assume.assumeTrue(msAccessFile.exists()); + } + + @Before + public void setUp() throws Exception { + + super.setUp(); + + exportdir = new File(testdir, "export"); + + // exportdir should not exist + Assert.assertFalse(exportdir.exists()); + + // creates it + FileUtil.createDirectoryIfNecessary(exportdir); + + // get loader + loader = newService(loaderType); + + if (loadDependencies) { + loadDependencies(); + } + } + + protected AbstractLoaderIT(Class<L> loaderType, + long expectedNewEntities, + long expectedBaracoudaEntities) { + this.loaderType = loaderType; + this.expectedNewEntities = expectedNewEntities; + this.expectedBaracoudaEntities = expectedBaracoudaEntities; + } + + protected void generateNewEntities() throws Exception { + Assume.assumeTrue(loader.canGenerateNew()); + + File inFile = new File(testdir, "input-" + loader.getEntityType().name() + ".csv"); + File outFile = getTableFile(FileType.NEW); + Assert.assertFalse(inFile.exists()); + Assert.assertFalse(outFile.exists()); + + loader.copyStreamToFile(inFile, FileType.NEW); + + // input file now exists + Assert.assertTrue(inFile.exists()); + + loader.generateNewEntities(inFile, exportdir, true); + + long beforeCount = getDAO().count(); + + // no species in initial db + Assert.assertEquals(0, beforeCount); + + importEntities(outFile, expectedNewEntities); + } + + protected void generateBaracoudaEntities() throws Exception { + + File outFile = getTableFile(FileType.BARACOUDA); + Assert.assertFalse(outFile.exists()); + + long beforeCount = getDAO().count(); + + // no species in initial db + Assert.assertEquals(0, beforeCount); + + launchEntitiesFromBaracouda(loader, getDb(), exportdir); + + importEntities(outFile, expectedBaracoudaEntities); + } + + protected void launchEntitiesFromBaracouda(L loader, + Database db, + File exportdir) throws IOException, TopiaException, ParseException { + loader.generateBaracoudaEntities(db, exportdir, true); + } + + protected void loadDependencies() throws IOException, TopiaException { + Set<MetaFilenameAware> dones = Sets.newHashSet(); + loadDependencies(dones); + } + + protected void loadDependencies(Set<MetaFilenameAware> dones) throws IOException, TopiaException { + + for (EchoBaseEntityEnum dependency : loader.getDependencies()) { + loadDependencies(dependency, dones); + } + for (EchoBaseEntityEnum dependency : loader.getExtraDependencies()) { + loadDependencies(dependency, dones); + } + AssociationMeta parentAssociationMeta = + loader.getParentAssociationMeta(); + if (parentAssociationMeta != null) { + loadDependencies(parentAssociationMeta.getSource(), dones); + } + } + + protected void loadDependencies(EchoBaseEntityEnum dependency, + Set<MetaFilenameAware> dones) throws IOException, TopiaException { + DbMeta dbMeta = serviceContext.getDbMeta(); + TableMeta meta = dbMeta.getTable(dependency); + loadDependencies(meta, dones); + } + + private void loadDependencies(MetaFilenameAware meta, + Set<MetaFilenameAware> dones) throws IOException, TopiaException { + + + // mark it as load (to prevent reloading of it twice) + if (!dones.add(meta)) { + + // was already loaded + if (log.isDebugEnabled()) { + log.debug("Skip already loaded type " + meta); + } + return; + } + + EntityLoader<? extends TopiaEntity> entityLoader = + getEntityLoader(meta.getSource().getContract()); + + if (meta instanceof AssociationMeta) { + + // import association + + loadDependencies(meta.getSource(), dones); + loadDependencies(((AssociationMeta) meta).getTarget(), dones); + entityLoader.copyAndLoadEntities(exportdir, meta, true, FileType.ASSOCIATION); + + } else { + + // load dependencies before + for (EchoBaseEntityEnum dependency : entityLoader.getDependencies()) { + loadDependencies(dependency, dones); + } + // load extra dependencies before + for (EchoBaseEntityEnum dependency : entityLoader.getExtraDependencies()) { + loadDependencies(dependency, dones); + } + + if (log.isDebugEnabled()) { + log.debug("Load for " + meta); + } + + if (entityLoader.canGenerateNew()) { + + // copy and load new stuff + entityLoader.copyAndLoadEntities(exportdir, meta, true, FileType.NEW); + } + + if (entityLoader.canGenerateBaracouda()) { + + // copy and load of baracouda stuff + entityLoader.copyAndLoadEntities(exportdir, meta, true, FileType.BARACOUDA); + } + + // load associations + AssociationMeta parentAssociationMeta = + entityLoader.getParentAssociationMeta(); + if (parentAssociationMeta != null) { + loadDependencies(parentAssociationMeta, dones); + } + } + + } + + private TopiaDAO<E> getDAO() throws TopiaException { + return getDao(loader.getEntityClass()); + } + + private File getTableFile(FileType fileType) throws IOException { + + File outFile = loader.getTableFile(exportdir, loader.getMeta(), fileType); + return outFile; + } + + protected void importEntities(File inFile, + long nbExpected) throws IOException, TopiaException { + + TopiaDAO<E> dao = getDAO(); + + // input file now exists + Assert.assertTrue(inFile.exists()); + + long beforeCount = dao.count(); + + // no species in initial db + Assert.assertEquals(0, beforeCount); + + if (log.isInfoEnabled()) { + log.info("Import " + inFile); + } + CsvImportResult csvImportResult = getService().importDatas( + loader.getEntityType(), + inFile.getAbsolutePath(), + inFile, + true, + null + ); + Assert.assertNotNull(csvImportResult); + + long afterCount = dao.count(); + + // nbExpected entities after import + Assert.assertEquals(nbExpected, afterCount); + + // no entity updated + Assert.assertEquals(0, csvImportResult.getNumberUpdated()); + + // all entities created + Assert.assertEquals(afterCount, csvImportResult.getNumberCreated()); + } + + protected Database getDb() throws IOException { + if (db == null) { + db = Database.open(msAccessFile); + } + return db; + } + + public <E extends TopiaEntity> EntityLoader<E> getEntityLoader(Class<E> entityClass) { + EntityLoader<E> result = null; + for (EntityLoader<?> entityLoader : getEntityLoaders()) { + if (entityClass.equals(entityLoader.getEntityType().getContract())) { + result = (EntityLoader<E>) entityLoader; + break; + } + } + Preconditions.checkNotNull(result, "Could not find EntityLoader for " + + entityClass.getName()); + return result; + } + + public List<EntityLoader<?>> getEntityLoaders() { + if (entityLoaders == null) { + entityLoaders = Lists.newArrayList(); + entityLoaders.add(newService(SpeciesLoader.class)); + entityLoaders.add(newService(MissionLoader.class)); + entityLoaders.add(newService(AreaOfOperationLoader.class)); + entityLoaders.add(newService(AcousticInstrumentLoader.class)); + entityLoaders.add(newService(DepthStratumLoader.class)); + entityLoaders.add(newService(DataQualityLoader.class)); + entityLoaders.add(newService(ReferenceDatumTypeLoader.class)); + entityLoaders.add(newService(ReferenceDatumLoader.class)); + entityLoaders.add(newService(DataTypeLoader.class)); + entityLoaders.add(newService(CellTypeLoader.class)); + entityLoaders.add(newService(CellMethodLoader.class)); + entityLoaders.add(newService(DataMetadataLoader.class)); + entityLoaders.add(newService(TSParametersLoader.class)); + entityLoaders.add(newService(StrataLoader.class)); + entityLoaders.add(newService(EchotypeCategoryLoader.class)); + entityLoaders.add(newService(EchotypeLoader.class)); + entityLoaders.add(newService(VesselTypeLoader.class)); + entityLoaders.add(newService(VesselLoader.class)); + entityLoaders.add(newService(OperationEventLoader.class)); + entityLoaders.add(newService(SampleDataTypeLoader.class)); + entityLoaders.add(newService(SampleTypeLoader.class)); + entityLoaders.add(newService(BiometryScaleLoader.class)); + entityLoaders.add(newService(SexCategoryLoader.class)); + entityLoaders.add(newService(SizeCategoryLoader.class)); + entityLoaders.add(newService(OperationMetadataLoader.class)); + entityLoaders.add(newService(GearMetadataLoader.class)); + + entityLoaders.add(newService(VoyageLoader.class)); + entityLoaders.add(newService(TransitLoader.class)); + entityLoaders.add(newService(TransectLoader.class)); + entityLoaders.add(newService(DataAcquisitionLoader.class)); + entityLoaders.add(newService(DataProcessingLoader.class)); + entityLoaders.add(newService(CellLoader.class)); + } + return entityLoaders; + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AbstractLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,376 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import com.google.common.base.Preconditions; -import com.google.common.collect.Lists; -import com.google.common.collect.Sets; -import com.healthmarketscience.jackcess.Database; -import fr.ifremer.echobase.entities.EchoBaseEntityEnum; -import fr.ifremer.echobase.entities.meta.AssociationMeta; -import fr.ifremer.echobase.entities.meta.DbMeta; -import fr.ifremer.echobase.entities.meta.MetaFilenameAware; -import fr.ifremer.echobase.entities.meta.TableMeta; -import fr.ifremer.echobase.services.CsvImportResult; -import fr.ifremer.echobase.tools.AbstractToolTest; -import fr.ifremer.echobase.tools.FileType; -import fr.ifremer.echobase.tools.TestHelper; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.junit.Assert; -import org.junit.Assume; -import org.junit.Before; -import org.junit.BeforeClass; -import org.nuiton.topia.TopiaException; -import org.nuiton.topia.persistence.TopiaDAO; -import org.nuiton.topia.persistence.TopiaEntity; -import org.nuiton.util.FileUtil; - -import java.io.File; -import java.io.IOException; -import java.text.ParseException; -import java.util.List; -import java.util.Set; - -/** - * Abstract entity loader test. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public abstract class AbstractLoaderTest<E extends TopiaEntity, L extends EntityLoader<E>> extends AbstractToolTest { - - /** Logger. */ - private static final Log log = - LogFactory.getLog(AbstractLoaderTest.class); - - protected static File msAccessFile; - - protected File exportdir; - - protected L loader; - - private final Class<L> loaderType; - - private Database db; - - protected final long expectedNewEntities; - - protected final long expectedBaracoudaEntities; - - protected boolean loadDependencies = true; - - protected List<EntityLoader<?>> entityLoaders; - - - @BeforeClass - public static void beforeClass() { - - AbstractToolTest.beforeClass(); - - msAccessFile = FileUtil.getFileFromPaths(TestHelper.getBasedir(), - "src", - "test", - "private", - "baracouda.mdb" - ); - if (!msAccessFile.exists()) { - if (log.isWarnEnabled()) { - log.warn("Could not find " + msAccessFile + - ", the test will be skip."); - } - } - Assume.assumeTrue(msAccessFile.exists()); - } - - @Before - public void setUp() throws Exception { - - super.setUp(); - - exportdir = new File(testdir, "export"); - - // exportdir should not exist - Assert.assertFalse(exportdir.exists()); - - // creates it - FileUtil.createDirectoryIfNecessary(exportdir); - - // get loader - loader = newService(loaderType); - - if (loadDependencies) { - loadDependencies(); - } - } - - protected AbstractLoaderTest(Class<L> loaderType, - long expectedNewEntities, - long expectedBaracoudaEntities) { - this.loaderType = loaderType; - this.expectedNewEntities = expectedNewEntities; - this.expectedBaracoudaEntities = expectedBaracoudaEntities; - } - - protected void generateNewEntities() throws Exception { - Assume.assumeTrue(loader.canGenerateNew()); - - File inFile = new File(testdir, "input-" + loader.getEntityType().name() + ".csv"); - File outFile = getTableFile(FileType.NEW); - Assert.assertFalse(inFile.exists()); - Assert.assertFalse(outFile.exists()); - - loader.copyStreamToFile(inFile, FileType.NEW); - - // input file now exists - Assert.assertTrue(inFile.exists()); - - loader.generateNewEntities(inFile, exportdir, true); - - long beforeCount = getDAO().count(); - - // no species in initial db - Assert.assertEquals(0, beforeCount); - - importEntities(outFile, expectedNewEntities); - } - - protected void generateBaracoudaEntities() throws Exception { - - File outFile = getTableFile(FileType.BARACOUDA); - Assert.assertFalse(outFile.exists()); - - long beforeCount = getDAO().count(); - - // no species in initial db - Assert.assertEquals(0, beforeCount); - - launchEntitiesFromBaracouda(loader, getDb(), exportdir); - - importEntities(outFile, expectedBaracoudaEntities); - } - - protected void launchEntitiesFromBaracouda(L loader, - Database db, - File exportdir) throws IOException, TopiaException, ParseException { - loader.generateBaracoudaEntities(db, exportdir, true); - } - - protected void loadDependencies() throws IOException, TopiaException { - Set<MetaFilenameAware> dones = Sets.newHashSet(); - loadDependencies(dones); - } - - protected void loadDependencies(Set<MetaFilenameAware> dones) throws IOException, TopiaException { - - for (EchoBaseEntityEnum dependency : loader.getDependencies()) { - loadDependencies(dependency, dones); - } - for (EchoBaseEntityEnum dependency : loader.getExtraDependencies()) { - loadDependencies(dependency, dones); - } - AssociationMeta parentAssociationMeta = - loader.getParentAssociationMeta(); - if (parentAssociationMeta != null) { - loadDependencies(parentAssociationMeta.getSource(), dones); - } - } - - protected void loadDependencies(EchoBaseEntityEnum dependency, - Set<MetaFilenameAware> dones) throws IOException, TopiaException { - DbMeta dbMeta = serviceContext.getDbMeta(); - TableMeta meta = dbMeta.getTable(dependency); - loadDependencies(meta, dones); - } - - private void loadDependencies(MetaFilenameAware meta, - Set<MetaFilenameAware> dones) throws IOException, TopiaException { - - - // mark it as load (to prevent reloading of it twice) - if (!dones.add(meta)) { - - // was already loaded - if (log.isDebugEnabled()) { - log.debug("Skip already loaded type " + meta); - } - return; - } - - EntityLoader<? extends TopiaEntity> entityLoader = - getEntityLoader(meta.getSource().getContract()); - - if (meta instanceof AssociationMeta) { - - // import association - - loadDependencies(meta.getSource(), dones); - loadDependencies(((AssociationMeta) meta).getTarget(), dones); - entityLoader.copyAndLoadEntities(exportdir, meta, true, FileType.ASSOCIATION); - - } else { - - // load dependencies before - for (EchoBaseEntityEnum dependency : entityLoader.getDependencies()) { - loadDependencies(dependency, dones); - } - // load extra dependencies before - for (EchoBaseEntityEnum dependency : entityLoader.getExtraDependencies()) { - loadDependencies(dependency, dones); - } - - if (log.isDebugEnabled()) { - log.debug("Load for " + meta); - } - - if (entityLoader.canGenerateNew()) { - - // copy and load new stuff - entityLoader.copyAndLoadEntities(exportdir, meta, true, FileType.NEW); - } - - if (entityLoader.canGenerateBaracouda()) { - - // copy and load of baracouda stuff - entityLoader.copyAndLoadEntities(exportdir, meta, true, FileType.BARACOUDA); - } - - // load associations - AssociationMeta parentAssociationMeta = - entityLoader.getParentAssociationMeta(); - if (parentAssociationMeta != null) { - loadDependencies(parentAssociationMeta, dones); - } - } - - } - - private TopiaDAO<E> getDAO() throws TopiaException { - return getDao(loader.getEntityClass()); - } - - private File getTableFile(FileType fileType) throws IOException { - - File outFile = loader.getTableFile(exportdir, loader.getMeta(), fileType); - return outFile; - } - - protected void importEntities(File inFile, - long nbExpected) throws IOException, TopiaException { - - TopiaDAO<E> dao = getDAO(); - - // input file now exists - Assert.assertTrue(inFile.exists()); - - long beforeCount = dao.count(); - - // no species in initial db - Assert.assertEquals(0, beforeCount); - - if (log.isInfoEnabled()) { - log.info("Import " + inFile); - } - CsvImportResult csvImportResult = getService().importDatas( - loader.getEntityType(), - inFile.getAbsolutePath(), - inFile, - true, - null - ); - Assert.assertNotNull(csvImportResult); - - long afterCount = dao.count(); - - // nbExpected entities after import - Assert.assertEquals(nbExpected, afterCount); - - // no entity updated - Assert.assertEquals(0, csvImportResult.getNumberUpdated()); - - // all entities created - Assert.assertEquals(afterCount, csvImportResult.getNumberCreated()); - } - - protected Database getDb() throws IOException { - if (db == null) { - db = Database.open(msAccessFile); - } - return db; - } - - public <E extends TopiaEntity> EntityLoader<E> getEntityLoader(Class<E> entityClass) { - EntityLoader<E> result = null; - for (EntityLoader<?> entityLoader : getEntityLoaders()) { - if (entityClass.equals(entityLoader.getEntityType().getContract())) { - result = (EntityLoader<E>) entityLoader; - break; - } - } - Preconditions.checkNotNull(result, "Could not find EntityLoader for " + - entityClass.getName()); - return result; - } - - public List<EntityLoader<?>> getEntityLoaders() { - if (entityLoaders == null) { - entityLoaders = Lists.newArrayList(); - entityLoaders.add(newService(SpeciesLoader.class)); - entityLoaders.add(newService(MissionLoader.class)); - entityLoaders.add(newService(AreaOfOperationLoader.class)); - entityLoaders.add(newService(AcousticInstrumentLoader.class)); - entityLoaders.add(newService(DepthStratumLoader.class)); - entityLoaders.add(newService(DataQualityLoader.class)); - entityLoaders.add(newService(ReferenceDatumTypeLoader.class)); - entityLoaders.add(newService(ReferenceDatumLoader.class)); - entityLoaders.add(newService(DataTypeLoader.class)); - entityLoaders.add(newService(CellTypeLoader.class)); - entityLoaders.add(newService(CellMethodLoader.class)); - entityLoaders.add(newService(DataMetadataLoader.class)); - entityLoaders.add(newService(TSParametersLoader.class)); - entityLoaders.add(newService(StrataLoader.class)); - entityLoaders.add(newService(EchotypeCategoryLoader.class)); - entityLoaders.add(newService(EchotypeLoader.class)); - entityLoaders.add(newService(VesselTypeLoader.class)); - entityLoaders.add(newService(VesselLoader.class)); - entityLoaders.add(newService(OperationEventLoader.class)); - entityLoaders.add(newService(SampleDataTypeLoader.class)); - entityLoaders.add(newService(SampleTypeLoader.class)); - entityLoaders.add(newService(BiometryScaleLoader.class)); - entityLoaders.add(newService(SexCategoryLoader.class)); - entityLoaders.add(newService(SizeCategoryLoader.class)); - entityLoaders.add(newService(OperationMetadataLoader.class)); - entityLoaders.add(newService(GearMetadataLoader.class)); - - entityLoaders.add(newService(VoyageLoader.class)); - entityLoaders.add(newService(TransitLoader.class)); - entityLoaders.add(newService(TransectLoader.class)); - entityLoaders.add(newService(DataAcquisitionLoader.class)); - entityLoaders.add(newService(DataProcessingLoader.class)); - entityLoaders.add(newService(CellLoader.class)); - } - return entityLoaders; - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.AcousticInstrument; +import org.junit.Test; + +/** + * To test the {@link AcousticInstrumentLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class AcousticInstrumentLoaderIT extends AbstractLoaderIT<AcousticInstrument, AcousticInstrumentLoader> { + + public AcousticInstrumentLoaderIT() { + super(AcousticInstrumentLoader.class, 0, 20); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AcousticInstrumentLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.AcousticInstrument; -import org.junit.Test; - -/** - * To test the {@link AcousticInstrumentLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class AcousticInstrumentLoaderTest extends AbstractLoaderTest<AcousticInstrument, AcousticInstrumentLoader> { - - public AcousticInstrumentLoaderTest() { - super(AcousticInstrumentLoader.class, 0, 20); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.AreaOfOperation; +import org.junit.Test; + +/** + * To test the {@link AreaOfOperationLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class AreaOfOperationLoaderIT extends AbstractLoaderIT<AreaOfOperation, AreaOfOperationLoader> { + + public AreaOfOperationLoaderIT() { + super(AreaOfOperationLoader.class, 0, 5); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/AreaOfOperationLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.AreaOfOperation; -import org.junit.Test; - -/** - * To test the {@link AreaOfOperationLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class AreaOfOperationLoaderTest extends AbstractLoaderTest<AreaOfOperation, AreaOfOperationLoader> { - - public AreaOfOperationLoaderTest() { - super(AreaOfOperationLoader.class, 0, 5); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.BiometryScale; +import org.junit.Test; + +/** + * To test the {@link BiometryScaleLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class BiometryScaleLoaderIT extends AbstractLoaderIT<BiometryScale, BiometryScaleLoader> { + + public BiometryScaleLoaderIT() { + super(BiometryScaleLoader.class, 44, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/BiometryScaleLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.BiometryScale; -import org.junit.Test; - -/** - * To test the {@link BiometryScaleLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class BiometryScaleLoaderTest extends AbstractLoaderTest<BiometryScale, BiometryScaleLoader> { - - public BiometryScaleLoaderTest() { - super(BiometryScaleLoader.class, 44, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderIT.java (from rev 196, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,233 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import com.google.common.base.Function; +import com.google.common.collect.Collections2; +import com.google.common.collect.Lists; +import com.healthmarketscience.jackcess.Database; +import fr.ifremer.echobase.EchoBaseIOUtil; +import fr.ifremer.echobase.entities.EchoBaseEntityEnum; +import fr.ifremer.echobase.entities.data.Cell; +import fr.ifremer.echobase.entities.data.DataProcessing; +import fr.ifremer.echobase.entities.meta.AssociationMeta; +import fr.ifremer.echobase.entities.meta.MetaFilenameAware; +import fr.ifremer.echobase.entities.meta.TableMeta; +import fr.ifremer.echobase.services.DbEditorService; +import fr.ifremer.echobase.tools.FileType; +import fr.ifremer.echobase.tools.TestHelper; +import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.junit.AfterClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.nuiton.topia.TopiaException; + +import java.io.File; +import java.io.IOException; +import java.text.ParseException; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +/** + * To test {@link CellLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +@RunWith(Parameterized.class) +public class CellLoaderIT extends AbstractLoaderIT<Cell, CellLoader> { + + /** Logger. */ + private static final Log log = + LogFactory.getLog(CellLoaderIT.class); + + /** Id of data processing to treat. */ + private String dataProcessingId; + + @Parameterized.Parameters + public static List<Object[]> data() { + return Arrays.asList(new Object[][]{ + {"EIT_00_38", 0}, + {"EIT_01_38", 0}, + {"EIT_02_38", 0}, + {"EIT_03_38", 0}, + {"EIT_0310_38", 0}, + {"EIT_04_38", 0}, + {"EIT_05_38", 0}, + {"EIT_0510_38", 0}, // with no region + {"EIT_06_38", 0}, + {"EIT_07_38", 0}, + {"EIT_08_38", 0}, + {"EIT_09_38", 0}, + {"EIT_10_38", 0}, + {"EIT_83A_38", 0}, // with no region + {"EIT_83B_38", 0}, // with no region + {"EIT_84_38", 0}, // with no region + {"EIT_85_38", 0}, // with no region + {"EIT_86_38", 0}, // with no region + {"EIT_87_38", 0}, // with no region + {"EIT_89A_38", 0}, // with no region + {"EIT_89B_38", 0}, // with no region + {"EIT_90_38", 0}, // with no region + {"EIT_91_38", 0}, // with no region + {"EIT_92_38", 0}, // with no region + {"EIT_93_38", 0}, // with no region + {"EIT_94_38", 0}, // with no region + {"EIT_97_38", 0}, // with no region + {"EIT_98b_38", 0}, + }); + } + + static boolean cacheLoaded; + + static List<File> directoriesToMerge = Lists.newLinkedList(); + + @Override + public void setUp() throws Exception { + + super.setUp(); + + if (!cacheLoaded) { + + // load caches once for all + + loader.loadCache(getDb()); + + cacheLoaded = true; + } + } + + static CellLoader lastLoader; + + @Override + public void tearDown() throws Exception { + lastLoader = loader; + super.tearDown(); + + if (log.isInfoEnabled()) { + log.info("TimeLogs : " + DbEditorService.timeLog.getCallCount()); + } + } + + @AfterClass + public static void afterClass() throws Exception { + + // merge all results + if (CollectionUtils.isNotEmpty(directoriesToMerge)) { + + // let's merge all result + File dir = TestHelper.getTestBasedir(CellLoaderIT.class); + + TableMeta cellMeta = lastLoader.getMeta(); + TableMeta dataMeta = lastLoader.getTable(EchoBaseEntityEnum.Data); + TableMeta dataProcessingMeta = lastLoader.getTable(EchoBaseEntityEnum.DataProcessing); + AssociationMeta dataProcessingToCellMetaAssociation = dataProcessingMeta.getAssociations(DataProcessing.PROPERTY_CELL); + AssociationMeta cellToCellMetaAssociation = cellMeta.getAssociations(Cell.PROPERTY_CHILDS); + AssociationMeta cellToDataMetaAssociation = cellMeta.getAssociations(Cell.PROPERTY_DATA); + + ToFileFromMeta toCellFile = new ToFileFromMeta(lastLoader, cellMeta); + ToFileFromMeta toDataFile = new ToFileFromMeta(lastLoader, dataMeta); + ToFileFromMeta toDataProcessingToCellFile = new ToFileFromMeta(lastLoader, dataProcessingToCellMetaAssociation); + ToFileFromMeta toCellToCellFile = new ToFileFromMeta(lastLoader, cellToCellMetaAssociation); + ToFileFromMeta toCellToDataFile = new ToFileFromMeta(lastLoader, cellToDataMetaAssociation); + + if (log.isInfoEnabled()) { + log.info("Will merge " + directoriesToMerge.size() + " data processing data into " + dir); + } + + mergeFile(dir, toCellFile); + mergeFile(dir, toDataFile); + mergeFile(dir, toDataProcessingToCellFile); + mergeFile(dir, toCellToCellFile); + mergeFile(dir, toCellToDataFile); + } + } + + protected static void mergeFile(File dir, ToFileFromMeta function) throws Exception { + + File mergedFile = function.apply(dir); + if (log.isInfoEnabled()) { + log.info("Will merge to " + mergedFile.getName()); + } + + Collection<File> files = Collections2.transform(directoriesToMerge, function); + + EchoBaseIOUtil.copyFile(mergedFile, files); + } + + public CellLoaderIT(String dataProcessingId, int exceptedDataCount) { + super(CellLoader.class, 0, exceptedDataCount); + this.dataProcessingId = dataProcessingId; + } + + @Test + public void generateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + + @Override + protected void launchEntitiesFromBaracouda(CellLoader loader, + Database db, + File exportdir) throws IOException, TopiaException, ParseException { + + if (log.isInfoEnabled()) { + log.info("Export to " + exportdir); + } + directoriesToMerge.add(exportdir); + loader.generateEntitiesFromBaracouda(db, exportdir, dataProcessingId, true); + } + + @Override + protected void importEntities(File inFile, + long nbExpected) throws IOException, TopiaException { + // do not use it + } + + private static class ToFileFromMeta implements Function<File, File> { + + private MetaFilenameAware meta; + private FileType fileType; + private CellLoader loader; + + public ToFileFromMeta(CellLoader loader, MetaFilenameAware meta) { + this.meta = meta; + this.loader = loader; + fileType = meta instanceof AssociationMeta ? FileType.ASSOCIATION : FileType.BARACOUDA; + } + + @Override + public File apply(File input) { + + try { + return loader.getTableFile(input, meta, fileType); + } catch (IOException e) { + throw new IllegalStateException("Could not obtain table file", e); + } + } + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,233 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import com.google.common.base.Function; -import com.google.common.collect.Collections2; -import com.google.common.collect.Lists; -import com.healthmarketscience.jackcess.Database; -import fr.ifremer.echobase.EchoBaseIOUtil; -import fr.ifremer.echobase.entities.EchoBaseEntityEnum; -import fr.ifremer.echobase.entities.data.Cell; -import fr.ifremer.echobase.entities.data.DataProcessing; -import fr.ifremer.echobase.entities.meta.AssociationMeta; -import fr.ifremer.echobase.entities.meta.MetaFilenameAware; -import fr.ifremer.echobase.entities.meta.TableMeta; -import fr.ifremer.echobase.services.DbEditorService; -import fr.ifremer.echobase.tools.FileType; -import fr.ifremer.echobase.tools.TestHelper; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.junit.AfterClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.nuiton.topia.TopiaException; - -import java.io.File; -import java.io.IOException; -import java.text.ParseException; -import java.util.Arrays; -import java.util.Collection; -import java.util.List; - -/** - * To test {@link CellLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -@RunWith(Parameterized.class) -public class CellLoaderTest extends AbstractLoaderTest<Cell, CellLoader> { - - /** Logger. */ - private static final Log log = - LogFactory.getLog(CellLoaderTest.class); - - /** Id of data processing to treat. */ - private String dataProcessingId; - - @Parameterized.Parameters - public static List<Object[]> data() { - return Arrays.asList(new Object[][]{ - {"EIT_00_38", 0}, - {"EIT_01_38", 0}, - {"EIT_02_38", 0}, - {"EIT_03_38", 0}, - {"EIT_0310_38", 0}, - {"EIT_04_38", 0}, - {"EIT_05_38", 0}, - {"EIT_0510_38", 0}, // with no region - {"EIT_06_38", 0}, - {"EIT_07_38", 0}, - {"EIT_08_38", 0}, - {"EIT_09_38", 0}, - {"EIT_10_38", 0}, - {"EIT_83A_38", 0}, // with no region - {"EIT_83B_38", 0}, // with no region - {"EIT_84_38", 0}, // with no region - {"EIT_85_38", 0}, // with no region - {"EIT_86_38", 0}, // with no region - {"EIT_87_38", 0}, // with no region - {"EIT_89A_38", 0}, // with no region - {"EIT_89B_38", 0}, // with no region - {"EIT_90_38", 0}, // with no region - {"EIT_91_38", 0}, // with no region - {"EIT_92_38", 0}, // with no region - {"EIT_93_38", 0}, // with no region - {"EIT_94_38", 0}, // with no region - {"EIT_97_38", 0}, // with no region - {"EIT_98b_38", 0}, - }); - } - - static boolean cacheLoaded; - - static List<File> directoriesToMerge = Lists.newLinkedList(); - - @Override - public void setUp() throws Exception { - - super.setUp(); - - if (!cacheLoaded) { - - // load caches once for all - - loader.loadCache(getDb()); - - cacheLoaded = true; - } - } - - static CellLoader lastLoader; - - @Override - public void tearDown() throws Exception { - lastLoader = loader; - super.tearDown(); - - if (log.isInfoEnabled()) { - log.info("TimeLogs : " + DbEditorService.timeLog.getCallCount()); - } - } - - @AfterClass - public static void afterClass() throws Exception { - - // merge all results - if (CollectionUtils.isNotEmpty(directoriesToMerge)) { - - // let's merge all result - File dir = TestHelper.getTestBasedir(CellLoaderTest.class); - - TableMeta cellMeta = lastLoader.getMeta(); - TableMeta dataMeta = lastLoader.getTable(EchoBaseEntityEnum.Data); - TableMeta dataProcessingMeta = lastLoader.getTable(EchoBaseEntityEnum.DataProcessing); - AssociationMeta dataProcessingToCellMetaAssociation = dataProcessingMeta.getAssociations(DataProcessing.PROPERTY_CELL); - AssociationMeta cellToCellMetaAssociation = cellMeta.getAssociations(Cell.PROPERTY_CHILDS); - AssociationMeta cellToDataMetaAssociation = cellMeta.getAssociations(Cell.PROPERTY_DATA); - - ToFileFromMeta toCellFile = new ToFileFromMeta(lastLoader, cellMeta); - ToFileFromMeta toDataFile = new ToFileFromMeta(lastLoader, dataMeta); - ToFileFromMeta toDataProcessingToCellFile = new ToFileFromMeta(lastLoader, dataProcessingToCellMetaAssociation); - ToFileFromMeta toCellToCellFile = new ToFileFromMeta(lastLoader, cellToCellMetaAssociation); - ToFileFromMeta toCellToDataFile = new ToFileFromMeta(lastLoader, cellToDataMetaAssociation); - - if (log.isInfoEnabled()) { - log.info("Will merge " + directoriesToMerge.size() + " data processing data into " + dir); - } - - mergeFile(dir, toCellFile); - mergeFile(dir, toDataFile); - mergeFile(dir, toDataProcessingToCellFile); - mergeFile(dir, toCellToCellFile); - mergeFile(dir, toCellToDataFile); - } - } - - protected static void mergeFile(File dir, ToFileFromMeta function) throws Exception { - - File mergedFile = function.apply(dir); - if (log.isInfoEnabled()) { - log.info("Will merge to " + mergedFile.getName()); - } - - Collection<File> files = Collections2.transform(directoriesToMerge, function); - - EchoBaseIOUtil.copyFile(mergedFile, files); - } - - public CellLoaderTest(String dataProcessingId, int exceptedDataCount) { - super(CellLoader.class, 0, exceptedDataCount); - this.dataProcessingId = dataProcessingId; - } - - @Test - public void generateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - - @Override - protected void launchEntitiesFromBaracouda(CellLoader loader, - Database db, - File exportdir) throws IOException, TopiaException, ParseException { - - if (log.isInfoEnabled()) { - log.info("Export to " + exportdir); - } - directoriesToMerge.add(exportdir); - loader.generateEntitiesFromBaracouda(db, exportdir, dataProcessingId, true); - } - - @Override - protected void importEntities(File inFile, - long nbExpected) throws IOException, TopiaException { - // do not use it - } - - private static class ToFileFromMeta implements Function<File, File> { - - private MetaFilenameAware meta; - private FileType fileType; - private CellLoader loader; - - public ToFileFromMeta(CellLoader loader, MetaFilenameAware meta) { - this.meta = meta; - this.loader = loader; - fileType = meta instanceof AssociationMeta ? FileType.ASSOCIATION : FileType.BARACOUDA; - } - - @Override - public File apply(File input) { - - try { - return loader.getTableFile(input, meta, fileType); - } catch (IOException e) { - throw new IllegalStateException("Could not obtain table file", e); - } - } - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.CellMethod; +import org.junit.Test; + +/** + * To test the {@link CellMethodLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class CellMethodLoaderIT extends AbstractLoaderIT<CellMethod, CellMethodLoader> { + + public CellMethodLoaderIT() { + super(CellMethodLoader.class, 6, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellMethodLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.CellMethod; -import org.junit.Test; - -/** - * To test the {@link CellMethodLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class CellMethodLoaderTest extends AbstractLoaderTest<CellMethod, CellMethodLoader> { - - public CellMethodLoaderTest() { - super(CellMethodLoader.class, 6, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.CellType; +import org.junit.Test; + +/** + * To test the {@link CellTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class CellTypeLoaderIT extends AbstractLoaderIT<CellType, CellTypeLoader> { + + public CellTypeLoaderIT() { + super(CellTypeLoader.class, 6, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/CellTypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.CellType; -import org.junit.Test; - -/** - * To test the {@link CellTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class CellTypeLoaderTest extends AbstractLoaderTest<CellType, CellTypeLoader> { - - public CellTypeLoaderTest() { - super(CellTypeLoader.class, 6, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.data.DataAcquisition; +import org.junit.Test; + +/** + * To test {@link DataAcquisitionLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class DataAcquisitionLoaderIT extends AbstractLoaderIT<DataAcquisition, DataAcquisitionLoader> { + + public DataAcquisitionLoaderIT() { + super(DataAcquisitionLoader.class, 0, 28); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataAcquisitionLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.data.DataAcquisition; -import org.junit.Test; - -/** - * To test {@link DataAcquisitionLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class DataAcquisitionLoaderTest extends AbstractLoaderTest<DataAcquisition, DataAcquisitionLoader> { - - public DataAcquisitionLoaderTest() { - super(DataAcquisitionLoader.class, 0, 28); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,51 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.DataMetadata; +import org.junit.Test; + +/** + * To test the {@link ReferenceDatumTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class DataMetadataLoaderIT extends AbstractLoaderIT<DataMetadata, DataMetadataLoader> { + + public DataMetadataLoaderIT() { + super(DataMetadataLoader.class, 34, 28); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataMetadataLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,51 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.DataMetadata; -import org.junit.Test; - -/** - * To test the {@link ReferenceDatumTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class DataMetadataLoaderTest extends AbstractLoaderTest<DataMetadata, DataMetadataLoader> { - - public DataMetadataLoaderTest() { - super(DataMetadataLoader.class, 34, 28); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.data.DataProcessing; +import org.junit.Test; + +/** + * To test {@link DataProcessingLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class DataProcessingLoaderIT extends AbstractLoaderIT<DataProcessing, DataProcessingLoader> { + + public DataProcessingLoaderIT() { + super(DataProcessingLoader.class, 0, 28); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataProcessingLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.data.DataProcessing; -import org.junit.Test; - -/** - * To test {@link DataProcessingLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class DataProcessingLoaderTest extends AbstractLoaderTest<DataProcessing, DataProcessingLoader> { - - public DataProcessingLoaderTest() { - super(DataProcessingLoader.class, 0, 28); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.DataQuality; +import org.junit.Test; + +/** + * To test the {@link DataQualityLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class DataQualityLoaderIT extends AbstractLoaderIT<DataQuality, DataQualityLoader> { + + public DataQualityLoaderIT() { + super(DataQualityLoader.class, 8, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataQualityLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.DataQuality; -import org.junit.Test; - -/** - * To test the {@link DataQualityLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class DataQualityLoaderTest extends AbstractLoaderTest<DataQuality, DataQualityLoader> { - - public DataQualityLoaderTest() { - super(DataQualityLoader.class, 8, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.DataType; +import org.junit.Test; + +/** + * To test the {@link DataTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class DataTypeLoaderIT extends AbstractLoaderIT<DataType, DataTypeLoader> { + + public DataTypeLoaderIT() { + super(DataTypeLoader.class, 15, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DataTypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.DataType; -import org.junit.Test; - -/** - * To test the {@link DataTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class DataTypeLoaderTest extends AbstractLoaderTest<DataType, DataTypeLoader> { - - public DataTypeLoaderTest() { - super(DataTypeLoader.class, 15, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.DepthStratum; +import org.junit.Test; + +/** + * To test the {@link DepthStratumLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class DepthStratumLoaderIT extends AbstractLoaderIT<DepthStratum, DepthStratumLoader> { + + public DepthStratumLoaderIT() { + super(DepthStratumLoader.class, 0, 5); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/DepthStratumLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.DepthStratum; -import org.junit.Test; - -/** - * To test the {@link DepthStratumLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class DepthStratumLoaderTest extends AbstractLoaderTest<DepthStratum, DepthStratumLoader> { - - public DepthStratumLoaderTest() { - super(DepthStratumLoader.class, 0, 5); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.EchotypeCategory; +import org.junit.Test; + +/** + * To test the {@link EchotypeCategoryLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class EchotypeCategoryLoaderIT extends AbstractLoaderIT<EchotypeCategory, EchotypeCategoryLoader> { + + public EchotypeCategoryLoaderIT() { + super(EchotypeCategoryLoader.class, 0, 3); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeCategoryLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.EchotypeCategory; -import org.junit.Test; - -/** - * To test the {@link EchotypeCategoryLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class EchotypeCategoryLoaderTest extends AbstractLoaderTest<EchotypeCategory, EchotypeCategoryLoader> { - - public EchotypeCategoryLoaderTest() { - super(EchotypeCategoryLoader.class, 0, 3); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.Echotype; +import org.junit.Test; + +/** + * To test the {@link EchotypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class EchotypeLoaderIT extends AbstractLoaderIT<Echotype, EchotypeLoader> { + + public EchotypeLoaderIT() { + super(EchotypeLoader.class, 183, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/EchotypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.Echotype; -import org.junit.Test; - -/** - * To test the {@link EchotypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class EchotypeLoaderTest extends AbstractLoaderTest<Echotype, EchotypeLoader> { - - public EchotypeLoaderTest() { - super(EchotypeLoader.class, 183, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Added: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearLoaderIT.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.Gear; +import org.junit.Test; + +/** + * To test the {@link GearLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class GearLoaderIT extends AbstractLoaderIT<Gear, GearLoader> { + + public GearLoaderIT() { + super(GearLoader.class, 112, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} \ No newline at end of file Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.GearMetadata; +import org.junit.Test; + +/** + * To test the {@link GearMetadataLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class GearMetadataLoaderIT extends AbstractLoaderIT<GearMetadata, GearMetadataLoader> { + + public GearMetadataLoaderIT() { + super(GearMetadataLoader.class, 3, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/GearMetadataLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.GearMetadata; -import org.junit.Test; - -/** - * To test the {@link GearMetadataLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class GearMetadataLoaderTest extends AbstractLoaderTest<GearMetadata, GearMetadataLoader> { - - public GearMetadataLoaderTest() { - super(GearMetadataLoader.class, 3, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.Mission; +import org.junit.Test; + +/** + * To test the {@link MissionLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class MissionLoaderIT extends AbstractLoaderIT<Mission, MissionLoader> { + + public MissionLoaderIT() { + super(MissionLoader.class, 0, 14); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/MissionLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.Mission; -import org.junit.Test; - -/** - * To test the {@link MissionLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class MissionLoaderTest extends AbstractLoaderTest<Mission, MissionLoader> { - - public MissionLoaderTest() { - super(MissionLoader.class, 0, 15); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.OperationEvent; +import org.junit.Test; + +/** + * To test the {@link OperationEventLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class OperationEventLoaderIT extends AbstractLoaderIT<OperationEvent, OperationEventLoader> { + + public OperationEventLoaderIT() { + super(OperationEventLoader.class, 7, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationEventLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.OperationEvent; -import org.junit.Test; - -/** - * To test the {@link OperationEventLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class OperationEventLoaderTest extends AbstractLoaderTest<OperationEvent, OperationEventLoader> { - - public OperationEventLoaderTest() { - super(OperationEventLoader.class, 7, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.OperationMetadata; +import org.junit.Test; + +/** + * To test the {@link SexCategoryLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class OperationMetadataLoaderIT extends AbstractLoaderIT<OperationMetadata, OperationMetadataLoader> { + + public OperationMetadataLoaderIT() { + super(OperationMetadataLoader.class, 4, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/OperationMetadataLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.OperationMetadata; -import org.junit.Test; - -/** - * To test the {@link SexCategoryLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class OperationMetadataLoaderTest extends AbstractLoaderTest<OperationMetadata, OperationMetadataLoader> { - - public OperationMetadataLoaderTest() { - super(OperationMetadataLoader.class, 4, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,51 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.ReferenceDatum; +import org.junit.Test; + +/** + * To test the {@link ReferenceDatumTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class ReferenceDatumLoaderIT extends AbstractLoaderIT<ReferenceDatum, ReferenceDatumLoader> { + + public ReferenceDatumLoaderIT() { + super(ReferenceDatumLoader.class, 4, 3); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,51 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.ReferenceDatum; -import org.junit.Test; - -/** - * To test the {@link ReferenceDatumTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class ReferenceDatumLoaderTest extends AbstractLoaderTest<ReferenceDatum, ReferenceDatumLoader> { - - public ReferenceDatumLoaderTest() { - super(ReferenceDatumLoader.class, 4, 3); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.ReferenceDatumType; +import org.junit.Test; + +/** + * To test the {@link ReferenceDatumTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class ReferenceDatumTypeLoaderIT extends AbstractLoaderIT<ReferenceDatumType, ReferenceDatumTypeLoader> { + + public ReferenceDatumTypeLoaderIT() { + super(ReferenceDatumTypeLoader.class, 3, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/ReferenceDatumTypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.ReferenceDatumType; -import org.junit.Test; - -/** - * To test the {@link ReferenceDatumTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class ReferenceDatumTypeLoaderTest extends AbstractLoaderTest<ReferenceDatumType, ReferenceDatumTypeLoader> { - - public ReferenceDatumTypeLoaderTest() { - super(ReferenceDatumTypeLoader.class, 3, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.SampleDataType; +import org.junit.Test; + +/** + * To test the {@link SampleDataTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class SampleDataTypeLoaderIT extends AbstractLoaderIT<SampleDataType, SampleDataTypeLoader> { + + public SampleDataTypeLoaderIT() { + super(SampleDataTypeLoader.class, 134, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleDataTypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.SampleDataType; -import org.junit.Test; - -/** - * To test the {@link SampleDataTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class SampleDataTypeLoaderTest extends AbstractLoaderTest<SampleDataType, SampleDataTypeLoader> { - - public SampleDataTypeLoaderTest() { - super(SampleDataTypeLoader.class, 134, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.SampleType; +import org.junit.Test; + +/** + * To test the {@link SampleTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class SampleTypeLoaderIT extends AbstractLoaderIT<SampleType, SampleTypeLoader> { + + public SampleTypeLoaderIT() { + super(SampleTypeLoader.class, 5, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SampleTypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.SampleType; -import org.junit.Test; - -/** - * To test the {@link SampleTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class SampleTypeLoaderTest extends AbstractLoaderTest<SampleType, SampleTypeLoader> { - - public SampleTypeLoaderTest() { - super(SampleTypeLoader.class, 5, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.SexCategory; +import org.junit.Test; + +/** + * To test the {@link SexCategoryLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class SexCategoryLoaderIT extends AbstractLoaderIT<SexCategory, SexCategoryLoader> { + + public SexCategoryLoaderIT() { + super(SexCategoryLoader.class, 4, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SexCategoryLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.SexCategory; -import org.junit.Test; - -/** - * To test the {@link SexCategoryLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class SexCategoryLoaderTest extends AbstractLoaderTest<SexCategory, SexCategoryLoader> { - - public SexCategoryLoaderTest() { - super(SexCategoryLoader.class, 4, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderIT.java (from rev 195, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,45 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.SizeCategory; +import org.junit.Test; + +/** + * To test the {@link SizeCategoryLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class SizeCategoryLoaderIT extends AbstractLoaderIT<SizeCategory, SizeCategoryLoader> { + + public SizeCategoryLoaderIT() { + super(SizeCategoryLoader.class, 4, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SizeCategoryLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,45 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.SizeCategory; -import org.junit.Test; - -/** - * To test the {@link SizeCategoryLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class SizeCategoryLoaderTest extends AbstractLoaderTest<SizeCategory, SizeCategoryLoader> { - - public SizeCategoryLoaderTest() { - super(SizeCategoryLoader.class, 4, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.Species; +import org.junit.Test; + +/** + * To test the {@link SpeciesLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class SpeciesLoaderIT extends AbstractLoaderIT<Species, SpeciesLoader> { + + public SpeciesLoaderIT() { + super(SpeciesLoader.class, 217, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/SpeciesLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.Species; -import org.junit.Test; - -/** - * To test the {@link SpeciesLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class SpeciesLoaderTest extends AbstractLoaderTest<Species, SpeciesLoader> { - - public SpeciesLoaderTest() { - super(SpeciesLoader.class, 217, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.Strata; +import org.junit.Test; + +/** + * To test the {@link StrataLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class StrataLoaderIT extends AbstractLoaderIT<Strata, StrataLoader> { + + public StrataLoaderIT() { + super(StrataLoader.class, 0, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/StrataLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.Strata; -import org.junit.Test; - -/** - * To test the {@link StrataLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class StrataLoaderTest extends AbstractLoaderTest<Strata, StrataLoader> { - - public StrataLoaderTest() { - super(StrataLoader.class, 0, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.TSParameters; +import org.junit.Test; + +/** + * To test the {@link TSParametersLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class TSParametersLoaderIT extends AbstractLoaderIT<TSParameters, TSParametersLoader> { + + public TSParametersLoaderIT() { + super(TSParametersLoader.class, 0, 422); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TSParametersLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.TSParameters; -import org.junit.Test; - -/** - * To test the {@link TSParametersLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class TSParametersLoaderTest extends AbstractLoaderTest<TSParameters, TSParametersLoader> { - - public TSParametersLoaderTest() { - super(TSParametersLoader.class, 0, 422); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.data.Transect; +import org.junit.Test; + +/** + * To test the {@link TransectLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class TransectLoaderIT extends AbstractLoaderIT<Transect, TransectLoader> { + + public TransectLoaderIT() { + super(TransectLoader.class, 0, 42); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransectLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.data.Transect; -import org.junit.Test; - -/** - * To test the {@link TransectLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class TransectLoaderTest extends AbstractLoaderTest<Transect, TransectLoader> { - - public TransectLoaderTest() { - super(TransectLoader.class, 0, 42); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.data.Transit; +import org.junit.Test; + +/** + * To test the {@link TransitLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class TransitLoaderIT extends AbstractLoaderIT<Transit, TransitLoader> { + + public TransitLoaderIT() { + super(TransitLoader.class, 0, 42); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/TransitLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.data.Transit; -import org.junit.Test; - -/** - * To test the {@link TransitLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class TransitLoaderTest extends AbstractLoaderTest<Transit, TransitLoader> { - - public TransitLoaderTest() { - super(TransitLoader.class, 0, 42); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.Vessel; +import org.junit.Test; + +/** + * To test the {@link VesselLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class VesselLoaderIT extends AbstractLoaderIT<Vessel, VesselLoader> { + + public VesselLoaderIT() { + super(VesselLoader.class, 0, 6); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.Vessel; -import org.junit.Test; - -/** - * To test the {@link VesselLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class VesselLoaderTest extends AbstractLoaderTest<Vessel, VesselLoader> { - - public VesselLoaderTest() { - super(VesselLoader.class, 0, 6); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,46 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.references.VesselType; +import org.junit.Test; + +/** + * To test the {@link VesselTypeLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class VesselTypeLoaderIT extends AbstractLoaderIT<VesselType, VesselTypeLoader> { + + public VesselTypeLoaderIT() { + super(VesselTypeLoader.class, 0, 0); + } + + @Test + public void testGenerateNewEntities() throws Exception { + generateNewEntities(); + } + +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VesselTypeLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,46 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.references.VesselType; -import org.junit.Test; - -/** - * To test the {@link VesselTypeLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class VesselTypeLoaderTest extends AbstractLoaderTest<VesselType, VesselTypeLoader> { - - public VesselTypeLoaderTest() { - super(VesselTypeLoader.class, 0, 0); - } - - @Test - public void testGenerateNewEntities() throws Exception { - generateNewEntities(); - } - -} Copied: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderIT.java (from rev 194, trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderTest.java) =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderIT.java (rev 0) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderIT.java 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,92 @@ +/* + * #%L + * EchoBase :: Tools + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Ifremer, Codelutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * #L% + */ +package fr.ifremer.echobase.tools.loaders; + +import fr.ifremer.echobase.entities.EchoBaseEntityEnum; +import fr.ifremer.echobase.entities.data.Voyage; +import fr.ifremer.echobase.entities.meta.AssociationMeta; +import fr.ifremer.echobase.entities.meta.MetaFilenameAware; +import fr.ifremer.echobase.tools.FileType; +import org.junit.Assert; +import org.junit.Test; +import org.nuiton.topia.TopiaException; + +import java.io.File; +import java.io.IOException; +import java.util.Set; + +/** + * To test the {@link VoyageLoader}. + * + * @author tchemit <chemit@codelutin.com> + * @since 0.2 + */ +public class VoyageLoaderIT extends AbstractLoaderIT<Voyage, VoyageLoader> { + + public VoyageLoaderIT() { + super(VoyageLoader.class, 0, 42); + } + + @Test + public void testGenerateEntitiesFromBaracouda() throws Exception { + generateBaracoudaEntities(); + } + + Set<MetaFilenameAware> dones; + + @Override + protected void loadDependencies(Set<MetaFilenameAware> dones) throws IOException, TopiaException { + super.loadDependencies(dones); + this.dones = dones; + } + + @Test + public void testGenerateEchotypeAssociation() throws Exception { + + loadDependencies(EchoBaseEntityEnum.Voyage, dones); + + AssociationMeta associationMeta = + loader.getMeta().getAssociations(Voyage.PROPERTY_ECHOTYPE); + + File inFile = new File(testdir, "input-" + associationMeta.getFilename()); + + File outFile = loader.getTableFile(exportdir, associationMeta, FileType.ASSOCIATION); + + Assert.assertFalse(inFile.exists()); + Assert.assertFalse(outFile.exists()); + + loader.copyStreamToFile(inFile, FileType.NEW); + + Assert.assertTrue(inFile.exists()); + + + loader.generateEchotypeAssociation( + inFile, + outFile, + true + ); + + Assert.assertTrue(outFile.exists()); + } +} Property changes on: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderIT.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Deleted: trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderTest.java =================================================================== --- trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderTest.java 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/echobase-tools/src/test/java/fr/ifremer/echobase/tools/loaders/VoyageLoaderTest.java 2011-12-15 21:53:41 UTC (rev 197) @@ -1,92 +0,0 @@ -/* - * #%L - * EchoBase :: Tools - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2011 Ifremer, Codelutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package fr.ifremer.echobase.tools.loaders; - -import fr.ifremer.echobase.entities.EchoBaseEntityEnum; -import fr.ifremer.echobase.entities.data.Voyage; -import fr.ifremer.echobase.entities.meta.AssociationMeta; -import fr.ifremer.echobase.entities.meta.MetaFilenameAware; -import fr.ifremer.echobase.tools.FileType; -import org.junit.Assert; -import org.junit.Test; -import org.nuiton.topia.TopiaException; - -import java.io.File; -import java.io.IOException; -import java.util.Set; - -/** - * To test the {@link VoyageLoader}. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.2 - */ -public class VoyageLoaderTest extends AbstractLoaderTest<Voyage, VoyageLoader> { - - public VoyageLoaderTest() { - super(VoyageLoader.class, 0, 42); - } - - @Test - public void testGenerateEntitiesFromBaracouda() throws Exception { - generateBaracoudaEntities(); - } - - Set<MetaFilenameAware> dones; - - @Override - protected void loadDependencies(Set<MetaFilenameAware> dones) throws IOException, TopiaException { - super.loadDependencies(dones); - this.dones = dones; - } - - @Test - public void testGenerateEchotypeAssociation() throws Exception { - - loadDependencies(EchoBaseEntityEnum.Voyage, dones); - - AssociationMeta associationMeta = - loader.getMeta().getAssociations(Voyage.PROPERTY_ECHOTYPE); - - File inFile = new File(testdir, "input-" + associationMeta.getFilename()); - - File outFile = loader.getTableFile(exportdir, associationMeta, FileType.ASSOCIATION); - - Assert.assertFalse(inFile.exists()); - Assert.assertFalse(outFile.exists()); - - loader.copyStreamToFile(inFile, FileType.NEW); - - Assert.assertTrue(inFile.exists()); - - - loader.generateEchotypeAssociation( - inFile, - outFile, - true - ); - - Assert.assertTrue(outFile.exists()); - } -} Added: trunk/echobase-tools/src/test/resources/csv/new/input-Gear.csv =================================================================== --- trunk/echobase-tools/src/test/resources/csv/new/input-Gear.csv (rev 0) +++ trunk/echobase-tools/src/test/resources/csv/new/input-Gear.csv 2011-12-15 21:53:41 UTC (rev 197) @@ -0,0 +1,192 @@ +CasinoGearName;ValidSince;InvalidSince;IsFishingGear;gearLabel;GearName;Description;UpdateDate;GearClassification;ParentGear;Status;IsActive;IsTowed +119x102;01/01/00;;1;119x102;Chalut pélagique 119/102;;;5;;;1;1 +36x47;01/01/00;;1;GV3647;Chalut de fond GOV 36/47;;;5;;;1;1 +57x52;01/01/00;;1;57x52;Chalut pélagique 57/52;;;5;;;1;1 +57x52-F LAR;01/01/00;;1;57x52;Chalut pélagique 57/52;;;5;;;1;1 +57x52-FFIL;01/01/00;;1;57x52;Chalut pélagique 57/52;;;5;;;1;1 +725OBS;01/01/00;;1;PS;Filets tournants avec coulisse (sennes coulissantes);"Nom anglais : Surrounding nets with purse lines (purse seines) +code ISSCFG : 01.1.0";07/12/2011 16:31:24.407001;1;;1;1;0 +76x70;01/01/00;;1;76x70;Chalut pélagique 76/70;;;5;;;1;1 +76x70-F LAR;01/01/00;;1;76x70;Chalut pélagique 76/70;;;5;;;1;1 +76x70-FFIL;01/01/00;;1;76x70;Chalut pélagique 76/70;;;5;;;1;1 +942OBS;01/01/00;;1;942OBS;Chalut pélagique (2 navires);;;5;;;1;1 +Bolinche;01/01/00;;1;PS;Filets tournants avec coulisse (sennes coulissantes);"Nom anglais : Surrounding nets with purse lines (purse seines) +code ISSCFG : 01.1.0";07/12/2011 16:31:24.407001;1;;1;1;0 +FC - NEUSTON;01/01/00;;0;NEUSTON;Chalut épi-pélagique « de surface » 1250mu;;;5;;;1;1 +FC ? NEUSTON;01/01/00;;0;NEUSTON;Chalut épi-pélagique « de surface » 1250mu;;;5;;;1;1 +FILET CARRE;01/01/00;;0;CARRE;FILET CARRE 500mu;;;5;;;1;1 +MEPEL;01/01/00;;0;MEPEL;Chalut meso-pel 50 m²;;;5;;;1;1 +MEPEL-DEBPEC;01/01/00;;0;MEPEL;Chalut meso-pel 50 m²;;;5;;;1;1 +NEUSTON;01/01/00;;0;NEUSTON;Chalut épi-pélagique « de surface » 1250mu;;;5;;;1;1 +Pélagique en boeufs;01/01/00;;1;PTM;Chaluts boeufs pélagiques;"Nom anglais : Pair trawls Midwater +code ISSCFG : 03.2.2";07/12/2011 16:31:24.446356;1;20;1;1;1 +RP-F LAR;01/01/00;;1;70x72;Chalut pélagique 70/72 (pelacus 2007);;;5;;;1;1 +;01/01/00;;0;PTGM;Chalut Pélagique (PELMED);;;;;;; +;;;1;BTF;Engins à appâts vivants;Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO);07/12/2011 16:31:24.758362;1;;0;; +;;;1;CTB;Chalut de fond pour crustacés;"Nom anglais : Crustacean Trawl Bottom +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.533508;1;16;0;1;1 +;;;1;DCL;DCP Lignes et palangres (non spécifiées);code ISSCFG : 09.9.0;07/12/2011 16:31:24.733670;1;;0;0;0 +;;;1;DCP;DCP Sennes tournantes coulissantes;code ISSCFG : 01.1.0;07/12/2011 16:31:24.734591;1;;0;1;0 +;;;1;DHB;Dragues à main manoeuvrées à partir du bateau;"Nom anglais : hand dredge operated from the boat +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.535290;1;;1;1;1 +;;;1;DHS;Dragues à main manoeuvrées à partir du rivage;"Nom anglais : hand dredge operated from the shore +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.536861;1;;1;1;1 +;;;1;DR;Dragues (non spécifiées);Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO);07/12/2011 16:31:24.538555;1;;0;1;1 +;;;1;DRB;Dragues remorquées par bateau;"Nom anglais : Boat dredges +code ISSCFG : 04.1.0";07/12/2011 16:31:24.773612;1;66;1;1;1 +;;;1;DRH;Dragues à main;"Nom anglais : Hand dredges +code ISSCFG : 04.2.0";07/12/2011 16:31:24.746489;1;66;0;1;1 +;;;1;FAG;Balais, Fagots ;"Nom anglais : prawn faggot +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.540198;1;;1;0;0 +;;;1;FAR;Pièges aériens;"Nom anglais : Aerial traps +code ISSCFG : 08.6.0";07/12/2011 16:31:24.750971;1;;1;0;0 +;;;1;FCN;Eperviers;"Nom anglais : Cast nets +code ISSCFG : 06.1.0";07/12/2011 16:31:24.729465;1;;1;1;0 +;;;1;FDV;Apnée ;"Nom anglais : Free-diving +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.541773;1;;1;1;0 +;;;1;FG;Autres engins retombants (non spécifiés);"Nom anglais : Falling gear (not specified) +code ISSCFG : 06.9.0";07/12/2011 16:31:24.478923;1;;0;1;0 +;;;1;FIX;Pièges (non spécifiés);"Nom anglais : Traps (not specified) +code ISSCFG : 08.9.0";07/12/2011 16:31:24.751964;1;;1;0;0 +;;;1;FOO;Pêche à pied ;"Nom anglais : shellfish-gathering / foot-fishing +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.543235;1;;1;1;0 +;;;1;FPN;Filets pièges fixes non couverts;"Nom anglais : Stationary uncovered pound nets +code ISSCFG : 08.1.0";07/12/2011 16:31:24.749940;1;;1;0;0 +;;;1;FPO;Nasses (casiers non spécifiés);"Nom anglais : Pots +code ISSCFG : 08.2.0";07/12/2011 16:31:24.495699;1;;1;0;0 +;;;1;FSN;Filets à l'étalage (diables);"Nom anglais : Stow nets +code ISSCFG : 08.4.0";07/12/2011 16:31:24.498878;1;;1;0;0 +;;;1;FWR;Barrages, parcs, bordigues,etc.;"Nom anglais : Barriers, fences, weirs,etc. +code ISSCFG : 08.5.0";07/12/2011 16:31:24.500430;1;;1;0;0 +;;;1;FY_;Capéchades, Trabaques;code ISSCFG : 08.3.0;07/12/2011 16:31:24.820709;1;;1;0;0 +;;;1;FYK;Verveux;"Nom anglais : Fyke nets +code ISSCFG : 08.3.0";07/12/2011 16:31:24.497265;1;;1;0;0 +;;;1;GEN;Filets maillants et filets emmêlants (non spécifiés);"Nom anglais : Gillnets and entangling nets (not specified) +code ISSCFG : 07.9.0";07/12/2011 16:31:24.490610;1;;1;0;0 +;;;1;GES;Tamis ;"Nom anglais : Glass eel sieve +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.544976;1;;1;1;1 +;;;1;GN;Filets maillants (non spécifiés);"Nom anglais : Gillnets (not specified) +code ISSCFG : 07.9.1";07/12/2011 16:31:24.492356;1;;1;0;0 +;;;1;GNC;Filets maillants encerclants;"Nom anglais : Encircling gillnets +code ISSCFG : 07.3.0";07/12/2011 16:31:24.810175;1;;1;1;0 +;;;1;GND;Filets maillants dérivants (filets dérivants);"Nom anglais : Driftnets +code ISSCFG : 07.2.0";07/12/2011 16:31:24.482325;1;;1;0;0 +;;;1;GNE;Filets flottants (maillants calés);code ISSCFG : 07.1.0;07/12/2011 16:31:24.730379;1;;1;0;0 +;;;1;GNF;Filets maillants fixes (sur perches);"Nom anglais : Fixed gillnets (on stakes) +code ISSCFG : 07.4.0";07/12/2011 16:31:24.748969;1;;1;0;0 +;;;1;GNS;Filets maillants calés (ancrés, filets maillants de fond à une nappe);"Nom anglais : Set gillnets (anchored) +code ISSCFG : 07.1.0";07/12/2011 16:31:24.480637;1;;1;0;0 +;;;1;GTN;Trémails et filets maillants combinés;"Nom anglais : Combined gillnets-trammel nets +code ISSCFG : 07.6.0";07/12/2011 16:31:24.809215;1;;1;0;0 +;;;1;GTR;Trémails;"Nom anglais : Trammel nets +code ISSCFG : 07.5.0";07/12/2011 16:31:24.789066;1;;1;0;0 +;;;1;HAR;Harpons;"Nom anglais : Harpoons +code ISSCFG : 10.1.0";07/12/2011 16:31:24.752945;1;;1;1;0 +;;;1;HES;Haveneaux, Épuisettes, Salabardes;code ISSCFG : 20.2.0;07/12/2011 16:31:24.802239;1;;1;1;0 +;;;1;HMD;Dragues mécanisées;"Nom anglais : Mechanized dredges +code ISSCFG : 11.2.0";07/12/2011 16:31:24.754922;1;;1;1;1 +;;;1;HMP;Pompes;"Nom anglais : Pumps +code ISSCFG : 11.1.0";07/12/2011 16:31:24.753922;1;;1;1;0 +;;;1;HMS;Scoubidou ;"Nom anglais : kelp (seaweed) harvest gear +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.546704;1;;1;1;0 +;;;1;HMX;Engins de récolte (non spécifiés);"Nom anglais : Harvesting machines (not specified) +code ISSCFG : 11.9.0";07/12/2011 16:31:24.755957;1;;0;1;0 +;;;1;LA;Filets tournants sans coulisse (filet lamparo);"Nom anglais : Surrounding nets without purse lines (lampara) +code ISSCFG : 01.2.0";07/12/2011 16:31:24.415929;1;;1;1;0 +;;;1;LH;Lignes à main;"Nom anglais : Handlines +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.548391;1;;1;0;0 +;;;1;LHM;Lignes à main et lignes avec cannes (mécanisées);"Nom anglais : Handlines and pole-lines (mechanized) +code ISSCFG : 09.2.0";07/12/2011 16:31:24.509083;1;;1;0;0 +;;;1;LHP;Lignes à main et lignes avec cannes (manoeuvrées à la main);"Nom anglais : Handlines and pole-lines (hand operated) +code ISSCFG : 09.1.0";07/12/2011 16:31:24.507360;1;;1;0;0 +;;;1;LL;Palangres (non spécifiées);"Nom anglais : Longlines (not specified) +code ISSCFG : 09.5.0";07/12/2011 16:31:24.514432;1;;1;0;0 +;;;1;LLD;Palangres dérivantes;"Nom anglais : Drifting longlines +code ISSCFG : 09.4.0";07/12/2011 16:31:24.769478;1;;1;0;0 +;;;1;LLF;Palangres calées flottantes;code ISSCFG : 09.3.0;07/12/2011 16:31:24.712660;1;;1;0;0 +;;;1;LLS;Palangres calées (fixes);"Nom anglais : Set longlines +code ISSCFG : 09.3.0";07/12/2011 16:31:24.510704;1;;1;0;0 +;;;1;LN;Filets soulevés (non spécifiés);"Nom anglais : Lift nets (not specified) +code ISSCFG : 05.9.0";07/12/2011 16:31:24.475497;1;;1;1;0 +;;;1;LNB;Filets soulevés manoeuvrés du bateau;"Nom anglais : Boat- operated lift nets +code ISSCFG : 05.2.0";13/12/2011 09:54:34.515543;1;30;1;1;0 +;;;1;LNP;Filets soulevés portatifs;"Nom anglais : Portable lift nets +code ISSCFG : 05.1.0";07/12/2011 16:31:24.470231;1;30;1;1;0 +;;;1;LNS;Filets soulevés fixes manoeuvrés du rivage;"Nom anglais : Shore-operated stationary lift nets +code ISSCFG : 05.3.0";13/12/2011 09:54:49.063566;1;30;1;1;0 +;;;1;LSP;Lignes calées (avec ou sans canne);code ISSCFG : 09.3.0;07/12/2011 16:31:24.717796;1;;1;0;0 +;;;1;LTF;Lignes traînantes de fond;code ISSCFG : 09.6.0;07/12/2011 16:31:24.732639;1;;1;0;1 +;;;1;LTL;Lignes de traîne;"Nom anglais : Trolling lines +code ISSCFG : 09.6.0";07/12/2011 16:31:24.713889;1;;1;0;1 +;;;1;LTP;Lignes de traîne profondes;code ISSCFG : 09.6.0;07/12/2011 16:31:24.728425;1;;1;0;1 +;;;1;LTS;Lignes de traîne de surface;code ISSCFG : 09.6.0;07/12/2011 16:31:24.727415;1;;1;0;1 +;;;1;LVD;Palangres verticales dérivantes;"Nom anglais : vertical drifting longline +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.771250;1;;1;0;0 +;;;1;LVS;Palangres verticales de fond;"Nom anglais : vertical bottom set longline +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.770400;1;;1;0;0 +;;;1;LX;Hameçons et lignes (non spécifiés);"Nom anglais : Hooks and lines (not specified) +code ISSCFG : 09.9.0";07/12/2011 16:31:24.517992;1;;1;0;0 +;;;1;MIG;Miquelon Filets maillants dérivants;code ISSCFG : 07.2.0;07/12/2011 16:31:24.736450;1;;0;0;0 +;;;1;MIL;Miquelon Lignes et palangres (non spécifiées);code ISSCFG : 09.9.0;07/12/2011 16:31:24.735541;1;;0;0;0 +;;;1;MIS;Divers engins de pêche;"Nom anglais : Miscellaneous Gear +code ISSCFG : 20.0.0";07/12/2011 16:31:24.526691;1;61;0;; +;;;1;NK;Engins de pêche inconnus ou non spécifiés;"Nom anglais : Gear not know or not specified +code ISSCFG : 99.0.0";07/12/2011 16:31:24.530050;1;;0;; +;;;1;NO;Pas d'engin;Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO);07/12/2011 16:31:24.553262;1;;1;0;0 +;;;1;OFG;Autres engins fixes et autres (autres arts dormants);"Nom anglais : Other fixed gears and others not specified +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.555477;1;;0;0;0 +;;;1;OT;Chaluts à panneaux (non spécifiés);"Nom anglais : Otter trawls (not specified) +code ISSCFG : 03.4.9";07/12/2011 16:31:24.453184;1;;0;1;1 +;;;1;OTB;Chaluts de fond à panneaux;"Nom anglais : 0tter trawls Bottom +code ISSCFG : 03.1.2";07/12/2011 16:31:24.433364;1;16;1;1;1 +;;;1;OTG;Autres engins remorqués (autres arts traînants);"Nom anglais : Other Gears +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.557177;1;;0;1;1 +;;;1;OTM;Chaluts pélagiques à panneaux;"Nom anglais : Otter trawls Midwater +code ISSCFG : 03.2.1";07/12/2011 16:31:24.444477;1;20;1;1;1 +;;;1;OTT;Chaluts jumeaux à panneaux;"Nom anglais : Otter twin trawl +code ISSCFG : 03.3.0";07/12/2011 16:31:24.451529;1;;1;1;1 +;;;1;PRE;Charter de pêche récréative (lignes et palangres);code ISSCFG : 09.9.0;07/12/2011 16:31:24.738888;1;;1;0;0 +;;;1;PS;Filets tournants avec coulisse (sennes coulissantes);"Nom anglais : Surrounding nets with purse lines (purse seines) +code ISSCFG : 01.1.0";07/12/2011 16:31:24.407001;1;;1;1;0 +;;;1;PS1;Sennes (à poche) manoeuvrées par un bateau;"Nom anglais : One boat operated purse seines +code ISSCFG : 01.1.1";07/12/2011 16:31:24.410906;1;1;1;1;0 +;;;1;PS2;Sennes (à poche) manoeuvrées par deux bateaux;"Nom anglais : Two boats operated purse seines +code ISSCFG : 01.1.2";07/12/2011 16:31:24.413219;1;1;1;1;0 +;;;1;PT;Chaluts boeufs (non spécifiés);"Nom anglais : Pair trawls (not specified) +code ISSCFG : 03.5.9";07/12/2011 16:31:24.455721;1;;0;1;1 +;;;1;PTB;Chaluts boeufs de fond;"Nom anglais : Pair trawls Bottom +code ISSCFG : 03.1.3";07/12/2011 16:31:24.435597;1;16;1;1;1 +;;;1;PTM;Chaluts boeufs pélagiques;"Nom anglais : Pair trawls Midwater +code ISSCFG : 03.2.2";07/12/2011 16:31:24.446356;1;20;1;1;1 +;;;1;RG;Engins de pêche récréative;"Nom anglais : Recreational Fishing Gear +code ISSCFG : 25.0.0";07/12/2011 16:31:24.528467;1;;0;; +;;;1;SB;Sennes de plage;"Nom anglais : Beach seines +code ISSCFG : 02.1.0";07/12/2011 16:31:24.418054;1;10;1;1;0 +;;;1;SDN;Sennes danoises (mouillées);"Nom anglais : Danish seines +code ISSCFG : 02.2.1";07/12/2011 16:31:24.422422;1;10;1;1;0 +;;;1;SDV;Plongée sous-marine ;"Nom anglais : scuba-diving +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.559088;1;;1;1;0 +;;;1;SPR;Sennes manoeuvrées par deux bateaux;"Nom anglais : Pair seines +code ISSCFG : 02.2.3";07/12/2011 16:31:24.426787;1;10;1;1;0 +;;;1;SSC;Sennes écossaises (volantes);"Nom anglais : Scottish seines +code ISSCFG : 02.2.2";07/12/2011 16:31:24.739896;1;10;1;1;0 +;;;1;SV;Sennes halées à bord;"Nom anglais : Boat or vessel seines +code ISSCFG : 02.2.0";07/12/2011 16:31:24.420161;1;10;1;1;0 +;;;1;SX;Sennes (non spécifiées);"Nom anglais : Seine nets (not specified) +code ISSCFG : 02.9.0";07/12/2011 16:31:24.429020;1;;1;1;0 +;;;1;TB;Chaluts de fond (non spécifié);"Nom anglais : Bottom trawls (not specified) +code ISSCFG : 03.1.9";07/12/2011 16:31:24.442257;1;;1;1;1 +;;;1;TBB;Chaluts à perche;"Nom anglais : Beam Bottom trawls +code ISSCFG : 03.1.1";07/12/2011 16:31:24.791360;1;16;1;1;1 +;;;1;TBN;Chaluts à langoustines;"Nom anglais : Nephrops Bottom trawls +code ISSCFG : 03.1.4";07/12/2011 16:31:24.437667;1;16;1;1;1 +;;;1;TBS;Chaluts à crevettes (Fond);"Nom anglais : Shrimp Bottom trawls +code ISSCFG : 03.1.5";07/12/2011 16:31:24.440049;1;16;1;1;1 +;;;1;TM;Chaluts pélagiques (non spécifiés);"Nom anglais : Midwater trawls (not specified) +code ISSCFG : 03.2.9";07/12/2011 16:31:24.449861;1;;1;1;1 +;;;1;TMB;Gangui ;"Nom anglais : Mediterranean beam-trawl +Pas de code ISSCFG officiel (=extension Ifremer du référentiel FAO)";07/12/2011 16:31:24.560687;1;;1;1;1 +;;;1;TMS;Chaluts à crevettes (Mi-profondeur);"Nom anglais : Shrimp trawls Midwater +code ISSCFG : 03.2.3";07/12/2011 16:31:24.744006;1;20;1;1;1 +;;;1;TX;Autres chaluts (non spécifiés);"Nom anglais : Other trawls (not specified) +code ISSCFG : 03.9.0";07/12/2011 16:31:24.457337;1;;0;1;1 \ No newline at end of file Property changes on: trunk/echobase-tools/src/test/resources/csv/new/input-Gear.csv ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native Modified: trunk/src/doc/reunions/reunion-2011-12-14.txt =================================================================== --- trunk/src/doc/reunions/reunion-2011-12-14.txt 2011-12-15 20:47:32 UTC (rev 196) +++ trunk/src/doc/reunions/reunion-2011-12-14.txt 2011-12-15 21:53:41 UTC (rev 197) @@ -47,6 +47,7 @@ - Remplissage du référentiel SizeCategory - Remplissage du référentiel OperationMetadata - Remplissage du référentiel GearMetadata +- Remplissage du référentiel Gear Action ------