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}.
*
* <p>Assumptions:
* - Key matching is case-insensitive via the pattern in SENSITIVE.
* - If the key matches a sensitive pattern, the value is replaced with "***REDACTED***".
* - Nested maps and lists are searched recursively.
* - Null maps and null values are ignored or returned as null.
* - Non-sensitive keys/values remain unchanged.
* <p>Assumptions: - Key matching is case-insensitive via the pattern in SENSITIVE. - If the key
* matches a sensitive pattern, the value is replaced with "***REDACTED***". - Nested maps and lists
* are searched recursively. - Null maps and null values are ignored or returned as null. -
* Non-sensitive keys/values remain unchanged.
*/
class SecretMaskerTest {