
public class SecuredPropertiesTest extends Object
| Constructor and Description |
|---|
SecuredPropertiesTest() |
public void testUtilityPattern()
public void testGetSecretValue_withMultipleFiles_shouldIgnoreNotExistingOnes()
throws Exception
Exceptionpublic void testGetSecretValue_withSecretFileFromProperty()
throws Exception
Exceptionpublic void testGetSecretValue_fromEncryptedPropertyFile()
throws Exception
Exceptionpublic void testGetSecretValue_notDefinedProperty_shouldReturnNull()
throws Exception
Exceptionpublic void testManualExampleEncryptAndDecrypt_fromEncryptedSystemProperty()
throws Exception
Exceptionpublic void testManualExampleEncryptAndDecrypt_fromUnencryptedSystemProperty_shouldLogInfoMessage()
throws Exception
Exceptionpublic void testGetSecretValue_fromUnencryptedPropertyFile_shouldNotReplaceProperty()
throws Exception
Exceptionpublic void testGetSecretValue_withoutSecretFile_shouldCreateSecretFile()
throws Exception
Exceptionpublic void testEncryptNonEncryptedValues_withMultipleFiles_shouldIgnoreNotExistingOnes()
throws Exception
Exceptionpublic void testEncryptNonEncryptedValues_multipleValues_shouldReplaceUnencryptedProperties()
throws Exception
Exceptionpublic void testEncryptNonEncryptedValues_fromUnencryptedPropertyFileWithoutSalt_shouldReplacePropertyWithAlwaysSameValue()
throws Exception
Exceptionpublic void testEncryptNonEncryptedValues_withoutSecretFile_shouldCreateSecretFile()
throws Exception
ExceptionCopyright © 2016–2019 Brabenetz Harald, Austria. All rights reserved.