I have problem calculation sunrise time for location N69.8888, E27.0000 for date 2014-01-16. For same date and location, sunset is calculated, but should the sunrise also be possible to calculate. 2014-01-15 sun is not either setting or rising (as expected) in that location.
public class SolarEventCalculatorInNorthTest extends BaseTestCase {
private SolarEventCalculator calc;
@Before
public void setupCalculator() {
super.setup(0,16, 2014, "69.8888", "27.0000", "Europe/Helsinki");
calc = new SolarEventCalculator(location, "Europe/Helsinki");
}
@Test
public void testComputeSunriseTime() {
String localSunriseTime = "12:05";
// should be something near 12:00, but not 99:99 because sun can't set if
// it hasn't rised
String actual = calc.computeSunriseTime(Zenith.OFFICIAL, eventDate);
assertEquals(localSunriseTime, actual);
}
@Test
public void testComputeSunsetTime() {
String localSunriseTime = "12:35";
String actual = calc.computeSunsetTime(Zenith.OFFICIAL, eventDate);
assertEquals(localSunriseTime, actual);
}
}