mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-09 20:41:10 +00:00
fixed an ORC test by using a different certificate and relaxing time stamp comparison
This commit is contained in:
1 parent
903a4aa822
commit
83a9d6cffc
1 file changed
+3
-3
+3
-3
@@ -75,14 +75,14 @@ public class TestORCPublicCertificateDatabase {
|
||||
assertSoulmate(referenceNumber, result);
|
||||
}
|
||||
|
||||
// TODO this test will probably break 2020 when 2019 certificates will no longer be returned as valid...
|
||||
// TODO this test will probably break 2021 when 2020 certificates will no longer be returned as valid...
|
||||
@Test
|
||||
public void testGetCertificate() throws Exception {
|
||||
final String referenceNumber = "FRA00013881";
|
||||
final String referenceNumber = "03360000CE8";
|
||||
final CertificateHandle handle = db.getCertificateHandle(referenceNumber);
|
||||
final ORCCertificate result = db.getCertificate(referenceNumber);
|
||||
assertEquals(handle.getGPH(), result.getGPH().asSeconds(), 0.00001);
|
||||
assertEquals(handle.getIssueDate(), result.getIssueDate());
|
||||
assertTrue(handle.getIssueDate().until(result.getIssueDate()).abs().asSeconds() < 10);
|
||||
assertEquals(handle.getSailNumber(), result.getSailNumber());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user