diff --git a/pom.xml b/pom.xml index 679864fb2f4ac2b6a06565e2fd34397743078509..7bd435c7919ac1908546499f9b93cd79d5a92b1e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>fr.agrometinfo</groupId> <artifactId>www</artifactId> - <version>0.1.2-SNAPSHOT</version> + <version>0.1.3-SNAPSHOT</version> <packaging>pom</packaging> <name>AgroMetInfo web app</name> <description>Website for AgroMetInfo in Jakarta EE 10 and GWT.</description> @@ -424,7 +424,10 @@ <includeResources>true</includeResources> <includeTestResources>false</includeTestResources> <includeTestSourceDirectory>false</includeTestSourceDirectory> + <failsOnError>true</failsOnError> + <failOnViolation>true</failOnViolation> <propertyExpansion>basedir=${project.basedir}</propertyExpansion> + <violationSeverity>warning</violationSeverity> </configuration> </plugin> <plugin> diff --git a/www-client/pom.xml b/www-client/pom.xml index 131a2a94ed763c6c70a2c3f3d3ffd9a2396bd7e2..02544aaa93cb3669ebdcce60a4b73f6297a8a27d 100644 --- a/www-client/pom.xml +++ b/www-client/pom.xml @@ -7,7 +7,7 @@ <parent> <groupId>fr.agrometinfo</groupId> <artifactId>www</artifactId> - <version>0.1.2-SNAPSHOT</version> + <version>0.1.3-SNAPSHOT</version> </parent> <artifactId>www-client</artifactId> diff --git a/www-client/src/main/java/fr/agrometinfo/www/client/i18n/AppMessages.java b/www-client/src/main/java/fr/agrometinfo/www/client/i18n/AppMessages.java index 64fcdcc8383276cd1d05a709b65aec7cc53fddd0..048772952582938d4fb1681d285b47b76fc7d76e 100644 --- a/www-client/src/main/java/fr/agrometinfo/www/client/i18n/AppMessages.java +++ b/www-client/src/main/java/fr/agrometinfo/www/client/i18n/AppMessages.java @@ -31,8 +31,8 @@ public interface AppMessages extends Messages { * @param details failure details * @return translation */ - @DefaultMessage("Failed to retrieve indicator categories: {0}.") - String failureRetrieveIndicatorCategories(String details); + @DefaultMessage("Failed to retrieve periods: {0}.") + String failureRetrievePeriods(String details); /** * @param statusCode HTTP status code diff --git a/www-client/src/main/java/fr/agrometinfo/www/client/view/LayoutView.java b/www-client/src/main/java/fr/agrometinfo/www/client/view/LayoutView.java index c1b8f3b228144820b5037d6ca61bc48480edaee1..6a1be8778222f245672334ef2f80beda61430269 100644 --- a/www-client/src/main/java/fr/agrometinfo/www/client/view/LayoutView.java +++ b/www-client/src/main/java/fr/agrometinfo/www/client/view/LayoutView.java @@ -187,7 +187,7 @@ public final class LayoutView extends AbstractBaseView<LayoutPresenter> implemen @Override public void failureNotification(final FailedResponseBean failedResponse) { - this.notification(MSGS.failureRetrieveIndicatorCategories(getDetails(failedResponse))); + this.notification(MSGS.failureRetrievePeriods(getDetails(failedResponse))); } /** diff --git a/www-client/src/main/resources/fr/agrometinfo/www/client/i18n/AppMessages_fr.properties b/www-client/src/main/resources/fr/agrometinfo/www/client/i18n/AppMessages_fr.properties index 5ee6f48c8586db5c54b56321e0f30c99fea12659..685d59c938c4231f76a24a6b4d30000d9f4addf9 100644 --- a/www-client/src/main/resources/fr/agrometinfo/www/client/i18n/AppMessages_fr.properties +++ b/www-client/src/main/resources/fr/agrometinfo/www/client/i18n/AppMessages_fr.properties @@ -2,10 +2,10 @@ account = Compte de {0} ({1}) averageValue = Valeur moyenne de l’indicateur {0} ({1}) en {2} sur {3} failureStatusCode = Code d’état HTTP : {0} -nbOfIndicatorPeriods[\=0] = Aucune catégorie d’indicateurs. -nbOfIndicatorPeriods[\=1] = Une catégorie d’indicateurs. -nbOfIndicatorPeriods[one] = Une catégorie d’indicateurs. -nbOfIndicatorPeriods = {0} catégories d’indicateurs. +nbOfIndicatorPeriods[\=0] = Aucune période. +nbOfIndicatorPeriods[\=1] = Une période. +nbOfIndicatorPeriods[one] = Une période. +nbOfIndicatorPeriods = {0} période. nbOfIndicators[\=0] = Aucun indicateur. nbOfIndicators[\=1] = Un indicateur. nbOfIndicators[one] = Un indicateur. diff --git a/www-server/pom.xml b/www-server/pom.xml index b2e33368c323cdca3dc76acdc7408dd15e35740b..4a925c1bfd60cb38cf0fe15793cea29043599ebc 100644 --- a/www-server/pom.xml +++ b/www-server/pom.xml @@ -7,7 +7,7 @@ <parent> <groupId>fr.agrometinfo</groupId> <artifactId>www</artifactId> - <version>0.1.2-SNAPSHOT</version> + <version>0.1.3-SNAPSHOT</version> </parent> <artifactId>www-server</artifactId> diff --git a/www-server/src/test/java/fr/agrometinfo/www/server/rs/IndicatorResourceTest.java b/www-server/src/test/java/fr/agrometinfo/www/server/rs/IndicatorResourceTest.java index 8add6c19dcded99708786afd0c30fc842588090e..7ac7f1384fbc5dd46bae98ab8c07d9205bff02d1 100644 --- a/www-server/src/test/java/fr/agrometinfo/www/server/rs/IndicatorResourceTest.java +++ b/www-server/src/test/java/fr/agrometinfo/www/server/rs/IndicatorResourceTest.java @@ -15,6 +15,8 @@ import fr.agrometinfo.www.server.dao.DailyValueDao; import fr.agrometinfo.www.server.dao.DailyValueDaoHibernate; import fr.agrometinfo.www.server.dao.IndicatorDao; import fr.agrometinfo.www.server.dao.IndicatorDaoHibernate; +import fr.agrometinfo.www.server.dao.MonthlyValueDao; +import fr.agrometinfo.www.server.dao.MonthlyValueDaoHibernate; import fr.agrometinfo.www.server.dao.RegionDao; import fr.agrometinfo.www.server.dao.RegionDaoHibernate; import jakarta.ws.rs.core.Application; @@ -37,6 +39,7 @@ class IndicatorResourceTest extends JerseyTest { final CellDao cellDao = new CellDaoHibernate(); final DailyValueDao dailyValueDao = new DailyValueDaoHibernate(); final IndicatorDao indicatorDao = new IndicatorDaoHibernate(); + final MonthlyValueDao monthlyValueDao = new MonthlyValueDaoHibernate(); final RegionDao regionDao = new RegionDaoHibernate(); return new ResourceConfig(IndicatorResource.class).register(new AbstractBinder() { @Override @@ -44,6 +47,7 @@ class IndicatorResourceTest extends JerseyTest { bind(cellDao).to(CellDao.class); bind(dailyValueDao).to(DailyValueDao.class); bind(indicatorDao).to(IndicatorDao.class); + bind(monthlyValueDao).to(MonthlyValueDao.class); bind(regionDao).to(RegionDao.class); } }); diff --git a/www-shared/pom.xml b/www-shared/pom.xml index 7db4ad09780aaef6ce7ec5d398ad65834046f47d..eeb62ced279b257ca0cd7fa010d8745935271925 100644 --- a/www-shared/pom.xml +++ b/www-shared/pom.xml @@ -7,7 +7,7 @@ <parent> <groupId>fr.agrometinfo</groupId> <artifactId>www</artifactId> - <version>0.1.2-SNAPSHOT</version> + <version>0.1.3-SNAPSHOT</version> </parent> <artifactId>www-shared</artifactId>