Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
52 0 0 0 100% 1.745

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
net.brabenetz.lib.securedproperties.config 8 0 0 0 100% 0.592
net.brabenetz.lib.securedproperties 21 0 0 0 100% 0.033
net.brabenetz.lib.securedproperties.core 15 0 0 0 100% 1.088
net.brabenetz.lib.securedproperties.utils 6 0 0 0 100% 0.005
net.brabenetz.lib.securedproperties.snippets 2 0 0 0 100% 0.027

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

net.brabenetz.lib.securedproperties.config

Class Tests Errors Failures Skipped Success Rate Time
AbstractConfigInitializerTest 2 0 0 0 100% 0.567
ConfigByEnvPropertiesTest 2 0 0 0 100% 0.006
ConfigByPropertyFileTest 2 0 0 0 100% 0.005
ConfigBySystemPropertiesTest 1 0 0 0 100% 0.007
ConfigKeyTest 1 0 0 0 100% 0.007

net.brabenetz.lib.securedproperties

Class Tests Errors Failures Skipped Success Rate Time
JDependTest 2 0 0 0 100% 0.005
SecuredPropertiesConfigTest 5 0 0 0 100% 0.014
SecuredPropertiesTest 14 0 0 0 100% 0.014

net.brabenetz.lib.securedproperties.core

Class Tests Errors Failures Skipped Success Rate Time
EncryptionTest 7 0 0 0 100% 0.63
SecretContainerStoreTest 8 0 0 0 100% 0.458

net.brabenetz.lib.securedproperties.utils

Class Tests Errors Failures Skipped Success Rate Time
SecuredPropertiesUtilsTest 6 0 0 0 100% 0.005

net.brabenetz.lib.securedproperties.snippets

Class Tests Errors Failures Skipped Success Rate Time
CommonsConfigurationExampleTest 1 0 0 0 100% 0.006
Settings4jExampleTest 1 0 0 0 100% 0.021

Test Cases

[Summary] [Package List] [Test Cases]

AbstractConfigInitializerTest

testInit_withExampleVAlues_shouldSetRightConfigs 0.409
testInit_withoutValues_shouldNotSetAnyConfigs 0.006

ConfigByEnvPropertiesTest

testGetValue 0
testGetValu_NOT_EXISTING 0

ConfigByPropertyFileTest

testGetValue 0
testGetValue_fromNotExistingFile_shouldWorkWithNOP 0

ConfigBySystemPropertiesTest

testGetValue 0

ConfigKeyTest

testGetKebabCase 0

EncryptionTest

testIsAlgorithmSupported 0.617
testEncryptDecryptRoundup 0
testUtilityPattern 0
testCreateKey_Success 0
testGetFirstSupportedAlgorithm 0.007
testCreateKey_Failed 0
testIsEncryptedValue 0

SecretContainerStoreTest

testRead_withUnsupportedAlgorithm 0.147
testUtilityPattern 0
testRead_invalidSecretFile_notEnoughLines 0.142
testRead_withMultipleSupportedAlgorithm 0
testRead_invalidSecretFile_notParsableSecretKey 0.158
testWrite_WithUnsupportedAlgorithm 0.007
testWriteAndRead_withTypicalWorkflows_HappPath 0
testRead_secredFileDoesntExistAndAutoCreateIsOf 0

JDependTest

testToPreventCycleDependencies 0
testDependenciesOfPackages 0

SecuredPropertiesConfigTest

testWithAndAddAllowedAlgorithm 0
testWithAllowedAlgorithm 0
testGetSecretFile_withoutCCustomization_shouldUseDefaultHomeFolder 0.009
testAddAllowedAlgorithm 0
testInitDefault_shouldOverwriteConfigBySystemProperties 0

SecuredPropertiesTest

testGetSecretValue_withSecretFileFromProperty 0
testEncryptNonEncryptedValues_withoutSecretFile_shouldNotCreateSecretFile 0
testUtilityPattern 0
testManualExampleEncryptAndDecrypt_fromEncryptedSystemProperty 0
testGetSecretValue_notDefinedProperty_shouldReturnNull 0
testEncryptNonEncryptedValues_fromUnencryptedPropertyFileWithoutSalt_shouldReplacePropertyWithAlwaysSameValue 0
testManualExampleEncryptAndDecrypt_fromUnencryptedSystemProperty_shouldLogInfoMessage 0.004
testGetSecretValue_fromUnencryptedPropertyFile_shouldNotReplaceProperty 0
testGetSecretValue_fromEncryptedPropertyFile 0
testEncryptNonEncryptedValues_withoutSecretFile_shouldCreateSecretFile 0
testGetSecretValue_withoutSecretFile_shouldCreateSecretFile 0
testGetSecretValue_withMultipleFiles_shouldIgnoreNotExistingOnes 0
testEncryptNonEncryptedValues_withMultipleFiles_shouldIgnoreNotExistingOnes 0
testEncryptNonEncryptedValues_multipleValues_shouldReplaceUnencryptedProperties 0

CommonsConfigurationExampleTest

testSettings4jConfiguration 0

Settings4jExampleTest

testSettings4jConfiguration 0.017

SecuredPropertiesUtilsTest

testUtilityPattern 0
testReadProperties_Fail_InvalidPropertyFile 0
testReadProperties_Fail_NoPropertyFile 0
testReadProperties_Success_HappyPath 0
testReplaceSecretValue 0
testReplaceValue 0