Package guru.mikelue.jdut.testng
Class TestNGConfigUtil
- java.lang.Object
-
- guru.mikelue.jdut.testng.TestNGConfigUtil
-
public final class TestNGConfigUtil extends Object
Provides utility for processing instance ofTestNGConfig
annotation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
firstTime(ITestNGMethod testNgMethod)
Checkes if this is first time of invocation(by data provider).static boolean
lastTime(ITestNGMethod testNgMethod)
Checkes if this is last time of invocation(by data provider).static boolean
oneTimeOnly(ITestNGMethod testNgMethod)
Checkes if there isTestNGConfig
with true value ofTestNGConfig.oneTimeOnly()
.
-
-
-
Method Detail
-
oneTimeOnly
public static boolean oneTimeOnly(ITestNGMethod testNgMethod)
Checkes if there isTestNGConfig
with true value ofTestNGConfig.oneTimeOnly()
.- Parameters:
testNgMethod
- The method of TestNG- Returns:
- true if the config has true value
- See Also:
firstTime(org.testng.ITestNGMethod)
,lastTime(org.testng.ITestNGMethod)
-
firstTime
public static boolean firstTime(ITestNGMethod testNgMethod)
Checkes if this is first time of invocation(by data provider).- Parameters:
testNgMethod
- The method of TestNG- Returns:
- true if the config is true and the first time
- See Also:
lastTime(org.testng.ITestNGMethod)
-
lastTime
public static boolean lastTime(ITestNGMethod testNgMethod)
Checkes if this is last time of invocation(by data provider).- Parameters:
testNgMethod
- The method of TestNG- Returns:
- true if the config is true and the first time
- See Also:
firstTime(org.testng.ITestNGMethod)
-
-