shouldParseDateInOldFormat unit test fails in LegalTagSerializationTest
Failed tests: shouldParseDateInOldFormat(org.opengroup.osdu.core.common.model.legal.LegalTagSerializationTest)
Tests run: 149, Failures: 1, Errors: 0, Skipped: 2
Failed since it expected the date to be 2019-10-11. I changed it locally to 2019-10-11 in my branch to get it to pass. However, this should be looked at
@Test public void shouldParseDateInOldFormat() throws IOException { final String input = "{"id":123,"name":"name","description":"desc"," + ""properties":{"countryOfOrigin":["US","BY"],"contractId":"contrId"," + ""expirationDate": 1570863500000,"originator":"company"," + ""dataType":"dataType","securityClassification":"securityClassification"," + ""personalData":"data","exportClassification":"exportClassification"}," + ""isValid":false}";
LegalTag legalTag = objectMapper.readValue(input, LegalTag.class);
Assert.assertEquals(Date.valueOf("2019-10-12").toLocalDate(), legalTag.getProperties().getExpirationDate().toLocalDate());
}