Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
161 0 0 1 99.379% 2.009

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.utils 4 0 0 0 100% 0.004
org.apache.maven.plugins.enforcer 157 0 0 1 99.363% 2.005

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

org.apache.maven.plugins.enforcer.utils

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

org.apache.maven.plugins.enforcer

Class Tests Errors Failures Skipped Success Rate Time
RequirePrerequisiteTest 9 0 0 0 100% 0.012
TestRequireFilesExist 7 0 0 0 100% 0.004
BanDistributionManagementTest 8 0 0 0 100% 0.098
TestRequireReleaseVersion 2 0 0 0 100% 0.001
TestAbstractVersionEnforcer 2 0 0 0 100% 0.003
TestRequireFilesDontExist 7 0 0 0 100% 0.001
TestAlwaysFail 1 0 0 0 100% 0
TestRequireOS 3 0 0 0 100% 0.004
TestBannedDependencies$IncludesExcludesNoTransitive 3 0 0 0 100% 0.135
TestBannedDependencies$IllegalFormatsTests 2 0 0 0 100% 0.004
TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies 3 0 0 0 100% 0.008
TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies 4 0 0 0 100% 0.01
TestBannedDependencies$ExcludesUsingTransitiveDependencies 6 0 0 0 100% 0.01
TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies 3 0 0 0 100% 0.003
TestAlwaysPass 1 0 0 0 100% 0
TestBannedRepositories 4 0 0 0 100% 0.005
ReactorModuleConvergenceTest 9 0 0 0 100% 0.074
TestRequireReleaseDeps 2 0 0 0 100% 0.002
TestRequireProperty 3 0 0 0 100% 0.003
RequireActiveProfileTest 9 0 0 0 100% 0.616
TestRequirePluginVersions 14 0 0 0 100% 0.815
TestRequireSnapshotVersion 3 0 0 0 100% 0.001
TestRequireEnvironmentVariable 2 0 0 0 100% 0.001
TestRequireFileChecksum 15 0 0 0 100% 0.058
TestEvaluateBeanshell 5 0 0 0 100% 0.052
TestRequireNoRepositories 15 0 0 0 100% 0.053
TestRequireFilesSize 8 0 0 0 100% 0.006
TestMavenVersion 2 0 0 0 100% 0.003
TestRequireJavaVersion 5 0 0 1 80% 0.023

Test Cases

[Summary] [Package List] [Test Cases]

RequirePrerequisiteTest

testLowerMavenPrerequisite 0
testLowerMavenRangePrerequisite 0.001
testNotMatchingPackagings 0.008
testPomPackaging 0.001
testValidPrerequisite 0
testMatchingPackagings 0.001
testNoSpecifiedPrerequisite 0
testMavenRangesPrerequisite 0.001
testNoPrerequisite 0

TestRequireFilesExist

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

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.09
shouldNotFailWithoutDistributionManagement 0.001
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.001
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.001
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.001
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.001
shouldThrowExceptionCauseParentProjectHasDistributionManagementSnapshotRepository 0.001
shouldAllowDistributionManagementHavingRepository 0.001

TestRequireReleaseVersion

testCache 0
testMojo 0.001

TestAbstractVersionEnforcer

testEnforceVersion 0.001
testContainsVersion 0.001

TestRequireFilesDontExist

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

TestAlwaysFail

testExecute 0

TestRequireOS

testId 0.001
testOS 0.002
testInvalidFamily 0.001

TestBannedDependencies$IncludesExcludesNoTransitive

includeEverythingAndExcludeEverythign 0.13
includeEverythingAndExcludeEveryGroupIdAndScopeRuntime 0.002
includeEverythingAndExcludeEveryGroupIdAndScopeRuntimeYYYY 0.003

TestBannedDependencies$IllegalFormatsTests

onlyThreeColonsWithoutAnythingElse 0.002
onlySevenColonsWithoutAnythingElse 0.002

TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionWildcardTypeScope 0.003
groupIdArtifactIdVersionTypeWildcardScope 0.003
groupIdArtifactIdWithWildcard 0.002

TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies

testWildcardForGroupIdArtifactIdWildcardForVersion 0.002
testWildCardForGroupIdArtifactId 0.002
testWildcardForGroupIdArtifactIdVersion 0.004
testWildcardForGroupIdWildcardForArtifactIdVersion 0.002

TestBannedDependencies$ExcludesUsingTransitiveDependencies

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

TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies

testGroupIdArtifactId 0.001
testGroupId 0.001
testGroupIdArtifactIdVersion 0.001

TestAlwaysPass

testExecute 0

TestBannedRepositories

testAllowedRepositoriesAllOK 0.003
testBannedRepositories 0
testAllowedRepositoriesException 0.001
testNoCheckRules 0

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.007
shouldFailWithWrongDependencyInReactor 0.049
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.003
shouldNotFailWithDependencyInReactory 0.004
shouldNotFailWithAValidProject 0.003
shouldNotFailWithNoProject 0.001
shouldFailWithWrongVersionInOneChild 0.001
shouldNotFailWithACompanyParent 0.003
shouldFailWithMissingParentsInReactory 0.002

TestRequireReleaseDeps

testRule 0.002
testId 0

TestRequireProperty

testRule 0.002
testId 0
testRuleWithRegex 0.001

RequireActiveProfileTest

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

TestRequirePluginVersions

testGetAdditionalPluginsNull 0.334
testHasVersionSpecified 0.051
testId 0.046
testGetAdditionalPluginsEmptySet 0.043
testCombinePlugins 0.053
testGetAdditionalPluginsInvalidFormat 0.04
testHasVersionSpecifiedWithProperties 0.033
testCombinePlugins1 0.031
testCombinePlugins2 0.031
testCombinePlugins3 0.028
testCombinePlugins4 0.03
testCombinePlugins5 0.029
testGetUncheckedPlugins 0.031
testGetAdditionalPlugins 0.032

TestArtifactMatcher

testMatch 0
testPattern 0.001
testPatternInvalidInput 0

TestRequireSnapshotVersion

testWithParentShouldFail 0
testWithParentShouldPass 0
testRequireSnapshot 0

TestRequireEnvironmentVariable

testRule 0
testRuleWithRegex 0.001

TestRequireFileChecksum

testFileChecksumMd5GivenFileIsNotReadableFailure 0.015
testFileChecksumSha256 0.019
testFileChecksumSha384 0.002
testFileChecksumSha512 0.001
testFileChecksumMd5GivenFileDoesNotExistFailure 0.001
testFileChecksumMd5ChecksumMismatchFailure 0.002
testFileChecksumMd5ChecksumMismatchFailureWithMessage 0.002
testFileChecksumMd5GivenFileIsADirectoryFailure 0.001
testFileChecksumMd5 0.002
testFileChecksumMd5NoTypeSpecifiedFailure 0.001
testFileChecksumSha1 0.002
testFileChecksumMd5NoChecksumSpecifiedFailure 0.001
testFileChecksumMd5NoFileSpecifiedFailure 0.001
testFileChecksumMd5GivenFileDoesNotExistFailureWithMessage 0.001
testFileChecksumMd5UpperCase 0.002

TestEvaluateBeanshell

testRuleFailNoMessage 0.043
testRuleInvalidBeanshell 0.002
testRuleInvalidExpression 0.005
testRuleFail 0.001
testRulePass 0.001

TestMockEnforcerExpressionEvaluator

testEvaluate 0.001

TestRequireNoRepositories

testAllBannedWithRepository 0.033
testPluginRepositoriesNotBannedWithOutAnyRepository 0.002
testRepositoriesNotBannedWithOutAnyRepository 0.001
testAllBannedWithSnapshotRepositoryAndSetAllowSnapshotRepositories 0.002
testAllBannedNoRepositories 0.001
testAllBannedWithAllowedPluginRepositories 0.001
testPluginRepositoriesNotBannedWithSinglePluginRepository 0.002
testAllBannedWithPluginRepository 0.001
testAllBannedWithEmptyRepository 0.002
testAllBannedWithSnapshotPluginRepositoryAndSetAllowSnapshotPluginRepositories 0.001
testAllBannedWithAllowedRepositories 0.001
testAllBannedWithSnapshotRepositoryAllowedRepositories 0.002
testAllBannedWithEmptyPluginRepository 0.001
testAllBannedWithSnapshotRepository 0.001
testRepositoriesNotBannedWithSingleRepository 0.001

TestRequireFilesSize

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

TestMavenVersion

testRule 0.002
testId 0

TestRequireJavaVersion

thisShouldNotCrash 0
skipped
settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0
testId 0.021
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0.001
testFixJDKVersion 0.001

Failure Details

[Summary] [Package List] [Test Cases]


thisShouldNotCrash
skipped: skipped