Package fitnesse.fixtures

Source Code of fitnesse.fixtures.AddTestSystem

package fitnesse.fixtures;

import fitnesse.testrunner.TestSystemFactoryRegistry;
import fitnesse.testsystems.TestSystemFactory;

public class AddTestSystem {

  public AddTestSystem(String name, String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
    TestSystemFactory factory = (TestSystemFactory) Class.forName(className).newInstance();
    ((TestSystemFactoryRegistry)FitnesseFixtureContext.context.testSystemFactory).registerTestSystemFactory(name, factory);
  }
}
TOP

Related Classes of fitnesse.fixtures.AddTestSystem

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.