forked from testng-team/testng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IDataProviderMethod.java
41 lines (33 loc) · 1.23 KB
/
IDataProviderMethod.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package org.testng;
import java.lang.reflect.Method;
import java.util.List;
/** Represents the attributes of a {@link org.testng.annotations.DataProvider} annotated method. */
public interface IDataProviderMethod {
/**
* @return - The instance to which the data provider belongs to. <code>null</code> if the data
* provider is a static one.
*/
Object getInstance();
/**
* @return - A {@link Method} object that represents the actual {@literal @}{@link
* org.testng.annotations.DataProvider} method.
*/
Method getMethod();
/** @return The name of this DataProvider. */
String getName();
/** @return Whether this data provider should be run in parallel. */
boolean isParallel();
/** @return Which indices to run from this data provider, default: all. */
List<Integer> getIndices();
/** @return Whether failures in data providers should be treated as test failures */
default boolean propagateFailureAsTestFailure() {
return false;
}
/**
* @return - An Class which implements {@link IRetryDataProvider} and which can be used to retry a
* data provider.
*/
default Class<? extends IRetryDataProvider> retryUsing() {
return IRetryDataProvider.DisableDataProviderRetries.class;
}
}