org.testng.junit.JUnit4ConfigurationMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
package org.testng.junit;
import org.testng.internal.ConstructorOrMethod;
import java.lang.reflect.Method;
public class JUnit4ConfigurationMethod extends ConstructorOrMethod {
private final Class> declaringClass;
public JUnit4ConfigurationMethod(Class> declaringClass) {
super((Method) null);
this.declaringClass = declaringClass;
}
@Override
public Class> getDeclaringClass() {
return declaringClass;
}
@Override
public String getName() {
return "Configuration method from '" + declaringClass.getName() + "'";
}
@Override
public String toString() {
return getName();
}
}