use of org.orekit.time.ChronologicalComparator in project Orekit by CS-SI.
the class RapidDataAndPredictionColumnsLoaderTest method testEndDateDaily2000.
@Test
public void testEndDateDaily2000() throws OrekitException {
setRoot("rapid-data-columns");
IERSConventions.NutationCorrectionConverter converter = IERSConventions.IERS_2003.getNutationCorrectionConverter();
SortedSet<EOPEntry> history = new TreeSet<EOPEntry>(new ChronologicalComparator());
new RapidDataAndPredictionColumnsLoader(true, "^finals2000A\\.daily$").fillHistory(converter, history);
Assert.assertEquals(new AbsoluteDate(2011, 10, 6, TimeScalesFactory.getUTC()), new EOPHistory(IERSConventions.IERS_2003, history, true).getEndDate());
}
use of org.orekit.time.ChronologicalComparator in project Orekit by CS-SI.
the class RapidDataAndPredictionColumnsLoaderTest method testEndDateDaily1980.
@Test
public void testEndDateDaily1980() throws OrekitException {
setRoot("rapid-data-columns");
IERSConventions.NutationCorrectionConverter converter = IERSConventions.IERS_1996.getNutationCorrectionConverter();
SortedSet<EOPEntry> history = new TreeSet<EOPEntry>(new ChronologicalComparator());
new RapidDataAndPredictionColumnsLoader(false, "^finals\\.daily$").fillHistory(converter, history);
Assert.assertEquals(new AbsoluteDate(2011, 10, 6, TimeScalesFactory.getUTC()), new EOPHistory(IERSConventions.IERS_1996, history, true).getEndDate());
}
Aggregations