I've tried to search on google, but I keep getting the same answer which is to use the following code:
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 attempt to use this code in my program, I get multiple errors. All of them say the same thing: Access restriction: The type is not API
.
Is there a way to fix this? Or another method altogether that I can use to execute multiple test suites?