Expected exception never thrown in test method body
Reports checked exceptions expected by a TestNG test method that are never thrown inside the method body.
Example:
@Test(expectedExceptions = Exception.class) // warning: Expected 'Exception' never thrown
public void testEngineIsRunning() {
assertTrue(engine.isRunning());
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | TestNG, 233.SNAPSHOT |
Last modified: 13 July 2023