Could you consider introduction of Spring Data - JPA based CRUD repositories to the spring-txn example project? It can help avoid writing some redundant code.
Have a great day.
Spring Data JPA based repositories.
Thanks a lot for your contribution! You clearly know more Spring than I do :-)
While I have you here - would you be interested in helping porting the spring-txn example to be a direct port of the AJAX example in the Cucumber book? (If so, I'll get you a copy if you don't have it).
I have been experimenting with this on a branch called spring-ajax, and the main problem I'm facing is to have a shared database transaction between the Cucumber Step Definitions and the Spring app. If I can get this to work it would be easier to clean the database with a rollback in an After. I thought I'd ask someone who's more intimate with Spring to help me.
/cc @paoloambrosio who wrote the original code my spring-ajax branch is based on.
I'm glad to hear that.
Please send me a copy (or just a piece with the example) of that famous book and I'll do my best.
My email can be gotten from my commit.
Thanks in advance.
Have a nice day.
I totally missed the spring-ajax branch!
I have done a few changes since I gave you the code (use mysql for production and hsql for test, introduced page objects, switchable js/non-js browser). Feel free to take a look: https://bitbucket.org/paoloambrosio/web-java/src (it was a private repository, so no licensing info, references to the book, etc.)
@paoloambrosio, I forked your repository on bitbucket. I'll take a look in a couple of days.
There will be a local Ukrainian Hackathon [RU] in Kiyv.
And I've bought tickets on that event, but I haven't got a idea for the project.
So I think, why do not port the spring-txn example to a direct port of the AJAX example from the Cucumber book?
What do you think of that?
I've made a research on MVC testing support in Spring 3.1
According to obtained information, there is no way to test Spring shared transactions and AJAX with testing tools, like Selenium, because Servlet Container in this situation is a black box for us.
So I can implement required functionality without shared transactions.
Is this OK?
I made the Chapter 14 of the Cucumber Book pull request.
Could you take a look at it, please
Isn't this PR obsoleted by #438 now?
I'm confused. You are saying this PR is obsoleted and you want me to accept it? (I assume you mean merge it in). That sounds contradictory to me.
Ok, closed it, but since the two PRs were diverging, #438 no longer applies cleanly.