Migrate from strongly discouraged `@test(expected = ...)` to `assertThrows(...)`.
More info: go/lsc-assertthrows and go/assertthrows
NOTE: if the source of truth for this code is _NOT_ `//third_party/`, please ask for this CL to be reverted.
Tested:
TAP --sample ran all affected tests and none failed
http://test/OCL:434925976:BASE:434869111:1647399186064:de338189
PiperOrigin-RevId: 435047509
Showing
with
11 additions
and
8 deletions
Please
register
or
sign in
to comment