Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
150 0 0 0 100% 1.506

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 140 0 0 0 100% 1.383
org.apache.maven.plugins.enforcer.utils 10 0 0 0 100% 0.123

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 9 0 0 0 100% 0.326
ReactorModuleConvergenceTest 9 0 0 0 100% 0.061
RequireActiveProfileTest 9 0 0 0 100% 0.004
RequirePrerequisiteTest 9 0 0 0 100% 0.014
TestAbstractVersionEnforcer 2 0 0 0 100% 0.005
TestAlwaysFail 1 0 0 0 100% 0.009
TestAlwaysPass 1 0 0 0 100% 0
TestBannedDependencies$IncludesExcludesNoTransitive 3 0 0 0 100% 0.012
TestBannedDependencies$IllegalFormatsTests 2 0 0 0 100% 0.001
TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies 3 0 0 0 100% 0.004
TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies 4 0 0 0 100% 0.006
TestBannedDependencies$ExcludesUsingTransitiveDependencies 6 0 0 0 100% 0.007
TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies 3 0 0 0 100% 0.002
TestBannedRepositories 4 0 0 0 100% 0.305
TestEvaluateBeanshell 5 0 0 0 100% 0.057
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.002
TestRequireFilesSize 8 0 0 0 100% 0.004
TestRequireJavaVersion 3 0 0 0 100% 0.003
TestRequireNoRepositories 15 0 0 0 100% 0.308
TestRequireOS 2 0 0 0 100% 0.003
TestRequirePluginVersions 15 0 0 0 100% 0.236
TestRequireProperty 3 0 0 0 100% 0
TestRequireReleaseDeps 2 0 0 0 100% 0.001
TestRequireReleaseVersion 2 0 0 0 100% 0

org.apache.maven.plugins.enforcer.utils

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

Test Cases

[Summary] [Package List] [Test Cases]

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.312
shouldNotFailWithoutDistributionManagement 0
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.002
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.002
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.002
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.002
shouldThrowExceptionCauseParentProjectHasDistributionManagement 0.002
shouldThrowExceptionCauseParentProjectHasDistributionManagementSnapshotRepository 0.002
shouldAllowDistributionManagementHavingRepository 0.002

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.021
shouldFailWithWrongDependencyInReactor 0.015
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.005
shouldNotFailWithDependencyInReactory 0.006
shouldNotFailWithAValidProject 0.004
shouldNotFailWithNoProject 0
shouldFailWithWrongVersionInOneChild 0.002
shouldNotFailWithACompanyParent 0.005
shouldFailWithMissingParentsInReactory 0.003

RequireActiveProfileTest

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

RequirePrerequisiteTest

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

TestAbstractVersionEnforcer

testEnforceVersion 0.003
testContainsVersion 0.002

TestAlwaysFail

testExecute 0.009

TestAlwaysPass

testExecute 0

TestBannedDependencies$IncludesExcludesNoTransitive

includeEverythingAndExcludeEverythign 0.011
includeEverythingAndExcludeEveryGroupIdAndScopeRuntime 0.001
includeEverythingAndExcludeEveryGroupIdAndScopeRuntimeYYYY 0

TestBannedDependencies$IllegalFormatsTests

onlyThreeColonsWithoutAnythingElse 0
onlySevenColonsWithoutAnythingElse 0.001

TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionWildcardTypeScope 0.001
groupIdArtifactIdVersionTypeWildcardScope 0.002
groupIdArtifactIdWithWildcard 0.001

TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies

testWildcardForGroupIdArtifactIdWildcardForVersion 0.002
testWildCardForGroupIdArtifactId 0.001
testWildcardForGroupIdArtifactIdVersion 0.001
testWildcardForGroupIdWildcardForArtifactIdVersion 0.002

TestBannedDependencies$ExcludesUsingTransitiveDependencies

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

TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies

testGroupIdArtifactId 0.001
testGroupId 0.001
testGroupIdArtifactIdVersion 0

TestBannedRepositories

testAllowedRepositoriesAllOK 0.196
testBannedRepositories 0.044
testAllowedRepositoriesException 0.031
testNoCheckRules 0.034

TestEvaluateBeanshell

testRuleFailNoMessage 0.049
testRuleInvalidBeanshell 0.002
testRuleInvalidExpression 0.005
testRuleFail 0
testRulePass 0.001

TestMavenVersion

testRule 0
testId 0.001

TestNoSnapshots

testRule 0.002
testId 0

TestRequireEnvironmentVariable

testRule 0.002
testRuleWithRegex 0

TestRequireFilesDontExist

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

TestRequireFilesExist

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

TestRequireFilesSize

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

TestRequireJavaVersion

testRule 0.001
testId 0.001
testFixJDKVersion 0.001

TestRequireNoRepositories

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

TestRequireOS

testId 0
testOS 0.003

TestRequirePluginVersions

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

TestRequireProperty

testRule 0
testId 0
testRuleWithRegex 0

TestRequireReleaseDeps

testRule 0.001
testId 0

TestRequireReleaseVersion

testCache 0
testMojo 0

TestArtifactMatcher

testMatch 0.001
testPattern 0.001
testPatternInvalidInput 0.001

TestEnforcerRuleUtils

testGetModelsRecursivelyBottom 0.02
testGetModelsRecursivelyParentRelativePath 0.02
testGetModelsRecursivelyParentExpression 0.026
testGetModelsRecursivelyTop 0.018
testCheckIfModelMatches 0.018
testGetModelsRecursivelyParentRelativePathDirectory 0.018

TestMockEnforcerExpressionEvaluator

testEvaluate 0