Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
149 0 0 0 100% 1.605

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 139 0 0 0 100% 1.445
org.apache.maven.plugins.enforcer.utils 10 0 0 0 100% 0.16

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

org.apache.maven.plugins.enforcer

Class Tests Errors Failures Skipped Success Rate Time
BanDistributionManagementTest 8 0 0 0 100% 0.361
ReactorModuleConvergenceTest 9 0 0 0 100% 0.066
RequireActiveProfileTest 9 0 0 0 100% 0.006
RequirePrerequisiteTest 9 0 0 0 100% 0.012
TestAbstractVersionEnforcer 2 0 0 0 100% 0.005
TestAlwaysFail 1 0 0 0 100% 0.011
TestAlwaysPass 1 0 0 0 100% 0
TestBannedDependencies$IncludesExcludesNoTransitive 3 0 0 0 100% 0.014
TestBannedDependencies$IllegalFormatsTests 2 0 0 0 100% 0
TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies 3 0 0 0 100% 0.005
TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies 4 0 0 0 100% 0.008
TestBannedDependencies$ExcludesUsingTransitiveDependencies 6 0 0 0 100% 0.009
TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies 3 0 0 0 100% 0.003
TestBannedRepositories 4 0 0 0 100% 0.306
TestEvaluateBeanshell 5 0 0 0 100% 0.052
TestMavenVersion 2 0 0 0 100% 0.001
TestNoSnapshots 2 0 0 0 100% 0.002
TestRequireEnvironmentVariable 2 0 0 0 100% 0.002
TestRequireFilesDontExist 7 0 0 0 100% 0.008
TestRequireFilesExist 7 0 0 0 100% 0.001
TestRequireFilesSize 8 0 0 0 100% 0.002
TestRequireJavaVersion 3 0 0 0 100% 0.002
TestRequireNoRepositories 15 0 0 0 100% 0.315
TestRequireOS 2 0 0 0 100% 0.003
TestRequirePluginVersions 15 0 0 0 100% 0.249
TestRequireProperty 3 0 0 0 100% 0.001
TestRequireReleaseDeps 2 0 0 0 100% 0
TestRequireReleaseVersion 2 0 0 0 100% 0.001

org.apache.maven.plugins.enforcer.utils

Class Tests Errors Failures Skipped Success Rate Time
TestArtifactMatcher 3 0 0 0 100% 0.006
TestEnforcerRuleUtils 6 0 0 0 100% 0.154
TestMockEnforcerExpressionEvaluator 1 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.353
shouldNotFailWithoutDistributionManagement 0
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.001
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.001
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.002
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.002
shouldThrowExceptionCauseParentProjectHasDistributionManagementSnapshotRepository 0.001
shouldAllowDistributionManagementHavingRepository 0.001

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.021
shouldFailWithWrongDependencyInReactor 0.015
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.006
shouldNotFailWithDependencyInReactory 0.007
shouldNotFailWithAValidProject 0.005
shouldNotFailWithNoProject 0.001
shouldFailWithWrongVersionInOneChild 0.003
shouldNotFailWithACompanyParent 0.005
shouldFailWithMissingParentsInReactory 0.003

RequireActiveProfileTest

testTwoActiveProfilesWithOneRequiredProfile 0.001
testNoActiveProfileButTheRuleRequestedAnActiveProfile 0.001
testNoActiveProfilesInProjectAndNoProfilesExpectedToBeActivated 0
testActiveProfileAndExpectedActiveProfile 0
testOneActiveProfilesWithTwoRequiredProfiles 0.001
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.001
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.001
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0
testOneActiveProfileWithTwoProfilesButNotAll 0.001

RequirePrerequisiteTest

testLowerMavenPrerequisite 0.004
testLowerMavenRangePrerequisite 0
testNotMatchingPackagings 0.006
testPomPackaging 0
testValidPrerequisite 0
testMatchingPackagings 0.001
testNoSpecifiedPrerequisite 0
testMavenRangesPrerequisite 0.001
testNoPrerequisite 0

TestAbstractVersionEnforcer

testEnforceVersion 0.003
testContainsVersion 0.002

TestAlwaysFail

testExecute 0.011

TestAlwaysPass

testExecute 0

TestBannedDependencies$IncludesExcludesNoTransitive

includeEverythingAndExcludeEverythign 0.012
includeEverythingAndExcludeEveryGroupIdAndScopeRuntime 0.001
includeEverythingAndExcludeEveryGroupIdAndScopeRuntimeYYYY 0.001

TestBannedDependencies$IllegalFormatsTests

onlyThreeColonsWithoutAnythingElse 0
onlySevenColonsWithoutAnythingElse 0

TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionWildcardTypeScope 0.002
groupIdArtifactIdVersionTypeWildcardScope 0.002
groupIdArtifactIdWithWildcard 0.001

TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies

testWildcardForGroupIdArtifactIdWildcardForVersion 0.002
testWildCardForGroupIdArtifactId 0.001
testWildcardForGroupIdArtifactIdVersion 0.002
testWildcardForGroupIdWildcardForArtifactIdVersion 0.003

TestBannedDependencies$ExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionTypeScope 0.002
testGroupIdArtifactId 0.001
testGroupId 0.001
groupIdArtifactIdVersionType 0.001
testGroupIdArtifactIdVersion 0.002
testSpaceTrimmingGroupIdArtifactIdVersion 0.002

TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies

testGroupIdArtifactId 0.001
testGroupId 0.001
testGroupIdArtifactIdVersion 0.001

TestBannedRepositories

testAllowedRepositoriesAllOK 0.204
testBannedRepositories 0.049
testAllowedRepositoriesException 0.029
testNoCheckRules 0.024

TestEvaluateBeanshell

testRuleFailNoMessage 0.045
testRuleInvalidBeanshell 0.002
testRuleInvalidExpression 0.004
testRuleFail 0
testRulePass 0.001

TestMavenVersion

testRule 0.001
testId 0

TestNoSnapshots

testRule 0.002
testId 0

TestRequireEnvironmentVariable

testRule 0.001
testRuleWithRegex 0.001

TestRequireFilesDontExist

testEmptyFileListAllowNull 0.001
testEmptyFileList 0
testEmptyFileAllowNull 0
testId 0
testEmptyFile 0
testFileDoesNotExist 0.007
testFileExists 0

TestRequireFilesExist

testEmptyFileListAllowNull 0
testEmptyFileList 0
testEmptyFileAllowNull 0
testId 0
testEmptyFile 0
testFileDoesNotExist 0.001
testFileExists 0

TestRequireFilesSize

testEmptyFileList 0
testFileTooSmall 0.001
testEmptyFileAllowNull 0
testId 0
testEmptyFile 0
testFileDoesNotExist 0
testFileExists 0
testFileTooBig 0.001

TestRequireJavaVersion

testRule 0
testId 0
testFixJDKVersion 0.002

TestRequireNoRepositories

testReposNotAllowedWithSnapshotRepositories 0.036
testReposNotBannedWithPluginRepositories 0.021
testId 0.017
testAllBannedNoRepositories 0.02
testAllBannedWithAllowedPluginRepositories 0.031
testPluginReposNotBannedNoRepositories 0.019
testReposAllowedWithSnapshotRepositories 0.018
testPluginReposNotAllowedWithSnapshotRepositories 0.017
testPluginReposNotBannedWithRepositories 0.017
testAllBannedWithAllowedRepositories 0.019
testAllBannedWithRepositories 0.02
testReposNotBannedNoRepositories 0.024
testPluginReposNotBannedWithPluginRepositories 0.023
testReposNotBannedWithRepositories 0.017
testPluginReposAllowedWithSnapshotPluginRepositories 0.016

TestRequireOS

testId 0
testOS 0.003

TestRequirePluginVersions

testGetAdditionalPluginsNull 0.02
testHasVersionSpecified 0.023
testGetAllPlugins 0.023
testId 0.016
testGetAdditionalPluginsEmptySet 0.015
testCombinePlugins 0.02
testGetAdditionalPluginsInvalidFormat 0.016
testHasVersionSpecifiedWithProperties 0.015
testCombinePlugins1 0.015
testCombinePlugins2 0.015
testCombinePlugins3 0.014
testCombinePlugins4 0.013
testCombinePlugins5 0.014
testGetUncheckedPlugins 0.014
testGetAdditionalPlugins 0.016

TestRequireProperty

testRule 0
testId 0
testRuleWithRegex 0.001

TestRequireReleaseDeps

testRule 0
testId 0

TestRequireReleaseVersion

testCache 0.001
testMojo 0

TestArtifactMatcher

testMatch 0.003
testPattern 0.003
testPatternInvalidInput 0

TestEnforcerRuleUtils

testGetModelsRecursivelyBottom 0.026
testGetModelsRecursivelyParentRelativePath 0.03
testGetModelsRecursivelyParentExpression 0.033
testGetModelsRecursivelyTop 0.024
testCheckIfModelMatches 0.02
testGetModelsRecursivelyParentRelativePathDirectory 0.021

TestMockEnforcerExpressionEvaluator

testEvaluate 0