JUnit 4 has @Theory and @Assumption annotations that might help here. I forget which does what, but one of them (probably @Assumption) can say "I believe X is true and it needs to be for my tests to pass, so ignore these if it's false". If there was some way to expose a predicate that was true when you expect code splitting and false otherwise, you might be able to let JUnit manage the conditional quality of your tests. As for how to expose that predicate, I have no brilliant ideas.
Ian --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
