Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
24 0 0 0 100% 1.380 s

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
org.apache.maven.plugins.enforcer.internal 10 0 0 0 100% 0.303 s
org.apache.maven.plugins.enforcer 14 0 0 0 100% 1.077 s

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

org.apache.maven.plugins.enforcer.internal

- Class Tests Errors Failures Skipped Success Rate Time
EnforcerRuleManagerTest 10 0 0 0 100% 0.303 s

org.apache.maven.plugins.enforcer

- Class Tests Errors Failures Skipped Success Rate Time
TestEnforceMojo 14 0 0 0 100% 1.077 s

Test Cases

[Summary] [Package List] [Test Cases]

TestEnforceMojo

testShouldNotPrintWarnWhenDeprecatedRulesPropertyIsEmpty 0.017 s
emptyRuleListShouldThrowException 0.002 s
testLoggingOnEnforcerRuleExceptionWithMessage 0.007 s
breakBuildImmediately 0.008 s
testShouldPrintWarnWhenUsingDeprecatedRulesProperty 0 s
testFailIfBothRuleOverridePropertiesAreSet 0.001 s
testEnforceMojo 0.002 s
testCaching 0.002 s
testFailIfNoTests 0.002 s
failedRulesAndNoFailPassBuild 0.001 s
testCachePersistence1 0.001 s
testCachePersistence2 0.001 s
testCachePersistence3 1.019 s
testLoggingOnEnforcerRuleExceptionWithoutMessage 0.008 s

EnforcerRuleManagerTest

unKnownRuleThrowException 0.269 s
nullConfigReturnEmptyRules 0.003 s
ruleShouldBeConfigured 0.004 s
shouldThrowExceptionFormComponentCreation 0.003 s
ruleLevelShouldBeDisoveredFromConfigured 0.002 s
createSimpleRule 0.004 s
emptyConfigReturnEmptyRules 0.001 s
createRuleWithImplementation 0.002 s
createSimpleRuleFromComponentAndClasses 0.002 s
invalidConfigurationThrowException 0.002 s