mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
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:
1 parent
675c094b2e
commit
ecc21df0ab
2 files changed
+5
-3
No files matched your search
+3
-3
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user