Package org.testng
Class TestNotInvokedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.testng.TestNGException
-
- org.testng.TestNotInvokedException
-
- All Implemented Interfaces:
java.io.Serializable
public class TestNotInvokedException extends TestNGException
Represents an exception that is thrown when a test method is not invoked. One of the use-cases when this can happen is when the user does the following:- User defines a test method
- The class that houses the test method defines support for callbacks via
IHookable
implementation - User willfully skips invoking the callback and also fails at altering the test method's
status via
ITestResult.setStatus(int)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestNotInvokedException(ITestNGMethod tm)
-
-
-
Constructor Detail
-
TestNotInvokedException
public TestNotInvokedException(ITestNGMethod tm)
-
-