From ecc21df0ab1700bcd65219bfea91ff85048e059d Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 22 Sep 2015 22:15:42 +0200 Subject: [PATCH] fixed declination test that was assuming that 2016's declination data would have to come from the online service; now it's persistently cached --- .../sailing/declination/test/DeclinationServiceTest.java | 6 +++--- java/com.sap.sailing.www/release_notes_admin.html | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/DeclinationServiceTest.java b/java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/DeclinationServiceTest.java index d0b580d801b..1cdb522ddb1 100755 --- a/java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/DeclinationServiceTest.java +++ b/java/com.sap.sailing.declination.test/src/com/sap/sailing/declination/test/DeclinationServiceTest.java @@ -35,11 +35,11 @@ public class DeclinationServiceTest extends AbstractDeclinationTest { @Test public void testDeclinationQueryNotMatchedInStore() throws IOException, ClassNotFoundException, ParseException { - Declination result = service.getDeclination(new MillisecondsTimePoint(simpleDateFormat.parse("2016-02-03").getTime()), + Declination result = service.getDeclination(new MillisecondsTimePoint(simpleDateFormat.parse("2019-02-03").getTime()), new DegreePosition(51, -5), /* timeoutForOnlineFetchInMilliseconds */ 30000); assertNotNull(result); - assertEquals(-2.41498, result.getBearing().getDegrees(), 0.0001); - assertEquals(0.15318, result.getAnnualChange().getDegrees(), 0.0001); + assertEquals(-1.9565, result.getBearing().getDegrees(), 0.0001); + assertEquals(0.15244, result.getAnnualChange().getDegrees(), 0.0001); } @Test diff --git a/java/com.sap.sailing.www/release_notes_admin.html b/java/com.sap.sailing.www/release_notes_admin.html index 2063bba61fc..476c0be0010 100644 --- a/java/com.sap.sailing.www/release_notes_admin.html +++ b/java/com.sap.sailing.www/release_notes_admin.html @@ -39,6 +39,8 @@
  • Added boat classes Soling, Lago 26, Kielzugvogel, PWA (Professional Windsurfers Association)
  • +
  • Included magnetic declination data for 2016 already. +
  • Bug fix: in rare cases, adding several series to a regatta in one go swapped the order of the series to be created. This has now been fixed.