link start!
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package org.testng;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import org.testng.annotations.ITestAnnotation;
|
||||
|
||||
public interface IAnnotationTransformer extends ITestNGListener {
|
||||
void transform(ITestAnnotation iTestAnnotation, Class cls, Constructor constructor, Method method);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.testng;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import org.testng.annotations.IConfigurationAnnotation;
|
||||
import org.testng.annotations.IDataProviderAnnotation;
|
||||
import org.testng.annotations.IFactoryAnnotation;
|
||||
|
||||
public interface IAnnotationTransformer2 extends IAnnotationTransformer {
|
||||
void transform(IConfigurationAnnotation iConfigurationAnnotation, Class cls, Constructor constructor, Method method);
|
||||
|
||||
void transform(IDataProviderAnnotation iDataProviderAnnotation, Method method);
|
||||
|
||||
void transform(IFactoryAnnotation iFactoryAnnotation, Method method);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Set;
|
||||
|
||||
public interface IAttributes extends Serializable {
|
||||
Object getAttribute(String str);
|
||||
|
||||
Set<String> getAttributeNames();
|
||||
|
||||
Object removeAttribute(String str);
|
||||
|
||||
void setAttribute(String str, Object obj);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
import org.testng.xml.XmlClass;
|
||||
import org.testng.xml.XmlTest;
|
||||
|
||||
public interface IClass extends Serializable {
|
||||
void addInstance(Object obj);
|
||||
|
||||
int getInstanceCount();
|
||||
|
||||
long[] getInstanceHashCodes();
|
||||
|
||||
Object[] getInstances(boolean z);
|
||||
|
||||
String getName();
|
||||
|
||||
Class getRealClass();
|
||||
|
||||
String getTestName();
|
||||
|
||||
XmlClass getXmlClass();
|
||||
|
||||
XmlTest getXmlTest();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IConfigurable extends ITestNGListener {
|
||||
void run(IConfigureCallBack iConfigureCallBack, ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IConfigurationListener extends ITestNGListener {
|
||||
void onConfigurationFailure(ITestResult iTestResult);
|
||||
|
||||
void onConfigurationSkip(ITestResult iTestResult);
|
||||
|
||||
void onConfigurationSuccess(ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IConfigurationListener2 extends IConfigurationListener {
|
||||
void beforeConfiguration(ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IConfigureCallBack {
|
||||
Object[] getParameters();
|
||||
|
||||
void runConfigurationMethod(ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IExecutionListener extends ITestNGListener {
|
||||
void onExecutionFinish();
|
||||
|
||||
void onExecutionStart();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public interface IExtraOutput extends Serializable {
|
||||
List<String> getParameterOutput();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IHookCallBack {
|
||||
Object[] getParameters();
|
||||
|
||||
void runTestMethod(ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IHookable extends ITestNGListener {
|
||||
void run(IHookCallBack iHookCallBack, ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IInstanceInfo {
|
||||
Object getInstance();
|
||||
|
||||
Class getInstanceClass();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IInvokedMethod {
|
||||
long getDate();
|
||||
|
||||
ITestNGMethod getTestMethod();
|
||||
|
||||
ITestResult getTestResult();
|
||||
|
||||
boolean isConfigurationMethod();
|
||||
|
||||
boolean isTestMethod();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IInvokedMethodListener extends ITestNGListener {
|
||||
void afterInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResult);
|
||||
|
||||
void beforeInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IInvokedMethodListener2 extends IInvokedMethodListener {
|
||||
void afterInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResult, ITestContext iTestContext);
|
||||
|
||||
void beforeInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResult, ITestContext iTestContext);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IMethodInstance {
|
||||
Object getInstance();
|
||||
|
||||
Object[] getInstances();
|
||||
|
||||
ITestNGMethod getMethod();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IMethodInterceptor extends ITestNGListener {
|
||||
List<IMethodInstance> intercept(List<IMethodInstance> list, ITestContext iTestContext);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public interface IMethodSelector extends Serializable {
|
||||
boolean includeMethod(IMethodSelectorContext iMethodSelectorContext, ITestNGMethod iTestNGMethod, boolean z);
|
||||
|
||||
void setTestMethods(List<ITestNGMethod> list);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface IMethodSelectorContext {
|
||||
Map<Object, Object> getUserData();
|
||||
|
||||
boolean isStopped();
|
||||
|
||||
void setStopped(boolean z);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
import com.google.inject.Module;
|
||||
|
||||
public interface IModuleFactory {
|
||||
Module createModule(ITestContext iTestContext, Class<?> cls);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
|
||||
public interface IObjectFactory extends ITestObjectFactory {
|
||||
Object newInstance(Constructor constructor, Object... objArr);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IObjectFactory2 extends ITestObjectFactory {
|
||||
Object newInstance(Class<?> cls);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.testng;
|
||||
|
||||
import java.util.List;
|
||||
import org.testng.xml.XmlSuite;
|
||||
|
||||
public interface IReporter extends ITestNGListener {
|
||||
void generateReport(List<XmlSuite> list, List<ISuite> list2, String str);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.Set;
|
||||
|
||||
public interface IResultMap extends Serializable {
|
||||
void addResult(ITestResult iTestResult, ITestNGMethod iTestNGMethod);
|
||||
|
||||
Collection<ITestNGMethod> getAllMethods();
|
||||
|
||||
Set<ITestResult> getAllResults();
|
||||
|
||||
Set<ITestResult> getResults(ITestNGMethod iTestNGMethod);
|
||||
|
||||
void removeResult(ITestNGMethod iTestNGMethod);
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface IRetryAnalyzer {
|
||||
boolean retry(ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package org.testng;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.testng.internal.annotations.IAnnotationFinder;
|
||||
import org.testng.xml.XmlSuite;
|
||||
|
||||
public interface ISuite extends IAttributes {
|
||||
void addListener(ITestNGListener iTestNGListener);
|
||||
|
||||
List<IInvokedMethod> getAllInvokedMethods();
|
||||
|
||||
List<ITestNGMethod> getAllMethods();
|
||||
|
||||
IAnnotationFinder getAnnotationFinder();
|
||||
|
||||
Collection<ITestNGMethod> getExcludedMethods();
|
||||
|
||||
String getHost();
|
||||
|
||||
@Deprecated
|
||||
Collection<ITestNGMethod> getInvokedMethods();
|
||||
|
||||
Map<String, Collection<ITestNGMethod>> getMethodsByGroups();
|
||||
|
||||
String getName();
|
||||
|
||||
IObjectFactory getObjectFactory();
|
||||
|
||||
IObjectFactory2 getObjectFactory2();
|
||||
|
||||
String getOutputDirectory();
|
||||
|
||||
String getParallel();
|
||||
|
||||
String getParameter(String str);
|
||||
|
||||
Map<String, ISuiteResult> getResults();
|
||||
|
||||
SuiteRunState getSuiteState();
|
||||
|
||||
XmlSuite getXmlSuite();
|
||||
|
||||
void run();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ISuiteListener extends ITestNGListener {
|
||||
void onFinish(ISuite iSuite);
|
||||
|
||||
void onStart(ISuite iSuite);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface ISuiteResult extends Serializable {
|
||||
String getPropertyFileName();
|
||||
|
||||
ITestContext getTestContext();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ITest {
|
||||
String getTestName();
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface ITestClass extends IClass, Serializable {
|
||||
ITestNGMethod[] getAfterClassMethods();
|
||||
|
||||
ITestNGMethod[] getAfterGroupsMethods();
|
||||
|
||||
ITestNGMethod[] getAfterSuiteMethods();
|
||||
|
||||
ITestNGMethod[] getAfterTestConfigurationMethods();
|
||||
|
||||
ITestNGMethod[] getAfterTestMethods();
|
||||
|
||||
ITestNGMethod[] getBeforeClassMethods();
|
||||
|
||||
ITestNGMethod[] getBeforeGroupsMethods();
|
||||
|
||||
ITestNGMethod[] getBeforeSuiteMethods();
|
||||
|
||||
ITestNGMethod[] getBeforeTestConfigurationMethods();
|
||||
|
||||
ITestNGMethod[] getBeforeTestMethods();
|
||||
|
||||
int getInstanceCount();
|
||||
|
||||
long[] getInstanceHashCodes();
|
||||
|
||||
Object[] getInstances(boolean z);
|
||||
|
||||
ITestNGMethod[] getTestMethods();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ITestClassFinder {
|
||||
IClass[] findTestClasses();
|
||||
|
||||
IClass getIClass(Class cls);
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package org.testng;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import com.google.inject.Module;
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import org.testng.xml.XmlTest;
|
||||
|
||||
public interface ITestContext extends IAttributes {
|
||||
void addGuiceModule(Class<? extends Module> cls, Module module);
|
||||
|
||||
void addInjector(List<Module> list, Injector injector);
|
||||
|
||||
ITestNGMethod[] getAllTestMethods();
|
||||
|
||||
XmlTest getCurrentXmlTest();
|
||||
|
||||
Date getEndDate();
|
||||
|
||||
String[] getExcludedGroups();
|
||||
|
||||
Collection<ITestNGMethod> getExcludedMethods();
|
||||
|
||||
IResultMap getFailedButWithinSuccessPercentageTests();
|
||||
|
||||
IResultMap getFailedConfigurations();
|
||||
|
||||
IResultMap getFailedTests();
|
||||
|
||||
List<Module> getGuiceModules(Class<? extends Module> cls);
|
||||
|
||||
String getHost();
|
||||
|
||||
String[] getIncludedGroups();
|
||||
|
||||
Injector getInjector(List<Module> list);
|
||||
|
||||
String getName();
|
||||
|
||||
String getOutputDirectory();
|
||||
|
||||
IResultMap getPassedConfigurations();
|
||||
|
||||
IResultMap getPassedTests();
|
||||
|
||||
IResultMap getSkippedConfigurations();
|
||||
|
||||
IResultMap getSkippedTests();
|
||||
|
||||
Date getStartDate();
|
||||
|
||||
ISuite getSuite();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ITestListener extends ITestNGListener {
|
||||
void onFinish(ITestContext iTestContext);
|
||||
|
||||
void onStart(ITestContext iTestContext);
|
||||
|
||||
void onTestFailedButWithinSuccessPercentage(ITestResult iTestResult);
|
||||
|
||||
void onTestFailure(ITestResult iTestResult);
|
||||
|
||||
void onTestSkipped(ITestResult iTestResult);
|
||||
|
||||
void onTestStart(ITestResult iTestResult);
|
||||
|
||||
void onTestSuccess(ITestResult iTestResult);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.testng;
|
||||
|
||||
import org.testng.xml.XmlTest;
|
||||
|
||||
public interface ITestMethodFinder {
|
||||
ITestNGMethod[] getAfterClassMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getAfterGroupsConfigurationMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getAfterSuiteMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getAfterTestConfigurationMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getAfterTestMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getBeforeClassMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getBeforeGroupsConfigurationMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getBeforeSuiteMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getBeforeTestConfigurationMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getBeforeTestMethods(Class cls);
|
||||
|
||||
ITestNGMethod[] getTestMethods(Class cls, XmlTest xmlTest);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ITestNGListener {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ITestNGListenerFactory {
|
||||
ITestNGListener createListener(Class<? extends ITestNGListener> cls);
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.testng.internal.ConstructorOrMethod;
|
||||
import org.testng.xml.XmlTest;
|
||||
|
||||
public interface ITestNGMethod extends Comparable, Serializable, Cloneable {
|
||||
void addFailedInvocationNumber(int i);
|
||||
|
||||
void addMethodDependedUpon(String str);
|
||||
|
||||
boolean canRunFromClass(IClass iClass);
|
||||
|
||||
ITestNGMethod clone();
|
||||
|
||||
Map<String, String> findMethodParameters(XmlTest xmlTest);
|
||||
|
||||
String[] getAfterGroups();
|
||||
|
||||
String[] getBeforeGroups();
|
||||
|
||||
ConstructorOrMethod getConstructorOrMethod();
|
||||
|
||||
int getCurrentInvocationCount();
|
||||
|
||||
long getDate();
|
||||
|
||||
String getDescription();
|
||||
|
||||
boolean getEnabled();
|
||||
|
||||
List<Integer> getFailedInvocationNumbers();
|
||||
|
||||
String[] getGroups();
|
||||
|
||||
String[] getGroupsDependedUpon();
|
||||
|
||||
String getId();
|
||||
|
||||
Object getInstance();
|
||||
|
||||
long[] getInstanceHashCodes();
|
||||
|
||||
@Deprecated
|
||||
Object[] getInstances();
|
||||
|
||||
int getInvocationCount();
|
||||
|
||||
List<Integer> getInvocationNumbers();
|
||||
|
||||
long getInvocationTimeOut();
|
||||
|
||||
@Deprecated
|
||||
Method getMethod();
|
||||
|
||||
String getMethodName();
|
||||
|
||||
String[] getMethodsDependedUpon();
|
||||
|
||||
String getMissingGroup();
|
||||
|
||||
int getParameterInvocationCount();
|
||||
|
||||
int getPriority();
|
||||
|
||||
Class getRealClass();
|
||||
|
||||
IRetryAnalyzer getRetryAnalyzer();
|
||||
|
||||
int getSuccessPercentage();
|
||||
|
||||
ITestClass getTestClass();
|
||||
|
||||
int getThreadPoolSize();
|
||||
|
||||
long getTimeOut();
|
||||
|
||||
XmlTest getXmlTest();
|
||||
|
||||
boolean ignoreMissingDependencies();
|
||||
|
||||
void incrementCurrentInvocationCount();
|
||||
|
||||
boolean isAfterClassConfiguration();
|
||||
|
||||
boolean isAfterGroupsConfiguration();
|
||||
|
||||
boolean isAfterMethodConfiguration();
|
||||
|
||||
boolean isAfterSuiteConfiguration();
|
||||
|
||||
boolean isAfterTestConfiguration();
|
||||
|
||||
boolean isAlwaysRun();
|
||||
|
||||
boolean isBeforeClassConfiguration();
|
||||
|
||||
boolean isBeforeGroupsConfiguration();
|
||||
|
||||
boolean isBeforeMethodConfiguration();
|
||||
|
||||
boolean isBeforeSuiteConfiguration();
|
||||
|
||||
boolean isBeforeTestConfiguration();
|
||||
|
||||
boolean isTest();
|
||||
|
||||
void setDate(long j);
|
||||
|
||||
void setId(String str);
|
||||
|
||||
void setIgnoreMissingDependencies(boolean z);
|
||||
|
||||
void setInvocationCount(int i);
|
||||
|
||||
void setInvocationNumbers(List<Integer> list);
|
||||
|
||||
void setMissingGroup(String str);
|
||||
|
||||
void setParameterInvocationCount(int i);
|
||||
|
||||
void setPriority(int i);
|
||||
|
||||
void setRetryAnalyzer(IRetryAnalyzer iRetryAnalyzer);
|
||||
|
||||
void setSkipFailedInvocations(boolean z);
|
||||
|
||||
void setTestClass(ITestClass iTestClass);
|
||||
|
||||
void setThreadPoolSize(int i);
|
||||
|
||||
void setTimeOut(long j);
|
||||
|
||||
boolean skipFailedInvocations();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package org.testng;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface ITestObjectFactory extends Serializable {
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package org.testng;
|
||||
|
||||
public interface ITestResult extends IAttributes, Comparable<ITestResult> {
|
||||
public static final int FAILURE = 2;
|
||||
public static final int SKIP = 3;
|
||||
public static final int STARTED = 16;
|
||||
public static final int SUCCESS = 1;
|
||||
public static final int SUCCESS_PERCENTAGE_FAILURE = 4;
|
||||
|
||||
long getEndMillis();
|
||||
|
||||
String getHost();
|
||||
|
||||
Object getInstance();
|
||||
|
||||
String getInstanceName();
|
||||
|
||||
ITestNGMethod getMethod();
|
||||
|
||||
String getName();
|
||||
|
||||
Object[] getParameters();
|
||||
|
||||
long getStartMillis();
|
||||
|
||||
int getStatus();
|
||||
|
||||
IClass getTestClass();
|
||||
|
||||
ITestContext getTestContext();
|
||||
|
||||
String getTestName();
|
||||
|
||||
Throwable getThrowable();
|
||||
|
||||
boolean isSuccess();
|
||||
|
||||
void setEndMillis(long j);
|
||||
|
||||
void setParameters(Object[] objArr);
|
||||
|
||||
void setStatus(int i);
|
||||
|
||||
void setThrowable(Throwable th);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.testng;
|
||||
|
||||
import java.util.List;
|
||||
import org.testng.xml.XmlTest;
|
||||
|
||||
public interface ITestRunnerFactory {
|
||||
TestRunner newTestRunner(ISuite iSuite, XmlTest xmlTest, List<IInvokedMethodListener> list);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface AfterClass {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface AfterGroups {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
|
||||
String[] value() default {};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface AfterMethod {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
boolean lastTimeOnly() default false;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface AfterSuite {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface AfterTest {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface BeforeClass {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface BeforeGroups {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
|
||||
String[] value() default {};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface BeforeMethod {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
boolean firstTimeOnly() default false;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface BeforeSuite {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface BeforeTest {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Configuration {
|
||||
String[] afterGroups() default {};
|
||||
|
||||
boolean afterSuite() default false;
|
||||
|
||||
boolean afterTest() default false;
|
||||
|
||||
boolean afterTestClass() default false;
|
||||
|
||||
boolean afterTestMethod() default false;
|
||||
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String[] beforeGroups() default {};
|
||||
|
||||
boolean beforeSuite() default false;
|
||||
|
||||
boolean beforeTest() default false;
|
||||
|
||||
boolean beforeTestClass() default false;
|
||||
|
||||
boolean beforeTestMethod() default false;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean inheritGroups() default true;
|
||||
|
||||
@Deprecated
|
||||
String[] parameters() default {};
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface DataProvider {
|
||||
int[] indices() default {};
|
||||
|
||||
String name() default "";
|
||||
|
||||
boolean parallel() default false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface ExpectedExceptions {
|
||||
Class[] value();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Factory {
|
||||
String dataProvider() default "";
|
||||
|
||||
Class<?> dataProviderClass() default Object.class;
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
@Deprecated
|
||||
String[] parameters() default {};
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import com.google.inject.Module;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.testng.IModuleFactory;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Guice {
|
||||
Class<? extends IModuleFactory> moduleFactory() default IModuleFactory.class;
|
||||
|
||||
Class<? extends Module>[] modules() default {};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IAnnotation {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IConfigurationAnnotation extends ITestOrConfiguration {
|
||||
String[] getAfterGroups();
|
||||
|
||||
boolean getAfterSuite();
|
||||
|
||||
boolean getAfterTest();
|
||||
|
||||
boolean getAfterTestClass();
|
||||
|
||||
boolean getAfterTestMethod();
|
||||
|
||||
boolean getAlwaysRun();
|
||||
|
||||
String[] getBeforeGroups();
|
||||
|
||||
boolean getBeforeSuite();
|
||||
|
||||
boolean getBeforeTest();
|
||||
|
||||
boolean getBeforeTestClass();
|
||||
|
||||
boolean getBeforeTestMethod();
|
||||
|
||||
boolean getInheritGroups();
|
||||
|
||||
boolean isFakeConfiguration();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IDataProviderAnnotation extends IAnnotation {
|
||||
String getName();
|
||||
|
||||
boolean isParallel();
|
||||
|
||||
void setName(String str);
|
||||
|
||||
void setParallel(boolean z);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IExpectedExceptionsAnnotation extends IAnnotation {
|
||||
Class[] getValue();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import org.testng.internal.annotations.IDataProvidable;
|
||||
|
||||
public interface IFactoryAnnotation extends IParameterizable, IDataProvidable {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IObjectFactoryAnnotation extends IAnnotation {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IParameterizable extends IAnnotation {
|
||||
boolean getEnabled();
|
||||
|
||||
@Deprecated
|
||||
String[] getParameters();
|
||||
|
||||
void setEnabled(boolean z);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface IParametersAnnotation extends IAnnotation {
|
||||
String[] getValue();
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import org.testng.IRetryAnalyzer;
|
||||
import org.testng.internal.annotations.IDataProvidable;
|
||||
|
||||
public interface ITestAnnotation extends ITestOrConfiguration, IDataProvidable {
|
||||
boolean getAlwaysRun();
|
||||
|
||||
String getDataProvider();
|
||||
|
||||
Class<?> getDataProviderClass();
|
||||
|
||||
Class<?>[] getExpectedExceptions();
|
||||
|
||||
String getExpectedExceptionsMessageRegExp();
|
||||
|
||||
int getInvocationCount();
|
||||
|
||||
int getPriority();
|
||||
|
||||
IRetryAnalyzer getRetryAnalyzer();
|
||||
|
||||
boolean getSequential();
|
||||
|
||||
boolean getSingleThreaded();
|
||||
|
||||
int getSuccessPercentage();
|
||||
|
||||
String getSuiteName();
|
||||
|
||||
String getTestName();
|
||||
|
||||
int getThreadPoolSize();
|
||||
|
||||
boolean ignoreMissingDependencies();
|
||||
|
||||
long invocationTimeOut();
|
||||
|
||||
void setAlwaysRun(boolean z);
|
||||
|
||||
void setDataProvider(String str);
|
||||
|
||||
void setDataProviderClass(Class<?> cls);
|
||||
|
||||
void setExpectedExceptions(Class<?>[] clsArr);
|
||||
|
||||
void setExpectedExceptionsMessageRegExp(String str);
|
||||
|
||||
void setIgnoreMissingDependencies(boolean z);
|
||||
|
||||
void setInvocationCount(int i);
|
||||
|
||||
void setInvocationTimeOut(long j);
|
||||
|
||||
void setPriority(int i);
|
||||
|
||||
void setRetryAnalyzer(Class<?> cls);
|
||||
|
||||
void setSequential(boolean z);
|
||||
|
||||
void setSingleThreaded(boolean z);
|
||||
|
||||
void setSkipFailedInvocations(boolean z);
|
||||
|
||||
void setSuccessPercentage(int i);
|
||||
|
||||
void setSuiteName(String str);
|
||||
|
||||
void setTestName(String str);
|
||||
|
||||
void setThreadPoolSize(int i);
|
||||
|
||||
boolean skipFailedInvocations();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
public interface ITestOrConfiguration extends IParameterizable {
|
||||
String[] getDependsOnGroups();
|
||||
|
||||
String[] getDependsOnMethods();
|
||||
|
||||
String getDescription();
|
||||
|
||||
String[] getGroups();
|
||||
|
||||
long getTimeOut();
|
||||
|
||||
void setDependsOnGroups(String[] strArr);
|
||||
|
||||
void setDependsOnMethods(String[] strArr);
|
||||
|
||||
void setDescription(String str);
|
||||
|
||||
void setGroups(String[] strArr);
|
||||
|
||||
void setTimeOut(long j);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.testng.ITestNGListener;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Listeners {
|
||||
Class<? extends ITestNGListener>[] value() default {};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface NoInjection {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface ObjectFactory {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Optional {
|
||||
String value() default "null";
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Parameters {
|
||||
String[] value() default {};
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.CONSTRUCTOR})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Test {
|
||||
boolean alwaysRun() default false;
|
||||
|
||||
String dataProvider() default "";
|
||||
|
||||
Class<?> dataProviderClass() default Object.class;
|
||||
|
||||
String[] dependsOnGroups() default {};
|
||||
|
||||
String[] dependsOnMethods() default {};
|
||||
|
||||
String description() default "";
|
||||
|
||||
boolean enabled() default true;
|
||||
|
||||
Class[] expectedExceptions() default {};
|
||||
|
||||
String expectedExceptionsMessageRegExp() default ".*";
|
||||
|
||||
String[] groups() default {};
|
||||
|
||||
boolean ignoreMissingDependencies() default false;
|
||||
|
||||
int invocationCount() default 1;
|
||||
|
||||
long invocationTimeOut() default 0;
|
||||
|
||||
@Deprecated
|
||||
String[] parameters() default {};
|
||||
|
||||
int priority() default 0;
|
||||
|
||||
Class retryAnalyzer() default Class.class;
|
||||
|
||||
boolean sequential() default false;
|
||||
|
||||
boolean singleThreaded() default false;
|
||||
|
||||
boolean skipFailedInvocations() default false;
|
||||
|
||||
int successPercentage() default 100;
|
||||
|
||||
String suiteName() default "";
|
||||
|
||||
String testName() default "";
|
||||
|
||||
int threadPoolSize() default 0;
|
||||
|
||||
long timeOut() default 0;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface TestInstance {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import org.testng.ITestNGMethod;
|
||||
|
||||
public interface IBsh {
|
||||
boolean includeMethodFromExpression(String str, ITestNGMethod iTestNGMethod);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import java.util.List;
|
||||
import org.testng.IConfigurable;
|
||||
import org.testng.IConfigurationListener;
|
||||
import org.testng.IExecutionListener;
|
||||
import org.testng.IHookable;
|
||||
import org.testng.ITestObjectFactory;
|
||||
import org.testng.internal.annotations.IAnnotationFinder;
|
||||
|
||||
public interface IConfiguration {
|
||||
void addConfigurationListener(IConfigurationListener iConfigurationListener);
|
||||
|
||||
void addExecutionListener(IExecutionListener iExecutionListener);
|
||||
|
||||
IAnnotationFinder getAnnotationFinder();
|
||||
|
||||
IConfigurable getConfigurable();
|
||||
|
||||
List<IConfigurationListener> getConfigurationListeners();
|
||||
|
||||
List<IExecutionListener> getExecutionListeners();
|
||||
|
||||
IHookable getHookable();
|
||||
|
||||
ITestObjectFactory getObjectFactory();
|
||||
|
||||
void setAnnotationFinder(IAnnotationFinder iAnnotationFinder);
|
||||
|
||||
void setConfigurable(IConfigurable iConfigurable);
|
||||
|
||||
void setHookable(IHookable iHookable);
|
||||
|
||||
void setObjectFactory(ITestObjectFactory iTestObjectFactory);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.testng.IClass;
|
||||
import org.testng.ITestContext;
|
||||
import org.testng.ITestNGMethod;
|
||||
import org.testng.ITestResult;
|
||||
import org.testng.xml.XmlSuite;
|
||||
|
||||
public interface IInvoker {
|
||||
void invokeConfigurations(IClass iClass, ITestNGMethod[] iTestNGMethodArr, XmlSuite xmlSuite, Map<String, String> map, Object[] objArr, Object obj);
|
||||
|
||||
List<ITestResult> invokeTestMethods(ITestNGMethod iTestNGMethod, ITestNGMethod[] iTestNGMethodArr, int i, XmlSuite xmlSuite, Map<String, String> map, ConfigurationGroupMethods configurationGroupMethods, Object[] objArr, ITestContext iTestContext);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import org.testng.IConfigurationListener;
|
||||
import org.testng.ITestListener;
|
||||
|
||||
public interface IResultListener extends ITestListener, IConfigurationListener {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import org.testng.IConfigurationListener2;
|
||||
|
||||
public interface IResultListener2 extends IResultListener, IConfigurationListener2 {
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.testng.IConfigurationListener;
|
||||
import org.testng.ITestListener;
|
||||
import org.testng.ITestNGMethod;
|
||||
import org.testng.ITestResult;
|
||||
import org.testng.xml.XmlTest;
|
||||
|
||||
public interface ITestResultNotifier {
|
||||
void addFailedButWithinSuccessPercentageTest(ITestNGMethod iTestNGMethod, ITestResult iTestResult);
|
||||
|
||||
void addFailedTest(ITestNGMethod iTestNGMethod, ITestResult iTestResult);
|
||||
|
||||
void addInvokedMethod(InvokedMethod invokedMethod);
|
||||
|
||||
void addPassedTest(ITestNGMethod iTestNGMethod, ITestResult iTestResult);
|
||||
|
||||
void addSkippedTest(ITestNGMethod iTestNGMethod, ITestResult iTestResult);
|
||||
|
||||
List<IConfigurationListener> getConfigurationListeners();
|
||||
|
||||
Set<ITestResult> getFailedTests(ITestNGMethod iTestNGMethod);
|
||||
|
||||
Set<ITestResult> getPassedTests(ITestNGMethod iTestNGMethod);
|
||||
|
||||
Set<ITestResult> getSkippedTests(ITestNGMethod iTestNGMethod);
|
||||
|
||||
XmlTest getTest();
|
||||
|
||||
List<ITestListener> getTestListeners();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.FIELD, ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Nullable {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAfterClass extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAfterGroups extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAfterMethod extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAfterSuite extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAfterTest extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAfterTests extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import org.testng.annotations.IAnnotation;
|
||||
|
||||
public interface IAnnotationFinder {
|
||||
IAnnotation findAnnotation(Class cls, Class cls2);
|
||||
|
||||
IAnnotation findAnnotation(Constructor constructor, Class cls);
|
||||
|
||||
IAnnotation findAnnotation(Method method, Class cls);
|
||||
|
||||
String[] findOptionalValues(Constructor constructor);
|
||||
|
||||
String[] findOptionalValues(Method method);
|
||||
|
||||
boolean hasTestInstance(Method method, int i);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IAnnotationTransformer extends org.testng.IAnnotationTransformer {
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IBaseBeforeAfter {
|
||||
boolean getAlwaysRun();
|
||||
|
||||
String[] getDependsOnGroups();
|
||||
|
||||
String[] getDependsOnMethods();
|
||||
|
||||
String getDescription();
|
||||
|
||||
boolean getEnabled();
|
||||
|
||||
String[] getGroups();
|
||||
|
||||
boolean getInheritGroups();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IBeforeClass extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IBeforeGroups extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IBeforeMethod extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IBeforeSuite extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IBeforeTest extends IBaseBeforeAfter {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
public interface IDataProvidable {
|
||||
String getDataProvider();
|
||||
|
||||
Class<?> getDataProviderClass();
|
||||
|
||||
void setDataProvider(String str);
|
||||
|
||||
void setDataProviderClass(Class<?> cls);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
import org.testng.ITestNGListener;
|
||||
|
||||
public interface IListeners {
|
||||
Class<? extends ITestNGListener>[] getValue();
|
||||
|
||||
void setValue(Class<? extends ITestNGListener>[] clsArr);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package org.testng.internal.annotations;
|
||||
|
||||
import org.testng.annotations.ITestAnnotation;
|
||||
|
||||
public interface ITest extends ITestAnnotation {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface IAtomicInteger extends Serializable {
|
||||
int get();
|
||||
|
||||
int incrementAndGet();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface ICountDown {
|
||||
void await() throws InterruptedException;
|
||||
|
||||
boolean await(long j) throws InterruptedException;
|
||||
|
||||
void countDown();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface IExecutor {
|
||||
boolean awaitTermination(long j);
|
||||
|
||||
StackTraceElement[][] getStackTraces();
|
||||
|
||||
void shutdown();
|
||||
|
||||
void stopNow();
|
||||
|
||||
IFutureResult submitRunnable(Runnable runnable);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user