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());
  }