I upgraded testng from 6.14.3 to 7.5.1 in my application which is running Spring 6.1.5.
Post the testng upgrade, I start getting the error
org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process [ERROR] [ERROR] The following methods have cyclic dependencies: [ERROR] AbstractTestNGSpringContextTests.springTestContextBeforeTestClass()[pri:0, instance:null] [ERROR] AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance()[pri:0, instance:null] [ERROR] AbstractComponentTest.parentSetupClass()[pri:0, instance:null]
Any idea how I can fix these cyclic dependencies?