-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jodatime support #80
Comments
Hello guys, I watch this project for a while and actually I used it in a 2015-11-18 15:56 GMT-02:00 Nykolas Laurentino de Lima <
|
Like a fixture-factory-jdk8 version? I would like to see this (and to contribute also) |
@mauriciojr It would be great. I'm using f-f with JDK 8 and I don't have any problems yet. But support the new date api would be awesome. Please fell free to go ahead and implement it, this way we can launch a new version supporting java8's date api 👍 |
Hi, I forked the project, end started to add support java8's date. It is still raw, but I would like to hear from you before proceeding. The names may sound a little confusing because the new date has instant class (such as the current method to date). My solution is not so good I think, if you have suggentions, I would appreciate to listen. Thanks. |
@mundodojava hey man, maybe I'm missing something but, as far as I can tell, you don't need to create all those functions. Isn't it just a matter of converting the Calendar to the java.time types? If so, you could just change the CalendarTransformer or create a new Transformer pretty much like the DateTimeTransformer you created. Also, can you make sure you commit only the lines you have actually changed? Your commits are changing the whole file which makes a bit hard to review and keep track of the modifications. |
Hey @mundodojava, There is a corner case in convert Calendar to LocalDate using this approach:
Instead of plus one in the month, you could use it: Please, check your test. The Calendar.getInstance() method returns |
Ok, I will do this changes. As soon as possible, and thank you for the instructions |
I create a new pull request here. |
@douglasrodrigo could you please close this issue too? |
I need a custom rule for JodaTime fields like Datetime, LocalDate, etc. Can you add this function? Or can I add this function on the project? If are not possible to do in that project, you can create a fixture-factory-extensions, with support for external Java libraries.
Thank you.
The text was updated successfully, but these errors were encountered: