Update SecretMaskerTest.java

This commit is contained in:
Ludy87 2025-08-10 12:30:17 +02:00
parent 1d9112ec63
commit 1973c86720
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -13,12 +13,10 @@ import org.junit.jupiter.api.Test;
/** /**
* Unit tests for {@link SecretMasker}. * Unit tests for {@link SecretMasker}.
* *
* <p>Assumptions: * <p>Assumptions: - Key matching is case-insensitive via the pattern in SENSITIVE. - If the key
* - Key matching is case-insensitive via the pattern in SENSITIVE. * matches a sensitive pattern, the value is replaced with "***REDACTED***". - Nested maps and lists
* - If the key matches a sensitive pattern, the value is replaced with "***REDACTED***". * are searched recursively. - Null maps and null values are ignored or returned as null. -
* - Nested maps and lists are searched recursively. * Non-sensitive keys/values remain unchanged.
* - Null maps and null values are ignored or returned as null.
* - Non-sensitive keys/values remain unchanged.
*/ */
class SecretMaskerTest { class SecretMaskerTest {