Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
158 0 0 1 99.367% 1.901

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.007
org.apache.maven.plugins.enforcer 154 0 0 1 99.351% 1.894

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.004

org.apache.maven.plugins.enforcer

Class Tests Errors Failures Skipped Success Rate Time
BanDistributionManagementTest 8 0 0 0 100% 0.711
ReactorModuleConvergenceTest 9 0 0 0 100% 0.082
RequireActiveProfileTest 9 0 0 0 100% 0.001
RequirePrerequisiteTest 9 0 0 0 100% 0.006
TestAbstractVersionEnforcer 2 0 0 0 100% 0.023
TestAlwaysFail 1 0 0 0 100% 0.073
TestAlwaysPass 1 0 0 0 100% 0.003
TestBannedDependencies$IncludesExcludesNoTransitive 3 0 0 0 100% 0.017
TestBannedDependencies$IllegalFormatsTests 2 0 0 0 100% 0.002
TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies 3 0 0 0 100% 0.004
TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies 4 0 0 0 100% 0.004
TestBannedDependencies$ExcludesUsingTransitiveDependencies 6 0 0 0 100% 0.004
TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies 3 0 0 0 100% 0.003
TestBannedRepositories 4 0 0 0 100% 0.002
TestEvaluateBeanshell 5 0 0 0 100% 0.049
TestMavenVersion 2 0 0 0 100% 0.01
TestRequireEnvironmentVariable 2 0 0 0 100% 0.001
TestRequireFileChecksum 12 0 0 0 100% 0.057
TestRequireFilesDontExist 7 0 0 0 100% 0.001
TestRequireFilesExist 7 0 0 0 100% 0.002
TestRequireFilesSize 8 0 0 0 100% 0.009
TestRequireJavaVersion 5 0 0 1 80% 0.018
TestRequireNoRepositories 15 0 0 0 100% 0.008
TestRequireOS 3 0 0 0 100% 0.011
TestRequirePluginVersions 14 0 0 0 100% 0.747
TestRequireProperty 3 0 0 0 100% 0.003
TestRequireReleaseDeps 2 0 0 0 100% 0.028
TestRequireReleaseVersion 2 0 0 0 100% 0.009
TestRequireSnapshotVersion 3 0 0 0 100% 0.006

Test Cases

[Summary] [Package List] [Test Cases]

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.674
shouldNotFailWithoutDistributionManagement 0
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.001
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.001
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.001
shouldThrowExceptionCauseParentProjectHasDistributionManagementSnapshotRepository 0
shouldAllowDistributionManagementHavingRepository 0.001

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.042
shouldFailWithWrongDependencyInReactor 0.028
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.002
shouldNotFailWithDependencyInReactory 0.002
shouldNotFailWithAValidProject 0.001
shouldNotFailWithNoProject 0.001
shouldFailWithWrongVersionInOneChild 0.001
shouldNotFailWithACompanyParent 0.001
shouldFailWithMissingParentsInReactory 0.001

RequireActiveProfileTest

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

RequirePrerequisiteTest

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

TestAbstractVersionEnforcer

testEnforceVersion 0.021
testContainsVersion 0

TestAlwaysFail

testExecute 0.071

TestAlwaysPass

testExecute 0.001

TestBannedDependencies$IncludesExcludesNoTransitive

includeEverythingAndExcludeEverythign 0.013
includeEverythingAndExcludeEveryGroupIdAndScopeRuntime 0.002
includeEverythingAndExcludeEveryGroupIdAndScopeRuntimeYYYY 0.002

TestBannedDependencies$IllegalFormatsTests

onlyThreeColonsWithoutAnythingElse 0.001
onlySevenColonsWithoutAnythingElse 0.001

TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionWildcardTypeScope 0.002
groupIdArtifactIdVersionTypeWildcardScope 0.001
groupIdArtifactIdWithWildcard 0.001

TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies

testWildcardForGroupIdArtifactIdWildcardForVersion 0.001
testWildCardForGroupIdArtifactId 0.001
testWildcardForGroupIdArtifactIdVersion 0.001
testWildcardForGroupIdWildcardForArtifactIdVersion 0.001

TestBannedDependencies$ExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionTypeScope 0.001
testGroupIdArtifactId 0.001
testGroupId 0.001
groupIdArtifactIdVersionType 0.001
testGroupIdArtifactIdVersion 0
testSpaceTrimmingGroupIdArtifactIdVersion 0

TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies

testGroupIdArtifactId 0.001
testGroupId 0.001
testGroupIdArtifactIdVersion 0.001

TestBannedRepositories

testAllowedRepositoriesAllOK 0
testBannedRepositories 0
testAllowedRepositoriesException 0
testNoCheckRules 0

TestEvaluateBeanshell

testRuleFailNoMessage 0.029
testRuleInvalidBeanshell 0.003
testRuleInvalidExpression 0.005
testRuleFail 0.006
testRulePass 0.005

TestMavenVersion

testRule 0.008
testId 0

TestRequireEnvironmentVariable

testRule 0
testRuleWithRegex 0

TestRequireFileChecksum

testFileChecksumSha256 0.022
testFileChecksumSha384 0.003
testFileChecksumSha512 0.003
testFileChecksumMd5ChecksumMismatchFailure 0.009
testFileChecksumMd5GivenFileIsADirectoryFailure 0.002
testFileChecksumMd5 0.002
testFileChecksumMd5NoTypeSpecifiedFailure 0.001
testFileChecksumMd5NoFileFailure 0.002
testFileChecksumSha1 0.003
testFileChecksumMd5NoChecksumSpecifiedFailure 0.002
testFileChecksumMd5NoFileSpecifiedFailure 0.001
testFileChecksumMd5UpperCase 0.002

TestRequireFilesDontExist

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

TestRequireFilesExist

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

TestRequireFilesSize

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

TestRequireJavaVersion

thisShouldNotCrash 0
skipped
settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0.005
testId 0.007
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0.004
testFixJDKVersion 0

TestRequireNoRepositories

testAllBannedWithRepository 0
testPluginRepositoriesNotBannedWithOutAnyRepository 0
testRepositoriesNotBannedWithOutAnyRepository 0
testAllBannedWithSnapshotRepositoryAndSetAllowSnapshotRepositories 0
testAllBannedNoRepositories 0
testAllBannedWithAllowedPluginRepositories 0
testPluginRepositoriesNotBannedWithSinglePluginRepository 0
testAllBannedWithPluginRepository 0
testAllBannedWithEmptyRepository 0
testAllBannedWithSnapshotPluginRepositoryAndSetAllowSnapshotPluginRepositories 0
testAllBannedWithAllowedRepositories 0
testAllBannedWithSnapshotRepositoryAllowedRepositories 0
testAllBannedWithEmptyPluginRepository 0
testAllBannedWithSnapshotRepository 0
testRepositoriesNotBannedWithSingleRepository 0

TestRequireOS

testId 0
testOS 0.003
testInvalidFamily 0.003

TestRequirePluginVersions

testGetAdditionalPluginsNull 0.343
testHasVersionSpecified 0.039
testId 0.046
testGetAdditionalPluginsEmptySet 0.036
testCombinePlugins 0.029
testGetAdditionalPluginsInvalidFormat 0.026
testHasVersionSpecifiedWithProperties 0.03
testCombinePlugins1 0.029
testCombinePlugins2 0.034
testCombinePlugins3 0.024
testCombinePlugins4 0.024
testCombinePlugins5 0.022
testGetUncheckedPlugins 0.026
testGetAdditionalPlugins 0.037

TestRequireProperty

testRule 0
testId 0
testRuleWithRegex 0

TestRequireReleaseDeps

testRule 0.024
testId 0

TestRequireReleaseVersion

testCache 0
testMojo 0.007

TestRequireSnapshotVersion

testWithParentShouldFail 0.002
testWithParentShouldPass 0
testRequireSnapshot 0.002

TestArtifactMatcher

testMatch 0
testPattern 0
testPatternInvalidInput 0

TestMockEnforcerExpressionEvaluator

testEvaluate 0

Failure Details

[Summary] [Package List] [Test Cases]


thisShouldNotCrash
skipped: skipped