-
1. Re: Persistence extension with XLS dataset - constraint problem
bmajsak Sep 20, 2012 10:06 AM (in response to norsay)Hi,
are you getting any exceptions while trying to seed the data? How about different formats such as XML or YAML - does it lead to the same behaviour?
Cheers,
Bartosz
-
2. Re: Persistence extension with XLS dataset - constraint problem
norsay Sep 20, 2012 10:10 AM (in response to bmajsak)Hi Bartosz
Thanks for your fast response Well, I don't face any exceptions during the test setup (log level is set to debug). The "parent" data will be found during the tests, only the "childs" are missing. At the moment I tried XLS only. I'll give YAML a try and post the results.
Cheers, norsay
-
3. Re: Persistence extension with XLS dataset - constraint problem
bmajsak Sep 20, 2012 10:17 AM (in response to norsay)Can you isolate the problem in the small project (with failing test) so I can have a look?
-
4. Re: Persistence extension with XLS dataset - constraint problem
norsay Sep 20, 2012 11:49 AM (in response to bmajsak)I'm going the proof the behavior with YAML first. Then I'll strip down the project... Guess I'll be ready by tomorrow.
-
5. Re: Persistence extension with XLS dataset - constraint problem
bmajsak Sep 20, 2012 11:57 AM (in response to norsay)Thanks a lot.
-
6. Re: Persistence extension with XLS dataset - constraint problem
norsay Sep 21, 2012 3:51 AM (in response to bmajsak)Ok, I'm back again with further information. I created a YAML data set of my XLS without any other changes in the code. Seeding a YAML data set with parent child releations works fine with my code...
After running the tests with the created YAML data set, I switched back to XLS and oh wonder, it worked as well
In other words, it works as expected
I guess it was a caching issue of my IDE which did not provide the correct state of the XLS where I changed the sheet order...
Sorry, my fault!!! Shame on me New day, new luck Anyway thanks for your help!
Cheers, norsay
-
7. Re: Persistence extension with XLS dataset - constraint problem
bmajsak Sep 21, 2012 5:43 AM (in response to norsay)Glad that it was that easy Thanks for the feedback!
If you have some ideas for improvements (or there is something which you don't like) feel free to share it in this forum. I'm very keen to hear from people using APE in the projects what kind of features they would like to have.
Cheers,
Bartosz
-
8. Re: Persistence extension with XLS dataset - constraint problem
norsay Sep 21, 2012 6:46 AM (in response to bmajsak)At this moment I'm pretty happy with Arquillian and the persistence extension so far
Before I switched to Arquillian I used my self written testing framework which was also able to test EJB3 stuff iuncluding persistence. Of course it was not as powerful as Arquillian and it's extensions are... I played with Arquillian already a long time ago and what I missed then is available now.
Because I started in a new project where I'm free to start on a green field, I thought it's the perfect time to introduce Arquillian for testing. At the moment I'm very convinced and happy, as already said. However for sure, I'll let you know if I have any ideas for improvements
Best regards, norsay