nl.hsac.fitnesse.fixture.fit.ClearStoredVariablesFixture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsac-fitnesse-fixtures Show documentation
Show all versions of hsac-fitnesse-fixtures Show documentation
Fixtures to assist in testing via FitNesse
package nl.hsac.fitnesse.fixture.fit;
import fit.ColumnFixture;
import java.lang.reflect.Method;
/**
* Fixture to clear stored content.
*/
public class ClearStoredVariablesFixture extends ColumnFixture {
private String className;
public String clear() throws Exception {
String result = "NOK";
String methodName = "clearInstances";
Class> clazz = Class.forName(className);
if (clazz != null) {
Method method = clazz.getMethod(methodName);
if (method != null) {
method.invoke(null);
result = "OK";
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy