Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config key for callback discrepancy behavior
Closes #2818
- Loading branch information
1 parent
f81932a
commit d645002
Showing
6 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
testng-core/src/test/java/test/hook/samples/CallBackSample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package test.hook.samples; | ||
|
||
import org.testng.IConfigurable; | ||
import org.testng.IConfigureCallBack; | ||
import org.testng.IHookCallBack; | ||
import org.testng.IHookable; | ||
import org.testng.ITestResult; | ||
import org.testng.annotations.BeforeMethod; | ||
import org.testng.annotations.Test; | ||
|
||
public class CallBackSample { | ||
|
||
public static class ConfigCallBackSkipTestCase implements IConfigurable { | ||
|
||
@Override | ||
public void run(IConfigureCallBack callBack, ITestResult testResult) {} | ||
|
||
@BeforeMethod | ||
public void beforeMethod() {} | ||
|
||
@Test | ||
public void testMethod() {} | ||
} | ||
|
||
public static class TestCallBackSkipTestCase implements IHookable { | ||
@Override | ||
public void run(IHookCallBack callBack, ITestResult testResult) {} | ||
|
||
@Test | ||
public void testMethod() {} | ||
} | ||
} |