Adobe-Marketing-Cloud / aem-sample-we-retail

🚫 We.Retail has been archived, see instead the WKND Guide:
https://github.com/adobe/aem-guides-wknd
Apache License 2.0
123 stars 141 forks source link

Test fail at Unparseable date: "Mon Dec 12 2016 16:42:15 GMT+0100" #149

Closed mrcookiemstr closed 6 years ago

mrcookiemstr commented 6 years ago

Error while running mvn clean install due the tests failure at we.retail.core.model.OrderHistoryModelTest - Unparseable date: "Mon Dec 12 2016 16:42:15 GMT+0100"

devinyan commented 6 years ago

yeah , i met the same issue. I just commented the exception java code(Line 103 and 113) in OrderHistoryModelTest.java.

AlessioG commented 6 years ago

I think you should change the line51 in OrderHistoryModelTest to add the locale and delete the Z reference.

private SimpleDateFormat dateParser = new SimpleDateFormat("EEE MMM dd yyyy HH:mm:ss 'GMT'", Locale.US);

bpauli commented 6 years ago

@matrut, @devinyan Thanks for the hands up and @AlessioG for providing the fix.