This is an automated email from the git hooks/post-receive script. New commit to branch feature/8429 in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit eac470cdc481545d4de110eba5e5093e2848ce46 Author: Tony CHEMIT <chemit@codelutin.com> Date: Tue Nov 8 11:08:43 2016 +0100 Ajout d'un test sur le nouveau rapport --- .../actions/report/ReportSeineEquipmentsTest.java | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/services-topia/src/test/java/fr/ird/observe/services/topia/service/actions/report/ReportSeineEquipmentsTest.java b/services-topia/src/test/java/fr/ird/observe/services/topia/service/actions/report/ReportSeineEquipmentsTest.java new file mode 100644 index 0000000..c471c81 --- /dev/null +++ b/services-topia/src/test/java/fr/ird/observe/services/topia/service/actions/report/ReportSeineEquipmentsTest.java @@ -0,0 +1,85 @@ +/* + * #%L + * ObServe :: Services ToPIA Implementation + * %% + * Copyright (C) 2008 - 2016 IRD, Code Lutin, Tony Chemit + * %% + * 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.topia.service.actions.report; + + +import fr.ird.observe.services.dto.actions.report.DataMatrix; +import fr.ird.observe.services.dto.actions.report.Report; +import fr.ird.observe.services.dto.actions.report.ReportRequest; +import org.junit.Assert; + +/** + * Test du report {@code discardedAccessoire}. + * + * @author Tony Chemit - chemit@codelutin.com + * @since 1.9 + */ +public class ReportSeineEquipmentsTest extends AbstractReportServiceTopiaTest { + + @Override + protected void testReportSyntax(Report report) { + Assert.assertNotNull(report); + assertReportName( + report, + "Liste des équipements", + "Afficher les équipements" + ); + + assertReportDimension( + report, + -1, + 4, + new String[]{"Equipement", + "Nombre", + "Utilisé dans la marée", + "Mesures", + } + ); + + assertReportNbRequests(report, 1); + + ReportRequest[] requests = report.getRequests(); + + assertReportRequestDimension( + requests[0], + ReportRequest.RequestLayout.row, + 0, + 0 + ); + } + + @Override + protected String getReportId() { + return "tripSeineGearUseFeatures"; + } + + @Override + protected void testReportResult(DataMatrix result) { + + assertResultDimension(result, 4, 2, 0, 0); + + assertResultRow(result, 0, "Aucun code - Radar de route", "1", "Oui", "( Aucun code - Portée [ m ] = 50 )"); + assertResultRow(result, 1, "Aucun code - Radeau", "1", "Oui", "( Aucun code - Hauteur [ m ] = 3 ), ( Aucun code - Non maillant (oui/non) pourquoi pas : maillant oui/non ? = Oui ), ( Aucun code - Matériau écologique (oui/non) = Non )"); + + } + +} -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.