Skip to content
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

Possibility to replace any placeholder in a dataset with custom code #18

Open
ruettimac opened this issue Sep 15, 2012 · 1 comment
Open

Comments

@ruettimac
Copy link

According to the DBUnit-FAQ, it is possible to replace any placeholder ini a datafile (XML, JSON) with a value produced by custom code:

http://www.dbunit.org/faq.html#systemTimeInTest

I have used this possibility to work with non static data like dates or surrogate keys in the tests. It would be great to have this kind of functionality in the persistence extension. If it is not to hard to integrate or if I get the pointer how and where to do it, I like to help or implement this feature.

Regards,

Cyrill

@bartoszmajsak
Copy link
Member

Hi Cyrill,

Thanks for your interest in making APE better! Actually this idea is on the roadmap for a while. Not really replacable data sets per se, but rather scriptable data sets (using any language from jsr 223 - but we can start with groovy). There is some simple implementation handling [null] placeholders already in place, which you can use as a starting point. Just fork the repo and start hacking around :) If you will have any questions either ask here, on the forums or reach me directly. I would be more than happy to help.

Welcome in the community!

Cheers,
Bartosz

rmpestano added a commit to rmpestano/arquillian-extension-persistence that referenced this issue Apr 29, 2016
- added DataSetScriptReplacer
- Travis badget
rmpestano added a commit to rmpestano/arquillian-extension-persistence that referenced this issue Apr 29, 2016
rmpestano pushed a commit to rmpestano/arquillian-extension-persistence that referenced this issue Apr 30, 2016
rmpestano pushed a commit to rmpestano/arquillian-extension-persistence that referenced this issue Apr 30, 2016
- fix javadoc
rmpestano added a commit to rmpestano/arquillian-extension-persistence that referenced this issue May 11, 2016
makes expected datasets scriptable
rmpestano added a commit to rmpestano/arquillian-extension-persistence that referenced this issue May 11, 2016
test assertions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants