Feature summary
I would like to be able to perform assertions on StackTraceElement objects, as well as arrays/lists of StackTraceElement objects. This enables testing exception handling logic for remote execution, as well as exception handling for proxies.
Example
var ex = assertThatCode(() -> doSomethingRemotely())
.isInstanceOf(SomeRemoteCodeException.class)
.stackTrace()
.hasFrameSatisfying(frame -> assertThat(frame).hasClass("com.example.Whatever#doSomethingRemotely"));
...this should be relatively simple as StackTraceElements themselves are just POJOs with a few flat attributes on them.
Feature summary
I would like to be able to perform assertions on StackTraceElement objects, as well as arrays/lists of StackTraceElement objects. This enables testing exception handling logic for remote execution, as well as exception handling for proxies.
Example
...this should be relatively simple as StackTraceElements themselves are just POJOs with a few flat attributes on them.