This test targets some code coverage gaps with the `SSLLogger` namely around 
the use of `formatMapEntry(..)` and `log(...)`with a throwable overload. The 
test captures `SSLLogger` output in a buffer and asserts that the correct info 
was logged. Reflection was required to reach the `log(...)` with a throwable 
overload as there is no way access SSLLogger's private console logger and 
target the method otherwise.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - align string RB
 - add test

Changes: https://git.openjdk.org/jdk/pull/33056/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33056&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8361344
  Stats: 172 lines in 1 file changed: 172 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/33056.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33056/head:pull/33056

PR: https://git.openjdk.org/jdk/pull/33056

Reply via email to