enables assertj assertions about the caught throwable . example : / / given an empty list list mylist = new arraylist ; / / when we try to get first element of the list when mylist . get 1 ; / / then we expect an indexoutofboundsthrowable then caughtthrowable . isinstanceof indexoutofboundsthrowable.class . hasmessage `` index : 1 , size : 0 '' . hasmessagestartingwith `` index : 1 '' . hasmessageendingwith `` size : 0 '' . hasmessagecontaining `` size '' . hasnocause ; concode_field_sep PlaceHolder placeHolder concode_field_sep void thenThrown concode_elem_sep Throwable caughtThrowable concode_elem_sep T when
AbstractThrowableAssert < ? , ? extends Throwable > function ( Throwable arg0 ) { return new CatchThrowableAssert ( arg0 ) ; }