org.testng.junit.JUnitTestMethod 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
TestNG is a testing framework.
package org.testng.junit;
import java.lang.reflect.Method;
import org.testng.ITestNGMethod;
import org.testng.internal.BaseTestMethod;
/**
*
* @author lukas
*/
//NO JUnit specific code here to avoid runtime errors
public abstract class JUnitTestMethod extends BaseTestMethod {
protected JUnitTestMethod(JUnitTestClass owner, Method method, Object instance) {
super(method, null, instance);
setTestClass(owner);
owner.getTestMethodList().add(this);
}
@Override
public boolean isTest() {
return true;
}
@Override
public ITestNGMethod clone() {
throw new IllegalStateException("clone is not supported for JUnit");
}
}