Observe-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- 7199 discussions
25 Oct '17
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
a1b81a63 by Tony CHEMIT at 2017-10-25T15:11:58+02:00
clean servicxe client tests
- - - - -
10 changed files:
- services-client/pom.xml
- services-client/src/test/java/fr/ird/observe/services/client/service/DataSourceServiceClientTest.java
- services-client/src/test/java/fr/ird/observe/services/client/service/PingServiceClientTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/ServiceClientTestSupport.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/ConsolidateDataServiceClientTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/dcp/SimplifiedObjectTypeManagerTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/actions/report/AbstractReportServiceClientTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/actions/report/ReportAccessoryCatchClientTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/actions/validate/ValidateServiceClientTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/seine/TripSeineServiceClientTest.java
Changes:
=====================================
services-client/pom.xml
=====================================
--- a/services-client/pom.xml
+++ b/services-client/pom.xml
@@ -118,10 +118,6 @@
<groupId>org.nuiton</groupId>
<artifactId>nuiton-utils</artifactId>
</dependency>
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-validator</artifactId>
- </dependency>
<dependency>
<groupId>org.nuiton.topia</groupId>
@@ -195,15 +191,6 @@
<test>fr.ird.observe.services.client.ServiceClientTestSuite</test>
</configuration>
</execution>
- <execution>
- <id>default-test</id>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <skip>true</skip>
- </configuration>
- </execution>
</executions>
</plugin>
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/DataSourceServiceClientTest.java
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/DataSourceServiceClientTest.java
+++ b/services-client/src/test/java/fr/ird/observe/services/client/service/DataSourceServiceClientTest.java
@@ -31,6 +31,9 @@ import fr.ird.observe.services.service.BabModelVersionException;
import fr.ird.observe.services.service.DataSourceService;
import fr.ird.observe.services.service.DatabaseConnexionNotAuthorizedException;
import fr.ird.observe.services.service.DatabaseNotFoundException;
+import fr.ird.observe.services.test.ServiceClientTestClassResource;
+import fr.ird.observe.services.test.ServiceClientTestMethodResource;
+import fr.ird.observe.services.test.ServiceTestSupport;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Ignore;
@@ -41,7 +44,17 @@ import org.junit.Test;
*
* @author Tony Chemit - dev(a)tchemit.fr
*/
-public class DataSourceServiceClientTest extends ServiceClientTestSupport {
+public class DataSourceServiceClientTest extends ServiceTestSupport {
+
+ @Override
+ public ServiceClientTestMethodResource getTestMethodResource() {
+ return (ServiceClientTestMethodResource) super.getTestMethodResource();
+ }
+
+ @Override
+ public ServiceClientTestClassResource getTestClassResource() {
+ return (ServiceClientTestClassResource) super.getTestClassResource();
+ }
//FIXME
@Ignore
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/PingServiceClientTest.java
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/PingServiceClientTest.java
+++ b/services-client/src/test/java/fr/ird/observe/services/client/service/PingServiceClientTest.java
@@ -24,6 +24,8 @@ package fr.ird.observe.services.client.service;
import fr.ird.observe.services.configuration.rest.ObserveDataSourceConfigurationRest;
import fr.ird.observe.services.service.PingService;
+import fr.ird.observe.services.test.ServiceClientTestMethodResource;
+import fr.ird.observe.services.test.ServiceTestSupport;
import io.ultreia.java4all.http.HResponseNotAvailableException;
import java.net.MalformedURLException;
import java.net.URL;
@@ -34,7 +36,12 @@ import org.junit.Test;
*
* @author Tony Chemit - dev(a)tchemit.fr
*/
-public class PingServiceClientTest extends ServiceClientTestSupport {
+public class PingServiceClientTest extends ServiceTestSupport {
+
+ @Override
+ public ServiceClientTestMethodResource getTestMethodResource() {
+ return (ServiceClientTestMethodResource) super.getTestMethodResource();
+ }
@Test(expected = HResponseNotAvailableException.class)
public void testPingWithBadServerUrl() throws MalformedURLException, CloneNotSupportedException {
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/ServiceClientTestSupport.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/ServiceClientTestSupport.java
+++ /dev/null
@@ -1,129 +0,0 @@
-package fr.ird.observe.services.client.service;
-
-/*
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-import fr.ird.observe.dto.IdDto;
-import fr.ird.observe.dto.form.Form;
-import fr.ird.observe.services.configuration.ObserveDataSourceConnection;
-import fr.ird.observe.services.configuration.rest.ObserveDataSourceConfigurationRest;
-import fr.ird.observe.services.service.DataSourceService;
-import fr.ird.observe.services.service.ObserveService;
-import fr.ird.observe.services.test.ObserveTestConfiguration;
-import fr.ird.observe.services.test.ServiceClientTestClassResource;
-import fr.ird.observe.services.test.ServiceClientTestMethodResource;
-import fr.ird.observe.services.test.ServiceTestSupport;
-import fr.ird.observe.services.test.spi.DatabaseLoginConfiguration;
-import fr.ird.observe.services.test.spi.DatabasePasswordConfiguration;
-import fr.ird.observe.services.test.spi.DatabaseServerNameConfiguration;
-import fr.ird.observe.services.test.spi.DatabaseUrlConfiguration;
-import org.junit.After;
-import org.junit.Before;
-
-/**
- * @author Tony Chemit - dev(a)tchemit.fr
- */
-(a)DatabaseLoginConfiguration(ObserveTestConfiguration.WEB_LOGIN)
-@DatabasePasswordConfiguration(ObserveTestConfiguration.WEB_PASSWORD)
-@DatabaseUrlConfiguration
-@DatabaseServerNameConfiguration
-public abstract class ServiceClientTestSupport extends ServiceTestSupport {
-
- private ObserveDataSourceConnection dataSourceConnection;
-
- private DataSourceService dataSourceService;
-
- @Override
- public ServiceClientTestClassResource getTestClassResource() {
- return (ServiceClientTestClassResource) super.getTestClassResource();
- }
-
- @Override
- public ServiceClientTestMethodResource getTestMethodResource() {
- return (ServiceClientTestMethodResource) super.getTestMethodResource();
- }
-
- @Before
- public void setUp() throws Exception {
-
- ObserveDataSourceConfigurationRest dataSourceConfiguration = getTestMethodResource().getDataSourceConfiguration();
-
- dataSourceService = getTestClassResource().newService(dataSourceConfiguration, DataSourceService.class);
- dataSourceConnection = dataSourceService.open(dataSourceConfiguration);
- }
-
- @After
- public void tearDown() {
-
- if (dataSourceConnection != null) {
- dataSourceService.close();
- }
-
- }
-
- public <S extends ObserveService> S newService(Class<S> serviceType) {
- return getTestClassResource().newService(dataSourceConnection, serviceType);
- }
-
- protected <T extends IdDto> void assertEditLabels(Form<T> form, int expectedLabels, Class<?>... expectedTypes) {
-
- //FIXME Rest test
-// Assert.assertNotNull(formDto.getLabels());
-//
-// Set<Class<?>> types = ReferenceSetDtos.getTypes(formDto.getLabels());
-//
-// Assert.assertEquals(expectedTypes.length, types.size());
-//
-// for (Class<?> expectedType : expectedTypes) {
-// Assert.assertTrue(types.contains(expectedType));
-// }
-// Assert.assertEquals(expectedLabels, formDto.sizeLabels());
-//
-// for (ReferenceSetDto referenceSetDto : formDto.getLabels()) {
-//
-// Assert.assertTrue(referenceSetDto.size() > 0);
-//
-// }
- }
-
- protected <T extends IdDto> void assertReadLabels(Form<T> form, int expectedLabels, Class<?>... expectedTypes) {
-
- //FIXME Rest test
-// Assert.assertNotNull(formDto.getLabels());
-//
-// Set<Class<?>> types = ReferenceSetDtos.getTypes(formDto.getLabels());
-//
-// Assert.assertEquals(expectedTypes.length, types.size());
-//
-// for (Class<?> expectedType : expectedTypes) {
-// Assert.assertTrue(types.contains(expectedType));
-// }
-// Assert.assertEquals(expectedLabels, formDto.sizeLabels());
-//
-// for (ReferenceSetDto referenceSetDto : formDto.getLabels()) {
-//
-// Assert.assertTrue(referenceSetDto.isReferenceEmpty());
-//
-// }
- }
-
-}
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/ConsolidateDataServiceClientTest.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/ConsolidateDataServiceClientTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package fr.ird.observe.services.client.service.actions.consolidate;
-
-/*
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-import fr.ird.observe.services.service.actions.consolidate.ConsolidateDataServiceTest;
-
-/**
- * Created on 29/08/15.
- *
- * @author Tony Chemit - dev(a)tchemit.fr
- */
-public class ConsolidateDataServiceClientTest extends ConsolidateDataServiceTest {
-
-}
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/dcp/SimplifiedObjectTypeManagerTest.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/dcp/SimplifiedObjectTypeManagerTest.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package fr.ird.observe.services.client.service.actions.consolidate.dcp;
-
-/*-
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-/**
- * Created by tchemit on 02/08/17.
- *
- * @author Tony Chemit - dev(a)tchemit.fr
- */
-public class SimplifiedObjectTypeManagerTest extends fr.ird.observe.services.service.actions.consolidate.dcp.SimplifiedObjectTypeManagerTest {
-
-}
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/actions/report/AbstractReportServiceClientTest.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/actions/report/AbstractReportServiceClientTest.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-package fr.ird.observe.services.client.service.actions.report;
-
-
-import fr.ird.observe.dto.reference.DtoReference;
-import fr.ird.observe.services.client.service.ServiceClientTestSupport;
-import fr.ird.observe.services.service.actions.report.DataMatrix;
-import fr.ird.observe.services.service.actions.report.Report;
-import fr.ird.observe.services.service.actions.report.ReportBuilder;
-import fr.ird.observe.services.service.actions.report.ReportRequest;
-import fr.ird.observe.services.service.actions.report.ReportService;
-import fr.ird.observe.services.service.actions.report.ReportVariable;
-import fr.ird.observe.test.ObserveFixtures;
-import java.io.IOException;
-import java.net.URL;
-import java.util.List;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * Classe abstraite de test d'un report.
- * <p>
- * On définit ici le mécanisme pour tester unitairement un report et son
- * résultat.
- *
- * @author Tony Chemit - dev(a)tchemit.fr
- * @since 1.9
- */
-public abstract class AbstractReportServiceClientTest extends ServiceClientTestSupport {
-
- /** Logger */
- private static final Log log = LogFactory.getLog(AbstractReportServiceClientTest.class);
-
- protected ReportService service;
-
- /** La liste de tous les reports connus. */
- protected static List<Report> reports;
-
- /** Le report à tester. */
- private Report report;
-
- protected abstract String getReportId();
-
- @Before
- public final void setUp() throws Exception {
-
- super.setUp();
-
- service = newService(ReportService.class);
-
- // recuperation du report à tester
- report = getReport(log, getReportId());
-
- if (log.isInfoEnabled()) {
- log.info("Will use report '" + report + "'");
- }
-
- }
-
-
- /**
- * L'unique test à lancer.
- * <p>
- * On vérifie :
- * <ul>
- * <li>la syntaxe du report via {@link #testReportSyntax(Report)}</li>
- * <li>le résultat du report via {@link #testReportResult(DataMatrix)}</li>
- * </ul>
- *
- * @throws Exception pour toute erreur lors de l'execution du report
- */
- @Test
- public final void testReport() throws Exception {
-
- // test de la syntaxe du report
- testReportSyntax(report);
-
- // creation de l'executeur de report
- report = service.populateVariables(report, ObserveFixtures.TRIP_SEINE_ID_1);
-
- // preparation des variables
- prepareVariables();
-
-
- // on execute le report
- DataMatrix result = service.executeReport(report, ObserveFixtures.TRIP_SEINE_ID_1);
-
- if (log.isInfoEnabled()) {
- log.info("Result :\n" + result.getClipboardContent(true, true, false, '\t'));
- }
-
- // on verifie le resultat
- testReportResult(result);
- }
-
- protected void prepareVariables() {
-
- }
-
- protected void setVariableValue(String variableName, String id) {
-
- for (ReportVariable variable : report.getVariables()) {
-
- if (variableName.equals(variable.getName())) {
-
- Object value = variable.getValues().stream()
- .filter(DtoReference.newIdPredicate(id))
- .findFirst()
- .orElse(null);
-
- variable.setSelectedValue(value);
-
- }
-
- }
-
- }
-
- protected abstract void testReportSyntax(Report report);
-
- protected abstract void testReportResult(DataMatrix result);
-
- protected static Report getReport(Log log, String reportId) throws IOException {
- if (reports == null) {
-
- URL reportLocation =
- AbstractReportServiceClientTest.class.getResource("/observe-reports.properties");
-
- if (log.isInfoEnabled()) {
- log.info("Loading reports from " + reportLocation);
- }
-
- ReportBuilder builder = new ReportBuilder();
-
- reports = builder.load(reportLocation);
-
- builder.clear();
-
- Assert.assertNotNull(reports);
- Assert.assertFalse(reports.isEmpty());
- }
-
- Report result = null;
- // recuperation du report à tester
- for (Report report : reports) {
- if (reportId.equals(report.getId())) {
- result = report;
- break;
- }
- }
-
- Assert.assertNotNull("Could not find report with id " + reportId, reports);
- return result;
- }
-
- protected void assertReportName(Report report,
- String name,
- String description) {
- Assert.assertEquals(getReportId(), report.getId());
- Assert.assertEquals(name, report.getName());
- Assert.assertEquals(description, report.getDescription());
- }
-
- protected void assertReportDimension(Report report,
- int rows,
- int columns,
- String[] columnsHeader,
- String[] rowsHeader) {
- Assert.assertEquals(rows, report.getRows());
- Assert.assertEquals(columns, report.getColumns());
- Assert.assertArrayEquals(columnsHeader, report.getColumnHeaders());
- Assert.assertArrayEquals(rowsHeader, report.getRowHeaders());
- }
-
- protected void assertReportNbRequests(Report report, int nbRequests) {
- ReportRequest[] requests = report.getRequests();
- Assert.assertNotNull(requests);
- Assert.assertEquals(nbRequests, requests.length);
- }
-
- protected void assertReportRequestDimension(ReportRequest request,
- ReportRequest.RequestLayout layout,
- int x,
- int y) {
- Assert.assertEquals(layout, request.getLayout());
-// Assert.assertEquals(new Point(width, height), request.getLocation());
- Assert.assertEquals(x, request.getX());
- Assert.assertEquals(y, request.getY());
- }
-
- protected void assertResultDimension(DataMatrix result,
- int width,
- int height,
- int x,
- int y) {
- Assert.assertEquals(width, result.getWidth());
- Assert.assertEquals(height, result.getHeight());
- Assert.assertEquals(x, result.getX());
- Assert.assertEquals(y, result.getY());
- }
-
- protected void assertResultRow(DataMatrix result, int rowId, Object... row) {
- Object[] actualRow = result.getData()[rowId];
- Assert.assertArrayEquals(row, actualRow);
- }
-}
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/actions/report/ReportAccessoryCatchClientTest.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/actions/report/ReportAccessoryCatchClientTest.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-package fr.ird.observe.services.client.service.actions.report;
-
-
-import fr.ird.observe.services.service.actions.report.DataMatrix;
-import fr.ird.observe.services.service.actions.report.Report;
-import fr.ird.observe.services.service.actions.report.ReportRequest;
-import fr.ird.observe.test.ObserveFixtures;
-import org.junit.Assert;
-
-/**
- * Test du report {@code accessoryCatch}.
- *
- * @author Tony Chemit - dev(a)tchemit.fr
- * @since 1.9
- */
-public class ReportAccessoryCatchClientTest extends AbstractReportServiceClientTest {
-
- @Override
- protected void testReportSyntax(Report report) {
- Assert.assertNotNull(report);
- assertReportName(
- report,
- "Liste des captures accessoires selon le type de banc, filtrées par groupe",
- "Afficher les captures accessoires par groupe d'espèce\n" +
- "Les poids sont exprimés en tonnes."
- );
-
- assertReportDimension(
- report,
- -1,
- 3,
- new String[]{"Espèce",
- "Banc libre",
- "Banc objet",
- },
- null
- );
-
- assertReportNbRequests(report, 3);
-
- ReportRequest[] requests = report.getRequests();
-
- assertReportRequestDimension(
- requests[0],
- ReportRequest.RequestLayout.row,
- 0,
- 0
- );
- assertReportRequestDimension(
- requests[1],
- ReportRequest.RequestLayout.row,
- 1,
- 0
- );
- assertReportRequestDimension(
- requests[2],
- ReportRequest.RequestLayout.row,
- 2,
- 0
- );
- }
-
- @Override
- protected String getReportId() {
- return "accessoryCatch";
- }
-
- @Override
- protected void prepareVariables() {
- setVariableValue("speciesGroup", ObserveFixtures.SPECIES_GROUP_ID);
- }
-
- @Override
- protected void testReportResult(DataMatrix result) {
- assertResultDimension(result, 3, 54, 0, 0);
-
- int row = 0;
- assertResultRow(result, row++, "[FAO]MAE [sc]Aetobatus narinari [fr]Aigle de mer léopard", "-", "-");
- assertResultRow(result, row++, "[FAO]PTH [sc]Alopias pelagicus [fr]Renard pélagique", "-", "-");
- assertResultRow(result, row++, "[FAO]BTH [sc]Alopias superciliosus [fr]Renard à gros yeux", "-", "-");
- assertResultRow(result, row++, "[FAO]ALV [sc]Alopias vulpinus [fr]Renard", "-", "-");
- assertResultRow(result, row++, "[FAO]WSH [sc]Carcharodon carcharias [fr]Grand requin blanc", "-", "-");
- assertResultRow(result, row++, "[FAO]CCE [sc]Carcharhinus leucas [fr]Requin-bouledogue", "-", "-");
- assertResultRow(result, row++, "[FAO]FAL [sc]Carcharhinus falciformis [fr]Requin soyeux", "-", "+ Effectif : 17 Poids total (t) : 0.1753");
- assertResultRow(result, row++, "[FAO]OCS [sc]Carcharhinus longimanus [fr]Requin océanique", "+ Effectif : 1 Poids total (t) : 0.0447", "-");
- assertResultRow(result, row++, "[FAO]DUS [sc]Carcharhinus obscurus [fr]Requin sombre", "-", "-");
- assertResultRow(result, row++, "[FAO]PLS [sc]Dasyatys (Pteroplatytrygon) violacea [fr]Pastenague violette", "-", "-");
- assertResultRow(result, row++, "[FAO]SHL [sc]Etmopterus spp [fr]Genre Etmopterus", "-", "-");
- assertResultRow(result, row++, "[FAO]THR [sc]Alopias spp [fr]Renards de mer nca ", "-", "-");
- assertResultRow(result, row++, "[FAO]RSK [sc]Carcharhinidae spp [fr]Famille Carcharhinidae", "-", "+ Effectif : 11 Poids total (t) : 0.55");
- assertResultRow(result, row++, "[FAO]STT [sc]Dasyatidae [fr]Famille Dasyatidae", "+ Effectif : 7 Poids total (t) : 0.015", "-");
- assertResultRow(result, row++, "[FAO]MSK [sc]Lamnidae [fr]Famille Lamnidae", "-", "-");
- assertResultRow(result, row++, "[FAO]2FOD [sc]Odontaspididae [fr]Odontaspididae", "-", "-");
- assertResultRow(result, row++, "[FAO]- [sc]Rhincodontidae [fr]Famille Rhincodontidae", "-", "-");
- assertResultRow(result, row++, "[FAO]SPY [sc]Sphyrnidae [fr]Famille Sphyrnidae", "-", "+ Effectif : 1");
- assertResultRow(result, row++, "[FAO]TIG [sc]Galeocerdo cuvier [fr]Requin tigre commun", "-", "-");
- assertResultRow(result, row++, "[FAO]ISB [sc]Isistius brasiliensis [fr]Squalelet féroce", "-", "-");
- assertResultRow(result, row++, "[FAO]SMA [sc]Isurus oxyrinchus [fr]Taupe bleu", "-", "-");
- assertResultRow(result, row++, "[FAO]MAK [sc]Isurus spp [fr]Taupes", "-", "-");
- assertResultRow(result, row++, "[FAO]MAN [sc]Mobulidae [fr]Mantes, diables de mer nca ", "-", "-");
- assertResultRow(result, row++, "[FAO]MYL [sc]Myliobatis aquila [fr]Aigle commun", "-", "-");
- assertResultRow(result, row++, "[FAO]RMB [sc]Manta birostris [fr]Mante atlantique", "+ Effectif : 9 Poids total (t) : 1.1824", "-");
- assertResultRow(result, row++, "[FAO]RMT [sc]Mobula tarapacana [fr]Diable géant de Guinée", "-", "-");
- assertResultRow(result, row++, "[FAO]MNT [sc]Manta spp [fr]Raies manta", "-", "-");
- assertResultRow(result, row++, "[FAO]RMM [sc]Mobula mobular [fr]Mante mobula", "-", "-");
- assertResultRow(result, row++, "[FAO]LMP [sc]Megachasma pelagios [fr]Requin grande gueule", "-", "-");
- assertResultRow(result, row++, "[FAO]RMJ [sc]Mobula japanica [fr]Mante aiguillat", "-", "-");
- assertResultRow(result, row++, "[FAO]CVX [sc]Carcharhiniformes [fr]Ordre Carcharhiniformes", "-", "-");
- assertResultRow(result, row++, "[FAO]HDQ [sc]Heterodontiformes [fr]Ordre Heterodontiformes", "-", "-");
- assertResultRow(result, row++, "[FAO]HXW [sc]Hexanchiformes [fr]Ordre Hexanchiformes", "-", "-");
- assertResultRow(result, row++, "[FAO]LMZ [sc]Lamniformes [fr]Ordre Lamniformes", "-", "-");
- assertResultRow(result, row++, "[FAO]OCX [sc]Orectolobiformes [fr]Ordre Orectolobiformes", "-", "-");
- assertResultRow(result, row++, "[FAO]PWS [sc]Pristiophorus spp [fr]Requins-scies nca ", "-", "-");
- assertResultRow(result, row++, "[FAO]SHX [sc]Squaliformes [fr]Ordre Squaliformes", "-", "-");
- assertResultRow(result, row++, "[FAO]ASK [sc]Squatinidae [fr]Anges de mer nca ", "-", "-");
- assertResultRow(result, row++, "[FAO]BSH [sc]Prionace glauca [fr]Peau bleue", "-", "-");
- assertResultRow(result, row++, "[FAO]POR [sc]Lamna nasus [fr]Requin taupe commun", "-", "-");
- assertResultRow(result, row++, "[FAO]SRX [sc]Raie non identifiée [fr]Raie non identifiée", "-", "-");
- assertResultRow(result, row++, "[FAO]2REX [sc]Requin non identifié [fr]Requin non identifié", "-", "-");
- assertResultRow(result, row++, "[FAO]- [sc]Rhinopteridae [fr]Famille Rhinopteridae", "-", "-");
- assertResultRow(result, row++, "[FAO]NZX [sc]Rhinoptera spp [fr]Mourines", "-", "-");
- assertResultRow(result, row++, "[FAO]RMA [sc]Manta alfredi [fr]Manta Alfredi", "-", "-");
- assertResultRow(result, row++, "[FAO]RMC [sc]Mobula coilloti [fr]Mobula coilloti ", "-", "-");
- assertResultRow(result, row++, "[FAO]RMO [sc]Mobula thurstoni [fr]Mobula", "-", "-");
- assertResultRow(result, row++, "[FAO]RMV [sc]Mobula spp [fr]Mobula nca", "-", "-");
- assertResultRow(result, row++, "[FAO]BSK [sc]Cetorhinus maximus [fr]Requin pèlerin", "-", "-");
- assertResultRow(result, row++, "[FAO]RHN [sc]Rhincodon typus [fr]Requin baleine", "-", "-");
- assertResultRow(result, row++, "[FAO]SPL [sc]Sphyrna lewini [fr]Requin marteau halicorne", "-", "-");
- assertResultRow(result, row++, "[FAO]SPK [sc]Sphyrna mokarran [fr]Grand requin marteau", "-", "-");
- assertResultRow(result, row++, "[FAO]SPZ [sc]Sphyrna zygaena [fr]Requin marteau commun", "-", "-");
- assertResultRow(result, row, "[FAO]TOD [sc]Torpedinidae [fr]Torpilles, raies électriq. nca ", "-", "-");
-
-
- }
-}
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/actions/validate/ValidateServiceClientTest.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/actions/validate/ValidateServiceClientTest.java
+++ /dev/null
@@ -1,250 +0,0 @@
-package fr.ird.observe.services.client.service.actions.validate;
-
-/*
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-import com.google.common.collect.ImmutableSet;
-import fr.ird.observe.dto.referential.CountryDto;
-import fr.ird.observe.dto.referential.FpaZoneDto;
-import fr.ird.observe.dto.referential.GearCaracteristicDto;
-import fr.ird.observe.dto.referential.GearCaracteristicTypeDto;
-import fr.ird.observe.dto.referential.GearDto;
-import fr.ird.observe.dto.referential.HarbourDto;
-import fr.ird.observe.dto.referential.LengthWeightParameterDto;
-import fr.ird.observe.dto.referential.OceanDto;
-import fr.ird.observe.dto.referential.OrganismDto;
-import fr.ird.observe.dto.referential.PersonDto;
-import fr.ird.observe.dto.referential.ProgramDto;
-import fr.ird.observe.dto.referential.ReferentialDto;
-import fr.ird.observe.dto.referential.SexDto;
-import fr.ird.observe.dto.referential.SpeciesDto;
-import fr.ird.observe.dto.referential.SpeciesGroupDto;
-import fr.ird.observe.dto.referential.SpeciesListDto;
-import fr.ird.observe.dto.referential.VesselDto;
-import fr.ird.observe.dto.referential.VesselSizeCategoryDto;
-import fr.ird.observe.dto.referential.VesselTypeDto;
-import fr.ird.observe.services.client.service.ServiceClientTestSupport;
-import fr.ird.observe.services.service.actions.validate.DataValidationRequest;
-import fr.ird.observe.services.service.actions.validate.ReferentialValidationRequest;
-import fr.ird.observe.services.service.actions.validate.ValidateService;
-import fr.ird.observe.services.service.actions.validate.ValidationResult;
-import fr.ird.observe.test.ObserveFixtures;
-import org.junit.Assert;
-import org.junit.Test;
-import org.nuiton.validator.NuitonValidatorScope;
-
-/**
- * @author Tony Chemit - dev(a)tchemit.fr
- */
-public class ValidateServiceClientTest extends ServiceClientTestSupport {
-
- protected static final ImmutableSet<Class<? extends ReferentialDto>> REFERENTIAL_DTO_TYPES = ImmutableSet.of(
- CountryDto.class,
- FpaZoneDto.class,
- GearCaracteristicDto.class,
- GearCaracteristicTypeDto.class,
- GearDto.class,
- HarbourDto.class,
- LengthWeightParameterDto.class,
- OceanDto.class,
- OrganismDto.class,
- PersonDto.class,
- ProgramDto.class,
- SexDto.class,
- SpeciesDto.class,
- SpeciesGroupDto.class,
- SpeciesListDto.class,
- VesselDto.class,
- VesselSizeCategoryDto.class,
- VesselTypeDto.class
- );
-
- protected ValidateService service;
-
- @Override
- public void setUp() throws Exception {
- super.setUp();
- service = newService(ValidateService.class);
-
- }
-
- @Test
- public void testValidateReferantials() throws Exception {
-
- ReferentialValidationRequest request = new ReferentialValidationRequest();
-
- request.setValidationContext(ValidateService.UPDATE_VALIDATION_CONTEXT);
- request.setScopes(ImmutableSet.copyOf(NuitonValidatorScope.values()));
-
- request.setReferentialTypes(REFERENTIAL_DTO_TYPES);
-
- ValidationResult<ReferentialValidationRequest> result = service.validateReferential(request);
- Assert.assertNotNull(result);
- //FIXME
-
-// ImmutableMap<Class<? extends ReferentialDto>, ValidateResultForDtoType<? extends IdDto>> resultByType = result.getResultByType();
-// Assert.assertNotNull(resultByType);
-// Assert.assertEquals(59, resultByType.size());
-//
-// assertValidateResultForReferentialDtoType(resultByType, CountryDto.class, 53);
-// assertValidateResultForReferentialDtoType(resultByType, FpaZoneDto.class, 41);
-// assertValidateResultForReferentialDtoType(resultByType, GearCaracteristicDto.class, 22);
-// assertValidateResultForReferentialDtoType(resultByType, GearCaracteristicTypeDto.class, 6);
-// assertValidateResultForReferentialDtoType(resultByType, GearDto.class, 26);
-// assertValidateResultForReferentialDtoType(resultByType, HarbourDto.class, 74);
-// assertValidateResultForReferentialDtoType(resultByType, LengthWeightParameterDto.class, 352);
-// assertValidateResultForReferentialDtoType(resultByType, OceanDto.class, 3);
-// assertValidateResultForReferentialDtoType(resultByType, OrganismDto.class, 8);
-// assertValidateResultForReferentialDtoType(resultByType, PersonDto.class, 390);
-// assertValidateResultForReferentialDtoType(resultByType, ProgramDto.class, 27);
-// assertValidateResultForReferentialDtoType(resultByType, SexDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, SpeciesDto.class, 275);
-// assertValidateResultForReferentialDtoType(resultByType, SpeciesGroupDto.class, 8);
-// assertValidateResultForReferentialDtoType(resultByType, SpeciesListDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, VesselDto.class, 977);
-// assertValidateResultForReferentialDtoType(resultByType, VesselSizeCategoryDto.class, 13);
-// assertValidateResultForReferentialDtoType(resultByType, VesselTypeDto.class, 14);
-//
-// assertValidateResultForReferentialDtoType(resultByType, BaitHaulingStatusDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, BaitSettingStatusDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, BaitTypeDto.class, 16);
-// assertValidateResultForReferentialDtoType(resultByType, CatchFateLonglineDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, EncounterTypeDto.class, 12);
-// assertValidateResultForReferentialDtoType(resultByType, HealthnessDto.class, 6);
-// assertValidateResultForReferentialDtoType(resultByType, HookPositionDto.class, 13);
-// assertValidateResultForReferentialDtoType(resultByType, HookSizeDto.class, 22);
-// assertValidateResultForReferentialDtoType(resultByType, HookTypeDto.class, 13);
-// assertValidateResultForReferentialDtoType(resultByType, ItemHorizontalPositionDto.class, 3);
-// assertValidateResultForReferentialDtoType(resultByType, ItemVerticalPositionDto.class, 3);
-// assertValidateResultForReferentialDtoType(resultByType, LightsticksColorDto.class, 7);
-// assertValidateResultForReferentialDtoType(resultByType, LightsticksTypeDto.class, 2);
-// assertValidateResultForReferentialDtoType(resultByType, LineTypeDto.class, 8);
-// assertValidateResultForReferentialDtoType(resultByType, MaturityStatusDto.class, 12);
-// assertValidateResultForReferentialDtoType(resultByType, MitigationTypeDto.class, 15);
-// assertValidateResultForReferentialDtoType(resultByType, SensorBrandDto.class, 4);
-// assertValidateResultForReferentialDtoType(resultByType, SensorDataFormatDto.class, 2);
-// assertValidateResultForReferentialDtoType(resultByType, SensorTypeDto.class, 4);
-// assertValidateResultForReferentialDtoType(resultByType, SettingShapeDto.class, 6);
-// assertValidateResultForReferentialDtoType(resultByType, SizeMeasureTypeDto.class, 17);
-// assertValidateResultForReferentialDtoType(resultByType, StomacFullnessDto.class, 7);
-// assertValidateResultForReferentialDtoType(resultByType, TripTypeDto.class, 3);
-// assertValidateResultForReferentialDtoType(resultByType, VesselActivityLonglineDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, WeightMeasureTypeDto.class, 3);
-//
-// assertValidateResultForReferentialDtoType(resultByType, DetectionModeDto.class, 10);
-// assertValidateResultForReferentialDtoType(resultByType, ObjectOperationDto.class, 4);
-// assertValidateResultForReferentialDtoType(resultByType, ObservedSystemDto.class, 21);
-// assertValidateResultForReferentialDtoType(resultByType, ReasonForDiscardDto.class, 5);
-// assertValidateResultForReferentialDtoType(resultByType, ReasonForNoFishingDto.class, 13);
-// assertValidateResultForReferentialDtoType(resultByType, ReasonForNullSetDto.class, 10);
-// assertValidateResultForReferentialDtoType(resultByType, SpeciesFateDto.class, 9);
-// assertValidateResultForReferentialDtoType(resultByType, SpeciesStatusDto.class, 3);
-// assertValidateResultForReferentialDtoType(resultByType, SurroundingActivityDto.class, 8);
-// assertValidateResultForReferentialDtoType(resultByType, TransmittingBuoyOperationDto.class, 3);
-// assertValidateResultForReferentialDtoType(resultByType, TransmittingBuoyTypeDto.class, 12);
-// assertValidateResultForReferentialDtoType(resultByType, VesselActivitySeineDto.class, 23);
-// assertValidateResultForReferentialDtoType(resultByType, WeightCategoryDto.class, 101);
-// assertValidateResultForReferentialDtoType(resultByType, WindDto.class, 13);
-
- }
-
- @Test
- public void testValidateTripSeinesCreate() throws Exception {
-
- DataValidationRequest request = new DataValidationRequest();
-
- request.setValidationContext(ValidateService.UPDATE_VALIDATION_CONTEXT);
- request.setScopes(ImmutableSet.copyOf(NuitonValidatorScope.values()));
- request.setDataIds(ImmutableSet.of(ObserveFixtures.TRIP_SEINE_ID_1, ObserveFixtures.TRIP_SEINE_ID_2));
-
- ValidationResult<DataValidationRequest> result = service.validateData(request);
- Assert.assertNotNull(result);
- //FIXME
-// ImmutableMap<Class<? extends IdDto>, ValidateResultForDtoType<? extends IdDto>> resultByType = result.getResultByType();
-// Assert.assertNotNull(resultByType);
-// Assert.assertEquals(5, resultByType.size());
-//
-// assertValidateResultForDtoType(resultByType, TripSeineDto.class, 2);
-// assertValidateResultForDtoType(resultByType, RouteDto.class, 80);
-// assertValidateResultForDtoType(resultByType, ActivitySeineDto.class, 1519);
-// assertValidateResultForDtoType(resultByType, FloatingObjectDto.class, 99);
-// assertValidateResultForDtoType(resultByType, SetSeineDto.class, 77);
-
- }
-
- @Test
- public void testValidateTripSeinesUdpate() throws Exception {
-
- DataValidationRequest request = new DataValidationRequest();
-
- request.setValidationContext(ValidateService.UPDATE_VALIDATION_CONTEXT);
- request.setScopes(ImmutableSet.copyOf(NuitonValidatorScope.values()));
- request.setDataIds(ImmutableSet.of(ObserveFixtures.TRIP_SEINE_ID_1, ObserveFixtures.TRIP_SEINE_ID_2));
-
- ValidationResult<DataValidationRequest> result = service.validateData(request);
- Assert.assertNotNull(result);
- //FIXME
-
-// ImmutableMap<Class<? extends IdDto>, ValidateResultForDtoType<? extends IdDto>> resultByType = result.getResultByType();
-// Assert.assertNotNull(resultByType);
-// Assert.assertEquals(8, resultByType.size());
-//
-// assertValidateResultForDtoType(resultByType, TripSeineDto.class, 2);
-// assertValidateResultForDtoType(resultByType, RouteDto.class, 80);
-// assertValidateResultForDtoType(resultByType, ActivitySeineDto.class, 1519);
-// assertValidateResultForDtoType(resultByType, FloatingObjectDto.class, 99);
-// assertValidateResultForDtoType(resultByType, TransmittingBuoyDto.class, 42);
-// assertValidateResultForDtoType(resultByType, SetSeineDto.class, 77);
-// assertValidateResultForDtoType(resultByType, NonTargetCatchDto.class, 3);
-// assertValidateResultForDtoType(resultByType, SchoolEstimateDto.class, 27);
-
- }
-
-// protected <D extends ReferentialDto> void assertValidateResultForReferentialDtoType(ImmutableMap<Class<? extends ReferentialDto>, ValidateResultForDtoType<? extends IdDto>> resultByType, Class<D> dtoType, int expectedCount) {
-//
-// ValidateResultForDtoType<D> validateResultForDtoType = (ValidateResultForDtoType) resultByType.get(dtoType);
-// Assert.assertNotNull(validateResultForDtoType);
-// ImmutableSet<ValidateResultForDto<D>> validateResultForDtos = validateResultForDtoType.getValidateResultForDto();
-// Assert.assertNotNull(validateResultForDtos);
-// Assert.assertEquals(expectedCount, validateResultForDtos.size());
-// for (ValidateResultForDto<D> validateResultForDto : validateResultForDtos) {
-// Assert.assertNotNull(validateResultForDto.getMessages());
-// Assert.assertFalse(validateResultForDto.getMessages().isEmpty());
-// }
-//
-// }
-
-// protected <D extends IdDto> void assertValidateResultForDtoType(ImmutableMap<Class<? extends IdDto>, ValidateResultForDtoType<? extends IdDto>> resultByType, Class<D> dtoType, int expectedCount) {
-//
-// ValidateResultForDtoType<D> validateResultForDtoType = (ValidateResultForDtoType) resultByType.get(dtoType);
-// Assert.assertNotNull(validateResultForDtoType);
-// ImmutableSet<ValidateResultForDto<D>> validateResultForDtos = validateResultForDtoType.getValidateResultForDto();
-// Assert.assertNotNull(validateResultForDtos);
-// Assert.assertEquals(expectedCount, validateResultForDtos.size());
-// for (ValidateResultForDto<D> validateResultForDto : validateResultForDtos) {
-// Assert.assertNotNull(validateResultForDto.getMessages());
-// Assert.assertFalse(validateResultForDto.getMessages().isEmpty());
-// }
-//
-// }
-
-}
=====================================
services-client/src/test/java/fr/ird/observe/services/client/service/seine/TripSeineServiceClientTest.java deleted
=====================================
--- a/services-client/src/test/java/fr/ird/observe/services/client/service/seine/TripSeineServiceClientTest.java
+++ /dev/null
@@ -1,198 +0,0 @@
-package fr.ird.observe.services.client.service.seine;
-
-/*
- * #%L
- * ObServe :: Services client implementation
- * %%
- * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU 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 General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-import com.google.common.collect.Iterables;
-import fr.ird.observe.dto.data.seine.TripSeineDto;
-import fr.ird.observe.dto.data.seine.TripSeineReference;
-import fr.ird.observe.dto.form.Form;
-import fr.ird.observe.dto.reference.DataDtoReference;
-import fr.ird.observe.dto.reference.DataDtoReferenceSet;
-import fr.ird.observe.dto.referential.HarbourDto;
-import fr.ird.observe.dto.referential.OceanDto;
-import fr.ird.observe.dto.referential.PersonDto;
-import fr.ird.observe.dto.referential.ProgramDto;
-import fr.ird.observe.dto.referential.VesselDto;
-import fr.ird.observe.services.action.DeleteRequestDto;
-import fr.ird.observe.services.action.LoadFormRequestDto;
-import fr.ird.observe.services.action.PreCreateFormRequestDto;
-import fr.ird.observe.services.action.SaveRequestDto;
-import fr.ird.observe.services.client.service.ServiceClientTestSupport;
-import fr.ird.observe.services.service.data.seine.TripSeineService;
-import fr.ird.observe.test.ObserveFixtures;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.nuiton.util.DateUtil;
-
-/**
- * @author Tony Chemit - dev(a)tchemit.fr
- */
-
-public class TripSeineServiceClientTest extends ServiceClientTestSupport {
-
- protected TripSeineService service;
-
- @Override
- public void setUp() throws Exception {
- super.setUp();
-
- service = newService(TripSeineService.class);
- }
-
- @Test
- public void loadFormTest() throws Exception {
-
- Form<TripSeineDto> form = service.loadForm(LoadFormRequestDto.of(ObserveFixtures.TRIP_SEINE_ID_1));
-
- Assert.assertNotNull(form);
- TripSeineDto tripSeineDto = form.getObject();
-
- Assert.assertNull(tripSeineDto.getCaptain());
-
- Assert.assertEquals("fr.ird.observe.entities.referentiel.Person#1355399844272#0.32586441962131485", tripSeineDto.getObserver().getId());
- Assert.assertEquals("Fanchon", tripSeineDto.getObserver().getFirstName());
- Assert.assertEquals("Varenne", tripSeineDto.getObserver().getLastName());
- Assert.assertNull(tripSeineDto.getDataEntryOperator());
- Assert.assertEquals("fr.ird.observe.entities.referentiel.Vessel#1306847717532#0.7435948873477364", tripSeineDto.getVessel().getId());
- Assert.assertEquals("835", tripSeineDto.getVessel().getCode());
- Assert.assertEquals("BERNICA", tripSeineDto.getVessel().getLabel());
- Assert.assertEquals("fr.ird.observe.entities.referentiel.Ocean#1239832686152#0.8325731048817705", tripSeineDto.getOcean().getId());
- Assert.assertEquals("2", tripSeineDto.getOcean().getCode());
- Assert.assertEquals("Indien", tripSeineDto.getOcean().getLabel());
- Assert.assertNull(tripSeineDto.getDepartureHarbour());
- Assert.assertNull(tripSeineDto.getLandingHarbour());
- Assert.assertNull(tripSeineDto.getErsId());
- Assert.assertEquals(DateUtil.createDate(25, 1, 2013), tripSeineDto.getStartDate());
- Assert.assertEquals(DateUtil.createDate(27, 2, 2013), tripSeineDto.getEndDate());
- Assert.assertNull(tripSeineDto.getFormsUrl());
- Assert.assertNull(tripSeineDto.getReportsUrl());
- Assert.assertTrue(tripSeineDto.getComment().startsWith("Caractéristiques de la senne"));
-
- assertEditLabels(form, 8,
- ProgramDto.class,
- PersonDto.class,
- VesselDto.class,
- OceanDto.class,
- HarbourDto.class);
-
- }
-
- @Test
- public void preCreateTest() {
- Form<TripSeineDto> form = service.preCreate(PreCreateFormRequestDto.of(ObserveFixtures.PROGRAM_ID));
-
- Assert.assertNotNull(form);
- TripSeineDto tripSeineDto = form.getObject();
-
- Assert.assertNull(tripSeineDto.getCaptain());
- Assert.assertNull(tripSeineDto.getObserver());
- Assert.assertNull(tripSeineDto.getDataEntryOperator());
- Assert.assertNull(tripSeineDto.getVessel());
- Assert.assertNull(tripSeineDto.getOcean());
- Assert.assertNull(tripSeineDto.getDepartureHarbour());
- Assert.assertNull(tripSeineDto.getLandingHarbour());
- Assert.assertNull(tripSeineDto.getErsId());
- //Assert.assertEquals(DateUtil.getDay(ObserveServiceContextTopiaTaiste.DATE), tripSeineDto.getStartDate());
- //Assert.assertEquals(DateUtil.getDay(ObserveServiceContextTopiaTaiste.DATE), tripSeineDto.getEndDate());
- Assert.assertNull(tripSeineDto.getFormsUrl());
- Assert.assertNull(tripSeineDto.getReportsUrl());
- Assert.assertNull(tripSeineDto.getComment());
-
- assertEditLabels(form, 8,
- ProgramDto.class,
- PersonDto.class,
- VesselDto.class,
- OceanDto.class,
- HarbourDto.class);
-
- }
-
- //FIXME Ce test modifie la base, il faut trouver un moyen d'utiliser une autre base
- @Ignore
- @Test
- public void saveUpdateTest() {
-
- Form<TripSeineDto> form = service.loadForm(LoadFormRequestDto.of(ObserveFixtures.TRIP_SEINE_ID_1));
-
- TripSeineDto tripSeineDto = form.getObject();
-
-// ReferenceSetDto<PersonDto> personRefs = formDto.getReferenceSetDto(PersonDto.class);
-// ReferenceSetDto<OceanDto> oceanRefs = formDto.getReferenceSetDto(OceanDto.class);
-// ReferenceSetDto<HarbourDto> harbourRefs = formDto.getReferenceSetDto(HarbourDto.class);
-//
-// tripSeineDto.setCaptain((PersonReference) personRefs.toSet(0));
-// tripSeineDto.setDataEntryOperator((PersonReference) personRefs.toSet(2));
-//
-// tripSeineDto.setOcean((OceanReference) oceanRefs.toSet(0));
-//
-// tripSeineDto.setDepartureHarbour((HarbourReference) harbourRefs.toSet(0));
-// tripSeineDto.setLandingHarbour((HarbourReference) harbourRefs.toSet(1));
-
- tripSeineDto.setErsId("ersid");
-
- tripSeineDto.setStartDate(DateUtil.createDate(24, 8, 2015));
- tripSeineDto.setEndDate(DateUtil.createDate(24, 9, 2015));
-
- tripSeineDto.setFormsUrl("http://une.url.com/formulaire");
- tripSeineDto.setReportsUrl("http://une.url.com/rapport");
-
- tripSeineDto.setComment("Un commentaire");
-
- service.save(SaveRequestDto.of(form.getObject()));
-
- Form<TripSeineDto> formReload = service.loadForm(LoadFormRequestDto.of(ObserveFixtures.TRIP_SEINE_ID_1));
- TripSeineDto tripSeineDtoReload = formReload.getObject();
-
- Assert.assertEquals(tripSeineDto.getCaptain().getId(), tripSeineDtoReload.getCaptain().getId());
- Assert.assertEquals(tripSeineDto.getObserver().getId(), tripSeineDtoReload.getObserver().getId());
- Assert.assertEquals(tripSeineDto.getDataEntryOperator().getId(), tripSeineDtoReload.getDataEntryOperator().getId());
- Assert.assertEquals(tripSeineDto.getVessel().getId(), tripSeineDtoReload.getVessel().getId());
- Assert.assertEquals(tripSeineDto.getOcean().getId(), tripSeineDtoReload.getOcean().getId());
- Assert.assertEquals(tripSeineDto.getDepartureHarbour().getId(), tripSeineDtoReload.getDepartureHarbour().getId());
- Assert.assertEquals(tripSeineDto.getLandingHarbour().getId(), tripSeineDtoReload.getLandingHarbour().getId());
- Assert.assertEquals(tripSeineDto.getErsId(), tripSeineDtoReload.getErsId());
- Assert.assertEquals(tripSeineDto.getStartDate(), tripSeineDtoReload.getStartDate());
- Assert.assertEquals(tripSeineDto.getEndDate(), tripSeineDtoReload.getEndDate());
- Assert.assertEquals(tripSeineDto.getFormsUrl(), tripSeineDtoReload.getFormsUrl());
- Assert.assertEquals(tripSeineDto.getReportsUrl(), tripSeineDtoReload.getReportsUrl());
- Assert.assertEquals(tripSeineDto.getComment(), tripSeineDtoReload.getComment());
-
- }
-
- @Ignore
- @Test
- public void deleteTest() {
-
- service.delete(DeleteRequestDto.of(ObserveFixtures.TRIP_SEINE_ID_1));
-
- DataDtoReferenceSet<TripSeineReference> tripSeineByProgram = service.getAllTripSeine();
-
- Assert.assertEquals(2, tripSeineByProgram.size());
-
- Assert.assertTrue(Iterables.isEmpty(DataDtoReference.filterById(tripSeineByProgram.toSet(), ObserveFixtures.TRIP_SEINE_ID_1)));
-
- }
-
-
-}
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/a1b81a639a636d5e8f656aa8f78…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/a1b81a639a636d5e8f656aa8f78…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] 2 commits: review tests layout, now we got common tests for services
by Tony CHEMIT 25 Oct '17
by Tony CHEMIT 25 Oct '17
25 Oct '17
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
fd29b00e by Tony CHEMIT at 2017-10-25T14:05:55+02:00
review tests layout, now we got common tests for services
- - - - -
c562b80e by Tony CHEMIT at 2017-10-25T14:06:21+02:00
some api changes on ui, but still not working...
- - - - -
30 changed files:
- client/pom.xml
- client/src/main/java/fr/ird/observe/client/ObserveClientApplicationContext.java
- client/src/main/java/fr/ird/observe/client/db/ObserveDataSourcesManager.java
- client/src/main/java/fr/ird/observe/client/form/open/ObserveOpenDataFormUIModel.java
- client/src/main/java/fr/ird/observe/client/form/openlist/ObserveOpenDataListFormUIModel.java
- client/src/main/java/fr/ird/observe/client/form/referential/ObserveReferentialFormUIModel.java
- client/src/main/java/fr/ird/observe/client/form/simple/ObserveMainDataFormUIModel.java
- client/src/main/java/fr/ird/observe/client/form/simple/ObserveSimpleDataFormUIModel.java
- client/src/main/java/fr/ird/observe/client/form/simplelist/ObserveSimpleDataListFormUIModel.java
- client/src/main/java/fr/ird/observe/client/form/table/ObserveDataTableFormUIModel.java
- client/src/main/java/fr/ird/observe/client/ui/storage/StorageUIModel.java
- client/src/test/java/fr/ird/observe/client/ClientTestClassResource.java
- services/src/main/java/fr/ird/observe/services/service/DatabaseConnexionNotAuthorizedException.java → client/src/test/java/fr/ird/observe/client/ClientTestContext.java
- client/src/test/java/fr/ird/observe/client/ClientTestMethodResource.java
- client/src/test/java/fr/ird/observe/client/ClientTestSupport.java
- − client/src/test/java/fr/ird/observe/client/DataSourcesForTestManager.java
- client/src/test/java/fr/ird/observe/client/tools/ObserveTextGeneratorTest.java
- + client/src/test/resources/META-INF/services/fr.ird.observe.services.test.TestContext
- persistence/src/main/resources/db/migration/6.904/04_add_triggers-PG.sql
- pom.xml
- server/src/main/java/fr/ird/observe/server/security/ObserveWebSecurityApplicationContext.java
- services-client/pom.xml
- services-client/src/license/THIRD-PARTY.properties
- services/src/main/java/fr/ird/observe/services/service/LastUpdateDateService.java → services-client/src/test/java/fr/ird/observe/services/client/ServiceClientTestSuite.java
- services-client/src/test/java/fr/ird/observe/services/client/service/DataSourceServiceClientTest.java
- services-client/src/test/java/fr/ird/observe/services/client/service/PingServiceClientTest.java
- − services-client/src/test/java/fr/ird/observe/services/client/service/ReferentialServiceClientTest.java
- services-client/src/test/java/fr/ird/observe/services/client/service/ServiceClientTestSupport.java
- services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/ConsolidateDataServiceClientTest.java
- services/src/main/java/fr/ird/observe/services/service/PingService.java → services-client/src/test/java/fr/ird/observe/services/client/service/actions/consolidate/dcp/SimplifiedObjectTypeManagerTest.java
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/752ec262f5633837e90330943c…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/752ec262f5633837e90330943c…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
752ec262 by Tony CHEMIT at 2017-10-21T12:44:19+02:00
update libraries
- - - - -
4 changed files:
- dto/pom.xml
- persistence/pom.xml
- pom.xml
- services/src/main/java/fr/ird/observe/services/service/data/seine/TargetSampleService.java
Changes:
=====================================
dto/pom.xml
=====================================
--- a/dto/pom.xml
+++ b/dto/pom.xml
@@ -149,7 +149,7 @@
<dependencies>
<dependency>
<groupId>fr.ird.observe.toolkit</groupId>
- <artifactId>eugene-templates-extension</artifactId>
+ <artifactId>eugene-templates</artifactId>
<version>${observeToolkitVersion}</version>
</dependency>
</dependencies>
=====================================
persistence/pom.xml
=====================================
--- a/persistence/pom.xml
+++ b/persistence/pom.xml
@@ -215,13 +215,13 @@
</dependency>
<dependency>
<groupId>fr.ird.observe.toolkit</groupId>
- <artifactId>topia-templates-extension</artifactId>
+ <artifactId>topia-templates</artifactId>
<version>${observeToolkitVersion}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>fr.ird.observe.toolkit</groupId>
- <artifactId>eugene-templates-extension</artifactId>
+ <artifactId>eugene-templates</artifactId>
<version>${observeToolkitVersion}</version>
</dependency>
</dependencies>
=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -165,14 +165,14 @@
<httpVersion>1.0.9</httpVersion>
<xworkVersion>2.3.34</xworkVersion>
<flexmarkVersion>0.27.0</flexmarkVersion>
- <hibernateVersion>5.2.11.Final</hibernateVersion>
+ <hibernateVersion>5.2.12.Final</hibernateVersion>
<sl4jVersion>1.7.25</sl4jVersion>
<swingXVersion>1.6.5-1</swingXVersion>
<reflectionsVersion>0.9.11</reflectionsVersion>
<webmotionVersion>2.5.3</webmotionVersion>
<httpComponentsVersion>4.5.3</httpComponentsVersion>
<geoToolsVersion>17.2</geoToolsVersion>
- <guavaVersion>23.1-jre</guavaVersion>
+ <guavaVersion>23.2-jre</guavaVersion>
<!-- license header configuration -->
<license.licenseName>gpl_v3</license.licenseName>
@@ -205,7 +205,7 @@
<class-mapping.version>1.0.1</class-mapping.version>
<java-lang.version>1.0.3</java-lang.version>
- <javassist.version>3.22.0-CR2</javassist.version>
+ <javassist.version>3.22.0-GA</javassist.version>
</properties>
<dependencyManagement>
@@ -274,7 +274,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
- <version>2.5</version>
+ <version>2.6</version>
</dependency>
<!--We don't use it, but we want to use only one version-->
<dependency>
@@ -314,7 +314,7 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
- <version>4.4.7</version>
+ <version>4.4.8</version>
</dependency>
<dependency>
@@ -625,7 +625,7 @@
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
- <version>1.7.5</version>
+ <version>1.7.6</version>
</dependency>
<dependency>
=====================================
services/src/main/java/fr/ird/observe/services/service/data/seine/TargetSampleService.java
=====================================
--- a/services/src/main/java/fr/ird/observe/services/service/data/seine/TargetSampleService.java
+++ b/services/src/main/java/fr/ird/observe/services/service/data/seine/TargetSampleService.java
@@ -1,5 +1,27 @@
package fr.ird.observe.services.service.data.seine;
+/*-
+ * #%L
+ * ObServe :: Services API
+ * %%
+ * Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import fr.ird.observe.dto.data.seine.TargetLengthDto;
import fr.ird.observe.dto.data.seine.TargetSampleDto;
import fr.ird.observe.dto.reference.ReferentialDtoReferenceSet;
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/752ec262f5633837e90330943c4…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/752ec262f5633837e90330943c4…
You're receiving this email because of your account on gitlab.com.
1
0
20 Oct '17
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
f8fc4cee by Tony CHEMIT at 2017-10-20T14:38:05+02:00
use last pom + normalize jobs
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,69 +1,76 @@
-stages:
- - Docker
- - Build
- - Test
- - Staging
-image: registry.gitlab.com/ultreiaio/ird-observe/docker:latest
-docker:
+.stage_docker: &stage_docker
stage: Docker
- image: registry.gitlab.com/ultreiaio/docker/docker:latest
- services:
- - docker:dind
- script:
- - ultreiaio-docker-generate-image gitlab-ci-token $CI_BUILD_TOKEN
- only:
- - develop
- when: manual
+.stage_build: &stage_build
+ stage: Build
+.stage_test: &stage_test
+ stage: Test
+.stage_staging: &stage_staging
+ stage: Staging
.env_test: &env_test
environment:
name: test
-
.env_staging: &env_staging
environment:
name: staging
-.test_manual: &test_manual
- stage: Test
+.only_develop: &only_develop
only:
- develop
+.only_tag: &only_tag
+ only:
+ - tag
+.only_triggers: &only_triggers
+ only:
+ - triggers
+.except_triggers: &except_triggers
except:
- triggers
- when: manual
-.deploy_site: &deploy_site
+.generate-docker-image: &generate-docker-image
+ image: registry.gitlab.com/ultreiaio/docker/docker:latest
+ services:
+ - docker:dind
script:
- - ultreiaio-maven-execute 'clean install -DskipTests'
- - ultreiaio-maven-execute 'site -DperformRelease scm-publish:publish-scm'
+ - if [ -n "${GENERATE_DOCKER}" ]; then ultreiaio-docker-generate-image gitlab-ci-token $CI_BUILD_TOKEN; fi
-.deploy_demo_latest: &deploy_demo_latest
- stage: Test
+.publish-site: &publish_site
script:
- - ultreiaio-war-deploy-latest-to-demo 'server'
+ - ultreiaio-site-mono-module-publish
-.nightly: &nightly
- only:
- - triggers
+image: registry.gitlab.com/ultreiaio/${CI_PROJECT_NAME}/docker:latest
+stages:
+ - Docker
+ - Build
+ - Test
+ - Staging
-.staging: &staging
- stage: Staging
- only:
- - tags
- <<: *env_staging
+docker:
+ <<: *stage_docker
+ <<: *only_develop
+ <<: *generate-docker-image
+ when: manual
+ before_script:
+ - export GENERATE_DOCKER=true
+
+docker-trigger:
+ <<: *stage_docker
+ <<: *only_triggers
+ <<: *generate-docker-image
build:
- stage: Build
+ <<: *stage_build
+ <<: *only_develop
+ <<: *except_triggers
script:
- ultreiaio-maven-execute 'verify -DskipTests'
- only:
- - develop
- - feature/*
- except:
- - triggers
stage:
+ <<: *stage_test
<<: *env_staging
- <<: *test_manual
+ <<: *except_triggers
+ <<: *only_develop
+ when: manual
script:
- ultreiaio-release-gitlab-init
- ultreiaio-milestone-close
@@ -74,8 +81,11 @@ stage:
- ultreiaio-milestone-create
release:
+ <<: *stage_test
<<: *env_staging
- <<: *test_manual
+ <<: *except_triggers
+ <<: *only_develop
+ when: manual
script:
- ultreiaio-release-gitlab-init
- ultreiaio-milestone-close
@@ -86,49 +96,63 @@ release:
- ultreiaio-milestone-create
staging-demo:
- <<: *staging
+ <<: *stage_staging
+ <<: *env_staging
+ <<: *only_tag
script:
- ultreiaio-war-deploy-to-demo 'server'
staging-site:
- <<: *staging
- <<: *deploy_site
+ <<: *stage_staging
+ <<: *env_staging
+ <<: *only_tag
+ script:
+ - ultreiaio-site-mono-module-publish
stage-release:
- <<: *staging
+ <<: *stage_staging
+ <<: *env_staging
+ <<: *only_tag
when: manual
script:
- stage-release
-ultreiaio-stage-drop:
- <<: *staging
+stage-drop:
+ <<: *stage_staging
+ <<: *env_staging
+ <<: *only_tag
when: manual
script:
- ultreiaio-stage-drop
latest-site:
+ <<: *stage_test
<<: *env_test
- <<: *test_manual
- <<: *deploy_site
+ <<: *except_triggers
+ <<: *only_develop
+ when: manual
+ script:
+ - ultreiaio-site-mono-module-publish
latest-demo:
+ <<: *stage_test
<<: *env_test
- <<: *test_manual
- <<: *deploy_demo_latest
+ <<: *except_triggers
+ <<: *only_develop
+ when: manual
+ script:
+ - ultreiaio-war-deploy-latest-to-demo 'server'
nightly-build:
- stage: Build
- <<: *nightly
+ <<: *stage_build
+ <<: *only_triggers
script:
- - ultreiaio-maven-execute 'verify -DperformRelease'
-
-nightly-site:
- stage: Test
- <<: *env_test
- <<: *nightly
- <<: *deploy_site
+ - if [ -n "${NIGHTLY_BUILD}" ]; then ultreiaio-maven-execute 'clean verify -DperformRelease'; fi
nightly-demo:
+ <<: *stage_test
<<: *env_test
- <<: *nightly
- <<: *deploy_demo_latest
+ <<: *only_triggers
+ script:
+ - if [ -n "${NIGHTLY_BUILD}" ]; then ultreiaio-war-deploy-latest-to-demo 'server'; fi
+
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/f8fc4cee888e43273064cadc0a7…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/f8fc4cee888e43273064cadc0a7…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
ecb31935 by Tony CHEMIT at 2017-10-19T23:26:10+02:00
use new jobs api
- - - - -
2 changed files:
- .gitlab-ci.yml
- CONTRIBUTING.md
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,19 @@
-image: registry.gitlab.com/ultreiaio/docker/ird-observe:latest
-
stages:
+ - Docker
- Build
- Test
- Staging
+image: registry.gitlab.com/ultreiaio/ird-observe/docker:latest
+docker:
+ stage: Docker
+ image: registry.gitlab.com/ultreiaio/docker/docker:latest
+ services:
+ - docker:dind
+ script:
+ - ultreiaio-docker-generate-image gitlab-ci-token $CI_BUILD_TOKEN
+ only:
+ - develop
+ when: manual
.env_test: &env_test
environment:
@@ -23,13 +33,13 @@ stages:
.deploy_site: &deploy_site
script:
- - maven-execute 'clean install -DskipTests'
- - maven-execute 'site -DperformRelease scm-publish:publish-scm'
+ - ultreiaio-maven-execute 'clean install -DskipTests'
+ - ultreiaio-maven-execute 'site -DperformRelease scm-publish:publish-scm'
.deploy_demo_latest: &deploy_demo_latest
stage: Test
script:
- - war-deploy-latest-to-demo 'server'
+ - ultreiaio-war-deploy-latest-to-demo 'server'
.nightly: &nightly
only:
@@ -44,7 +54,7 @@ stages:
build:
stage: Build
script:
- - maven-execute 'verify -DskipTests'
+ - ultreiaio-maven-execute 'verify -DskipTests'
only:
- develop
- feature/*
@@ -55,30 +65,30 @@ stage:
<<: *env_staging
<<: *test_manual
script:
- - release-gitlab-init ${CI_PROJECT_PATH} ${GITLAB_USER_ID} ${GITLAB_USER_EMAIL}
- - milestone-close
- - release-start
- - release-finish
- - stage-drop
- - changelog-update-staging
- - milestone-create
+ - ultreiaio-release-gitlab-init
+ - ultreiaio-milestone-close
+ - ultreiaio-release-start
+ - ultreiaio-release-finish
+ - ultreiaio-stage-drop
+ - ultreiaio-changelog-update-staging
+ - ultreiaio-milestone-create
release:
<<: *env_staging
<<: *test_manual
script:
- - release-gitlab-init ${CI_PROJECT_PATH} ${GITLAB_USER_ID} ${GITLAB_USER_EMAIL}
- - milestone-close
- - release-start
- - release-finish
- - stage-close-and-release
- - changelog-update
- - milestone-create
+ - ultreiaio-release-gitlab-init
+ - ultreiaio-milestone-close
+ - ultreiaio-release-start
+ - ultreiaio-release-finish
+ - ultreiaio-stage-close-and-release
+ - ultreiaio-changelog-update
+ - ultreiaio-milestone-create
staging-demo:
<<: *staging
script:
- - war-deploy-to-demo 'server'
+ - ultreiaio-war-deploy-to-demo 'server'
staging-site:
<<: *staging
@@ -90,11 +100,11 @@ stage-release:
script:
- stage-release
-stage-drop:
+ultreiaio-stage-drop:
<<: *staging
when: manual
script:
- - stage-drop
+ - ultreiaio-stage-drop
latest-site:
<<: *env_test
@@ -110,7 +120,7 @@ nightly-build:
stage: Build
<<: *nightly
script:
- - maven-execute 'verify -DperformRelease'
+ - ultreiaio-maven-execute 'verify -DperformRelease'
nightly-site:
stage: Test
@@ -119,7 +129,6 @@ nightly-site:
<<: *deploy_site
nightly-demo:
- stage: Test
<<: *env_test
<<: *nightly
<<: *deploy_demo_latest
=====================================
CONTRIBUTING.md
=====================================
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,68 +1,63 @@
# Install commands
-To be able to use some usefull commands, please run this unique command. It will create a **~/ultreiaio** directory
-with some nice bash scripts.
-
-```
-wget -q -O - https://gitlab.com/ultreiaio/pom/raw/develop/bin/install.sh | bash
-```
+See [Ultreiaio/scripts](https://gitlab.com/ultreiaio/scripts/blob/master/README.….
# Perform full release with no stage
```
-bash ~/ultreiaio/milestone-close.sh
-bash ~/ultreiaio/release-start.sh
-bash ~/ultreiaio/release-finish.sh
-bash ~/ultreiaio/stage-close-and-release.sh
-bash ~/ultreiaio/changelog-update.sh
-bash ~/ultreiaio/milestone-create.sh
+ultreiaio-milestone-close
+ultreiaio-release-start
+ultreiaio-release-finish
+ultreiaio-stage-close-and-release
+ultreiaio-changelog-update
+ultreiaio-milestone-create
```
# Create Release stage
```
-bash ~/ultreiaio/milestone-close.sh
-bash ~/ultreiaio/release-start.sh
-bash ~/ultreiaio/release-finish.sh
-bash ~/ultreiaio/stage-drop.sh
-bash ~/ultreiaio/changelog-update-staging.sh
-bash ~/ultreiaio/milestone-create.sh
+ultreiaio-milestone-close
+ultreiaio-release-start
+ultreiaio-release-finish
+ultreiaio-stage-drop
+ultreiaio-changelog-update-staging
+ultreiaio-milestone-create
```
# Release stage
```
-bash ~/ultreiaio/stage-release.sh
+stage-release
```
# Drop stage
```
-bash ~/ultreiaio/stage-drop.sh
+ultreiaio-stage-drop
```
# Regenerate changelog
```
-bash ~/ultreiaio/changelog-update.sh
+ultreiaio-changelog-update
```
# Regenerate staging changelog
```
-bash ~/ultreiaio/changelog-update-staging.sh
+ultreiaio-changelog-update-staging
```
# Generate site
```
-bash ~/ultreiaio/simple-site-publish.sh
+site-mono-module-publish
```
# Deploy latest demo
```
-bash ~/ultreiaio/war-deploy-latest-to-demo 'server'
+ultreiaio-war-deploy-latest-to-demo 'server'
```
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/ecb31935295fe516e878603b6b4…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/ecb31935295fe516e878603b6b4…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
f299d92c by Tony CHEMIT at 2017-10-19T13:37:49+02:00
review jobs
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,28 +1,9 @@
-image: java:8u102-jdk
+image: registry.gitlab.com/ultreiaio/docker/ird-observe:latest
stages:
- Build
- Test
- Staging
- - Production
-
-.before_script_default: &before_script_default
- before_script:
- - eval $(ssh-agent -s)
- - ssh-add <(echo "$SSH_PRIVATE_KEY")
- - mkdir -p ~/.ssh
- - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- - (cd ~ ; git clone ssh://git@gitlab.com/ultreiaio/env.git)
- - . ~/env/bin/prepare-env "$GITLAB_USER_ID" "$GITLAB_USER_EMAIL"
-
-.before_script_clone: &before_script_clone
- before_script:
- - eval $(ssh-agent -s)
- - ssh-add <(echo "$SSH_PRIVATE_KEY")
- - mkdir -p ~/.ssh
- - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- - (cd ~ ; git clone ssh://git@gitlab.com/ultreiaio/env.git)
- - . ~/env/bin/prepare-env-with-clone "$CI_PROJECT_PATH" "$CI_PROJECT_NAME" "$GITLAB_USER_ID" "$GITLAB_USER_EMAIL"
.env_test: &env_test
environment:
@@ -32,9 +13,13 @@ stages:
environment:
name: staging
-.env_production: &env_production
- environment:
- name: production
+.test_manual: &test_manual
+ stage: Test
+ only:
+ - develop
+ except:
+ - triggers
+ when: manual
.deploy_site: &deploy_site
script:
@@ -46,9 +31,18 @@ stages:
script:
- war-deploy-latest-to-demo 'server'
+.nightly: &nightly
+ only:
+ - triggers
+
+.staging: &staging
+ stage: Staging
+ only:
+ - tags
+ <<: *env_staging
+
build:
stage: Build
- <<: *before_script_default
script:
- maven-execute 'verify -DskipTests'
only:
@@ -57,21 +51,11 @@ build:
except:
- triggers
-.test_manual: &test_manual
- stage: Test
- <<: *before_script_default
- only:
- - develop
- except:
- - triggers
- when: manual
-
stage:
<<: *env_staging
<<: *test_manual
- <<: *before_script_clone
script:
- - apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
+ - release-gitlab-init ${CI_PROJECT_PATH} ${GITLAB_USER_ID} ${GITLAB_USER_EMAIL}
- milestone-close
- release-start
- release-finish
@@ -82,9 +66,8 @@ stage:
release:
<<: *env_staging
<<: *test_manual
- <<: *before_script_clone
script:
- - apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
+ - release-gitlab-init ${CI_PROJECT_PATH} ${GITLAB_USER_ID} ${GITLAB_USER_EMAIL}
- milestone-close
- release-start
- release-finish
@@ -92,12 +75,26 @@ release:
- changelog-update
- milestone-create
-deploy-snapshot:
- <<: *env_staging
- <<: *test_manual
+staging-demo:
+ <<: *staging
+ script:
+ - war-deploy-to-demo 'server'
+
+staging-site:
+ <<: *staging
+ <<: *deploy_site
+
+stage-release:
+ <<: *staging
+ when: manual
+ script:
+ - stage-release
+
+stage-drop:
+ <<: *staging
+ when: manual
script:
- - apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
- - maven-execute 'deploy -DperformRelease'
+ - stage-drop
latest-site:
<<: *env_test
@@ -109,16 +106,10 @@ latest-demo:
<<: *test_manual
<<: *deploy_demo_latest
-.nightly: &nightly
- <<: *before_script_default
- only:
- - triggers
-
nightly-build:
stage: Build
<<: *nightly
script:
- - apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
- maven-execute 'verify -DperformRelease'
nightly-site:
@@ -132,31 +123,3 @@ nightly-demo:
<<: *env_test
<<: *nightly
<<: *deploy_demo_latest
-
-.staging: &staging
- stage: Staging
- only:
- - tags
- <<: *env_staging
- <<: *before_script_default
-
-staging-demo:
- <<: *staging
- script:
- - war-deploy-to-demo 'server'
-
-staging-site:
- <<: *staging
- <<: *deploy_site
-
-stage-release:
- <<: *staging
- when: manual
- script:
- - stage-release
-
-stage-drop:
- <<: *staging
- when: manual
- script:
- - stage-drop
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/f299d92cd13d892b740338b4a2d…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/f299d92cd13d892b740338b4a2d…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
792ee029 by Tony CHEMIT at 2017-10-18T23:40:32+02:00
use pom 34
- - - - -
27 changed files:
- .gitlab-ci.yml
- .mvn/pom.gitflow.develop
- .mvn/pom.gitflow.master
- CONTRIBUTING.md
- client-configuration/.mvn/pom.gitflow.develop
- client-configuration/.mvn/pom.gitflow.master
- client/.mvn/pom.gitflow.develop
- client/.mvn/pom.gitflow.master
- dto/.mvn/pom.gitflow.develop
- dto/.mvn/pom.gitflow.master
- persistence/.mvn/pom.gitflow.develop
- persistence/.mvn/pom.gitflow.master
- pom.xml
- server-configuration/.mvn/pom.gitflow.develop
- server-configuration/.mvn/pom.gitflow.master
- server/.mvn/pom.gitflow.develop
- server/.mvn/pom.gitflow.master
- services-client/.mvn/pom.gitflow.develop
- services-client/.mvn/pom.gitflow.master
- services-local/.mvn/pom.gitflow.develop
- services-local/.mvn/pom.gitflow.master
- services/.mvn/pom.gitflow.develop
- services/.mvn/pom.gitflow.master
- test/.mvn/pom.gitflow.develop
- test/.mvn/pom.gitflow.master
- validation/.mvn/pom.gitflow.develop
- validation/.mvn/pom.gitflow.master
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,7 +13,7 @@ stages:
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- (cd ~ ; git clone ssh://git@gitlab.com/ultreiaio/env.git)
- - . ~/env/bin/prepare-env.sh "$GITLAB_USER_ID" "$GITLAB_USER_EMAIL"
+ - . ~/env/bin/prepare-env "$GITLAB_USER_ID" "$GITLAB_USER_EMAIL"
.before_script_clone: &before_script_clone
before_script:
@@ -22,7 +22,7 @@ stages:
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- (cd ~ ; git clone ssh://git@gitlab.com/ultreiaio/env.git)
- - . ~/env/bin/prepare-env-with-clone.sh "$CI_PROJECT_PATH" "$CI_PROJECT_NAME" "$GITLAB_USER_ID" "$GITLAB_USER_EMAIL"
+ - . ~/env/bin/prepare-env-with-clone "$CI_PROJECT_PATH" "$CI_PROJECT_NAME" "$GITLAB_USER_ID" "$GITLAB_USER_EMAIL"
.env_test: &env_test
environment:
@@ -38,19 +38,19 @@ stages:
.deploy_site: &deploy_site
script:
- - maven-execute.sh 'clean install -DskipTests'
- - maven-execute.sh 'site -DperformRelease scm-publish:publish-scm'
+ - maven-execute 'clean install -DskipTests'
+ - maven-execute 'site -DperformRelease scm-publish:publish-scm'
.deploy_demo_latest: &deploy_demo_latest
stage: Test
script:
- - war-deploy-latest-to-demo.sh 'server'
+ - war-deploy-latest-to-demo 'server'
build:
stage: Build
<<: *before_script_default
script:
- - maven-execute.sh 'verify -DskipTests'
+ - maven-execute 'verify -DskipTests'
only:
- develop
- feature/*
@@ -72,12 +72,12 @@ stage:
<<: *before_script_clone
script:
- apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
- - milestone-close.sh
- - release-start.sh
- - release-finish.sh
- - stage-drop.sh
- - changelog-update-staging.sh
- - milestone-create.sh
+ - milestone-close
+ - release-start
+ - release-finish
+ - stage-drop
+ - changelog-update-staging
+ - milestone-create
release:
<<: *env_staging
@@ -85,19 +85,19 @@ release:
<<: *before_script_clone
script:
- apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
- - milestone-close.sh
- - release-start.sh
- - release-finish.sh
- - stage-close-and-release.sh
- - changelog-update.sh
- - milestone-create.sh
+ - milestone-close
+ - release-start
+ - release-finish
+ - stage-close-and-release
+ - changelog-update
+ - milestone-create
deploy-snapshot:
<<: *env_staging
<<: *test_manual
script:
- apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
- - maven-execute.sh 'deploy -DperformRelease'
+ - maven-execute 'deploy -DperformRelease'
latest-site:
<<: *env_test
@@ -119,7 +119,7 @@ nightly-build:
<<: *nightly
script:
- apt-get update -y && apt-get install libc6-i386 libx32stdc++6 -y
- - maven-execute.sh 'verify -DperformRelease'
+ - maven-execute 'verify -DperformRelease'
nightly-site:
stage: Test
@@ -143,7 +143,7 @@ nightly-demo:
staging-demo:
<<: *staging
script:
- - war-deploy-to-demo.sh 'server'
+ - war-deploy-to-demo 'server'
staging-site:
<<: *staging
@@ -153,10 +153,10 @@ stage-release:
<<: *staging
when: manual
script:
- - stage-release.sh
+ - stage-release
stage-drop:
<<: *staging
when: manual
script:
- - stage-drop.sh
+ - stage-drop
=====================================
.mvn/pom.gitflow.develop
=====================================
--- a/.mvn/pom.gitflow.develop
+++ b/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
.mvn/pom.gitflow.master
=====================================
--- a/.mvn/pom.gitflow.master
+++ b/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
CONTRIBUTING.md
=====================================
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -62,7 +62,7 @@ bash ~/ultreiaio/simple-site-publish.sh
# Deploy latest demo
```
-bash ~/ultreiaio/war-deploy-latest-to-demo.sh 'server'
+bash ~/ultreiaio/war-deploy-latest-to-demo 'server'
```
=====================================
client-configuration/.mvn/pom.gitflow.develop
=====================================
--- a/client-configuration/.mvn/pom.gitflow.develop
+++ b/client-configuration/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
client-configuration/.mvn/pom.gitflow.master
=====================================
--- a/client-configuration/.mvn/pom.gitflow.master
+++ b/client-configuration/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
client/.mvn/pom.gitflow.develop
=====================================
--- a/client/.mvn/pom.gitflow.develop
+++ b/client/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
client/.mvn/pom.gitflow.master
=====================================
--- a/client/.mvn/pom.gitflow.master
+++ b/client/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
dto/.mvn/pom.gitflow.develop
=====================================
--- a/dto/.mvn/pom.gitflow.develop
+++ b/dto/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
dto/.mvn/pom.gitflow.master
=====================================
--- a/dto/.mvn/pom.gitflow.master
+++ b/dto/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
persistence/.mvn/pom.gitflow.develop
=====================================
--- a/persistence/.mvn/pom.gitflow.develop
+++ b/persistence/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
persistence/.mvn/pom.gitflow.master
=====================================
--- a/persistence/.mvn/pom.gitflow.master
+++ b/persistence/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
<parent>
<groupId>io.ultreia.maven</groupId>
<artifactId>pom</artifactId>
- <version>2017.33</version>
+ <version>2017.34</version>
</parent>
<groupId>fr.ird.observe</groupId>
=====================================
server-configuration/.mvn/pom.gitflow.develop
=====================================
--- a/server-configuration/.mvn/pom.gitflow.develop
+++ b/server-configuration/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
server-configuration/.mvn/pom.gitflow.master
=====================================
--- a/server-configuration/.mvn/pom.gitflow.master
+++ b/server-configuration/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
server/.mvn/pom.gitflow.develop
=====================================
--- a/server/.mvn/pom.gitflow.develop
+++ b/server/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
server/.mvn/pom.gitflow.master
=====================================
--- a/server/.mvn/pom.gitflow.master
+++ b/server/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
services-client/.mvn/pom.gitflow.develop
=====================================
--- a/services-client/.mvn/pom.gitflow.develop
+++ b/services-client/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
services-client/.mvn/pom.gitflow.master
=====================================
--- a/services-client/.mvn/pom.gitflow.master
+++ b/services-client/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
services-local/.mvn/pom.gitflow.develop
=====================================
--- a/services-local/.mvn/pom.gitflow.develop
+++ b/services-local/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
services-local/.mvn/pom.gitflow.master
=====================================
--- a/services-local/.mvn/pom.gitflow.master
+++ b/services-local/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
services/.mvn/pom.gitflow.develop
=====================================
--- a/services/.mvn/pom.gitflow.develop
+++ b/services/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
services/.mvn/pom.gitflow.master
=====================================
--- a/services/.mvn/pom.gitflow.master
+++ b/services/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
test/.mvn/pom.gitflow.develop
=====================================
--- a/test/.mvn/pom.gitflow.develop
+++ b/test/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
test/.mvn/pom.gitflow.master
=====================================
--- a/test/.mvn/pom.gitflow.master
+++ b/test/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
=====================================
validation/.mvn/pom.gitflow.develop
=====================================
--- a/validation/.mvn/pom.gitflow.develop
+++ b/validation/.mvn/pom.gitflow.develop
@@ -1 +1 @@
-master
\ No newline at end of file
+develop
\ No newline at end of file
=====================================
validation/.mvn/pom.gitflow.master
=====================================
--- a/validation/.mvn/pom.gitflow.master
+++ b/validation/.mvn/pom.gitflow.master
@@ -1 +1 @@
-develop
\ No newline at end of file
+master
\ No newline at end of file
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/792ee029dc0e13f70e612f6e806…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/792ee029dc0e13f70e612f6e806…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
6960a0fc by Tony CHEMIT at 2017-10-15T14:22:56+02:00
use last pom
- - - - -
1 changed file:
- pom.xml
Changes:
=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
<parent>
<groupId>io.ultreia.maven</groupId>
<artifactId>pom</artifactId>
- <version>2017.33-SNAPSHOT</version>
+ <version>2017.33</version>
</parent>
<groupId>fr.ird.observe</groupId>
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/6960a0fc1e2cc06bec2137a473c…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/6960a0fc1e2cc06bec2137a473c…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] 2 commits: use jaxx-generate pom project file
by Tony CHEMIT 15 Oct '17
by Tony CHEMIT 15 Oct '17
15 Oct '17
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
25548152 by Tony CHEMIT at 2017-10-15T13:39:26+02:00
use jaxx-generate pom project file
- - - - -
8b3b8ab9 by Tony CHEMIT at 2017-10-15T13:49:34+02:00
add pom project files
- - - - -
30 changed files:
- + .mvn/pom.gitflow.develop
- + .mvn/pom.gitflow.master
- + client-configuration/.mvn/pom.gitflow.develop
- + client-configuration/.mvn/pom.gitflow.master
- + client/.mvn/jaxx-generate
- + client/.mvn/pom.gitflow.develop
- + client/.mvn/pom.gitflow.master
- client/pom.xml
- + dto/.mvn/pom.gitflow.develop
- + dto/.mvn/pom.gitflow.master
- + observe/.mvn/pom.gitflow.develop
- + observe/.mvn/pom.gitflow.master
- + persistence/.mvn/pom.gitflow.develop
- + persistence/.mvn/pom.gitflow.master
- pom.xml
- + server-configuration/.mvn/pom.gitflow.develop
- + server-configuration/.mvn/pom.gitflow.master
- + server/.mvn/pom.gitflow.develop
- + server/.mvn/pom.gitflow.master
- + services-client/.mvn/pom.gitflow.develop
- + services-client/.mvn/pom.gitflow.master
- + services-local/.mvn/pom.gitflow.develop
- + services-local/.mvn/pom.gitflow.master
- + services/.mvn/pom.gitflow.develop
- + services/.mvn/pom.gitflow.master
- + test/.mvn/pom.gitflow.develop
- + test/.mvn/pom.gitflow.master
- + validation/.mvn/pom.gitflow.develop
- + validation/.mvn/pom.gitflow.master
- validation/pom.xml
Changes:
=====================================
.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
client-configuration/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/client-configuration/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
client-configuration/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/client-configuration/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
client/.mvn/jaxx-generate
=====================================
--- /dev/null
+++ b/client/.mvn/jaxx-generate
=====================================
client/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/client/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
client/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/client/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
client/pom.xml
=====================================
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -682,30 +682,23 @@
</configuration>
</plugin>
+ <plugin>
+ <groupId>io.ultreia.java4all.jaxx</groupId>
+ <artifactId>jaxx-maven-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.geotools</groupId>
+ <artifactId>gt-swing</artifactId>
+ <version>${geoToolsVersion}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
</plugins>
</pluginManagement>
<plugins>
<plugin>
- <groupId>io.ultreia.java4all.jaxx</groupId>
- <artifactId>jaxx-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.geotools</groupId>
- <artifactId>gt-swing</artifactId>
- <version>${geoToolsVersion}</version>
- </dependency>
- </dependencies>
- </plugin>
-
- <plugin>
<groupId>io.ultreia.java4all.i18n</groupId>
<artifactId>i18n-maven-plugin</artifactId>
<executions>
=====================================
dto/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/dto/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
dto/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/dto/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
observe/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/observe/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
observe/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/observe/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
persistence/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/persistence/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
persistence/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/persistence/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,6 @@
<eugenePluginVersion>3.0-alpha-16</eugenePluginVersion>
<processorPluginVersion>1.3</processorPluginVersion>
- <jaxxVersion>3.0-alpha-16</jaxxVersion>
<nuitonI18nVersion>4.0-alpha-4</nuitonI18nVersion>
<nuitonConfigVersion>3.3</nuitonConfigVersion>
<topiaVersion>3.3</topiaVersion>
@@ -448,90 +447,90 @@
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-runtime-spi</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-runtime</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-runtime-swing-application</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-runtime-swing-wizard</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-validator</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-error</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-gis</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-datetime</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-select</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-about</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-number</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-file</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-status</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-config</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-temperature</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
</dependency>
<!--swingX -->
@@ -810,7 +809,7 @@
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-gis</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
</dependency>
<dependency>
<groupId>org.nuiton</groupId>
@@ -859,7 +858,7 @@
<plugin>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-maven-plugin</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
</plugin>
<plugin>
=====================================
server-configuration/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/server-configuration/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
server-configuration/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/server-configuration/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
server/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/server/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
server/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/server/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
services-client/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/services-client/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
services-client/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/services-client/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
services-local/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/services-local/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
services-local/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/services-local/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
services/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/services/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
services/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/services/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
test/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/test/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
test/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/test/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
validation/.mvn/pom.gitflow.develop
=====================================
--- /dev/null
+++ b/validation/.mvn/pom.gitflow.develop
@@ -0,0 +1 @@
+master
\ No newline at end of file
=====================================
validation/.mvn/pom.gitflow.master
=====================================
--- /dev/null
+++ b/validation/.mvn/pom.gitflow.master
@@ -0,0 +1 @@
+develop
\ No newline at end of file
=====================================
validation/pom.xml
=====================================
--- a/validation/pom.xml
+++ b/validation/pom.xml
@@ -161,7 +161,7 @@
<dependency>
<groupId>io.ultreia.java4all.jaxx</groupId>
<artifactId>jaxx-widgets-gis</artifactId>
- <version>${jaxxVersion}</version>
+ <version>${jaxx.version}</version>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/06b9eb7beb3ac1d41a26e9e390…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/compare/06b9eb7beb3ac1d41a26e9e390…
You're receiving this email because of your account on gitlab.com.
1
0
15 Oct '17
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
06b9eb7b by Tony CHEMIT at 2017-10-15T13:29:04+02:00
use pom new project files
- - - - -
27 changed files:
- + .mvn/pom.projectId
- + .mvn/pom.stageId
- + client-configuration/.mvn/pom.projectId
- + client-configuration/.mvn/pom.stageId
- + client/.mvn/pom.projectId
- + client/.mvn/pom.stageId
- + dto/.mvn/pom.projectId
- + dto/.mvn/pom.stageId
- + observe/.mvn/pom.projectId
- + observe/.mvn/pom.stageId
- + persistence/.mvn/pom.projectId
- + persistence/.mvn/pom.stageId
- pom.xml
- + server-configuration/.mvn/pom.projectId
- + server-configuration/.mvn/pom.stageId
- + server/.mvn/pom.projectId
- + server/.mvn/pom.stageId
- + services-client/.mvn/pom.projectId
- + services-client/.mvn/pom.stageId
- + services-local/.mvn/pom.projectId
- + services-local/.mvn/pom.stageId
- + services/.mvn/pom.projectId
- + services/.mvn/pom.stageId
- + test/.mvn/pom.projectId
- + test/.mvn/pom.stageId
- + validation/.mvn/pom.projectId
- + validation/.mvn/pom.stageId
Changes:
=====================================
.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
client-configuration/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/client-configuration/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
client-configuration/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/client-configuration/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
client/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/client/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
client/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/client/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
dto/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/dto/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
dto/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/dto/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
observe/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/observe/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
observe/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/observe/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
persistence/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/persistence/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
persistence/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/persistence/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
<parent>
<groupId>io.ultreia.maven</groupId>
<artifactId>pom</artifactId>
- <version>2017.32</version>
+ <version>2017.33-SNAPSHOT</version>
</parent>
<groupId>fr.ird.observe</groupId>
=====================================
server-configuration/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/server-configuration/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
server-configuration/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/server-configuration/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
server/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/server/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
server/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/server/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
services-client/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/services-client/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
services-client/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/services-client/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
services-local/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/services-local/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
services-local/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/services-local/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
services/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/services/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
services/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/services/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
test/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/test/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
test/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/test/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
=====================================
validation/.mvn/pom.projectId
=====================================
--- /dev/null
+++ b/validation/.mvn/pom.projectId
@@ -0,0 +1 @@
+ird-observe
\ No newline at end of file
=====================================
validation/.mvn/pom.stageId
=====================================
--- /dev/null
+++ b/validation/.mvn/pom.stageId
@@ -0,0 +1 @@
+frirdobserve
\ No newline at end of file
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/06b9eb7beb3ac1d41a26e9e3900…
---
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/06b9eb7beb3ac1d41a26e9e3900…
You're receiving this email because of your account on gitlab.com.
1
0