I tried to do a google search, but I keep getting the same answer that the following code should use:
import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({FirstTest.class,SecondTest.class,ThirdTest.class}) public class RunTestSuite { }
However, when I try to use this code in my program, I get a few errors. They all say the same thing: Access restriction: The type is not API .
Is there any way to fix this? Or another method that I can use to run multiple test suites?
user9463130
source share