link start!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface IFutureResult {
|
||||
Object get() throws InterruptedException, ThreadExecutionException;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface IPooledExecutor {
|
||||
void awaitTermination(long j) throws InterruptedException;
|
||||
|
||||
void execute(Runnable runnable);
|
||||
|
||||
boolean isTerminated();
|
||||
|
||||
void shutdown();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IThreadFactory {
|
||||
Object getThreadFactory();
|
||||
|
||||
List<Thread> getThreads();
|
||||
|
||||
Thread newThread(Runnable runnable);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng.internal.thread.graph;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IThreadWorkerFactory<T> {
|
||||
List<IWorker<T>> createWorkers(List<T> list);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.thread.graph;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IWorker<T> extends Runnable, Comparable<IWorker<T>> {
|
||||
int getPriority();
|
||||
|
||||
List<T> getTasks();
|
||||
|
||||
long getTimeOut();
|
||||
}
|
||||
Reference in New Issue
Block a user