Hi Kent,
sorry 'bout the broken commit. In my haste to flush everything from old laptop before switching day job, I must have made a partial commit somehow.
No problem, the git history is here for that.
I have problems with running the tests inside samples/dci when building on JDK7 on windows. The same tests are running fine on JDK6. It seems that for some obscure reason the test data (initialized inside @beforeClass method) are reinitialized in every test when using JDK7, which causes problems, since one of the tests removes money from a checking account, assuming that a previous test have moved money into that account.
You should fetch last develop branch commits. I pushed some commits to solve JDK7 support. I faced the very same issue with dci-cargo unit tests. Theses test methods are not independents, they should be.
JUnit use getDeclaredMethods(..) to gather tests to run, returned methods order is not guaranted by the API but was source order until JDK7, that's why we had this behavior using JDK7.
I refactored the tests I understood but added calls between dependent test methods as a workaround in the other ones. The affected tests are :
dcisample_a/BuildDeliverySnapshotTest dcisample_b/AssignCargoToRouteTest dcisample_b/RegisterNewDestinationTest dcisample_b/InspectLoadedCargoTest dcisample_b/RegisterHandlingEventTest
Any objections against me rewriting these tests to be completely isolated unittests, instead of depending on reusing data?
No objection :-) Cheers /Paul On Tue, Aug 28, 2012 at 2:45 PM, Paul Merlin <[email protected]> wrote:
Gang, Commit 55235f3c5194bf65a53b8f1abe2369**962019b9fa removed used files and so broken the build. See: https://github.com/Qi4j/qi4j-**sdk/commit/** 55235f3c5194bf65a53b8f1abe2369**962019b9fa<https://github.com/Qi4j/qi4j-sdk/commit/55235f3c5194bf65a53b8f1abe2369962019b9fa> I reverted this commit. By the way, Qi4j now works with Java 7, the feature branch has been merged. /Paul
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

