fixed declination test that was assuming that 2016's declination data would have to come from the online service; now it's persistently cached

This commit is contained in:
Axel Uhl committed 2015-09-22 22:15:42 +02:00
1 parent 675c094b2e
commit ecc21df0ab
2 files changed
+5 -3

No files matched your search

@@ -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
@@ -39,6 +39,8 @@
</li>
<li>Added boat classes Soling, Lago 26, Kielzugvogel, PWA (Professional Windsurfers Association)
</li>
<li>Included magnetic declination data for 2016 already.
</li>
<li>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.
</li>