This is the first time I've been told to NOT provide a complete test-case The reason I include "everything" in the test-case is ensure it's 100% reproducible, and eliminate responses like "It works for me, it isn't broken" which lead to unnecessary extra iterations before understanding and nailing the problem.
At leas I prefer when someone includes a self-contained test-case which I can reproduce 100% by issuing a few commands ("mvn install").
I don't understand what you mean by:
"Ideally any needed test data should be loaded by the test using Hibernate".
Isn't that what I just did? LazyLoadTest loads the data before the test is executed.
In the future, do you want me to only include the entities involved and a test-method, no wiring-code, pom or whatever, and you weave it all together your self?
This is the first time I've been told to NOT provide a complete test-case The reason I include "everything" in the test-case is ensure it's 100% reproducible, and eliminate responses like "It works for me, it isn't broken" which lead to unnecessary extra iterations before understanding and nailing the problem.
At leas I prefer when someone includes a self-contained test-case which I can reproduce 100% by issuing a few commands ("mvn install").
I don't understand what you mean by:
"Ideally any needed test data should be loaded by the test using Hibernate".
Isn't that what I just did? LazyLoadTest loads the data before the test is executed.
In the future, do you want me to only include the entities involved and a test-method, no wiring-code, pom or whatever, and you weave it all together your self?
Thanks for looking into this.