package ru.pdguard; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import ru.pdguard.core.PayloadCipher; @SpringBootTest class CipherEnabledTest { @Autowired PayloadCipher cipher; @Test void cipherIsEnabled() { assertTrue(cipher.enabled(), "шифрование должно быть включено ключом из конфигурации"); } }