Our toolkit has over 15000 JUnit tests, and many tests are known to fail if some other test fails. For example, if the method X.foo() uses functionality from Y.bar() and YTe
You can declare test dependencies in TestNG, the syntax is almost the same as in your example. I don't think JUnit offers something similar.