Class ExpectedToFailContext

java.lang.Object
groovy.junit6.plugin.ExpectedToFailContext

public class ExpectedToFailContext extends Object
Delegate for closure predicates supplied to ExpectedToFail, exposing the thrown exception under three convenient names: ex (the Throwable itself), message (its message), and cause (its cause, possibly null).
Since:
6.0.0
  • Constructor Details

    • ExpectedToFailContext

      public ExpectedToFailContext(Throwable thrown)
  • Method Details