Call a test from within a test junit


I am using Junit 4.7 and I have the following in my test class A:

public void setup () {
//Here I want to class another test class, called Setup, that sets
preconditions for all tests in my test class A.


I want to keep it as a test since the I know if any of the setup steps
How can I call Setup and execute methods from my class A?


public class Setup extends TestCase{
public Setup() throws Exception {

public void mySetupStep1() throws Exception{


public void mySetupStep2() throws Exception{



Relevant Pages