Solving java classpath hell in legacy junit test suite
问题 Suppose I have a legacy JUnit test suite that includes the following tests: public class AwesomeTest { public void testBusinessLogic() { ... [awesome mocking library] ... } } public class AmazingTest { public void testBusinessProcess() { ... [amazing xml operation] ... } } Now assume that Awesome Mocking library relies on Awesome BCEL bytecode generation library which contains the class org.useful.XMLClass and this library has version 1 of XMLClass. Now assume that Amazing Xml operation