Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
164 0 0 1 99.39% 2.141

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 154 0 0 1 99.351% 1.879
org.apache.maven.plugins.enforcer.utils 10 0 0 0 100% 0.262

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.215
ReactorModuleConvergenceTest 9 0 0 0 100% 0.044
RequireActiveProfileTest 9 0 0 0 100% 0.005
RequirePrerequisiteTest 9 0 0 0 100% 0.015
TestAbstractVersionEnforcer 2 0 0 0 100% 0.011
TestAlwaysFail 1 0 0 0 100% 0.032
TestAlwaysPass 1 0 0 0 100% 0.002
TestBannedDependencies$IncludesExcludesNoTransitive 3 0 0 0 100% 0.013
TestBannedDependencies$IllegalFormatsTests 2 0 0 0 100% 0.003
TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies 3 0 0 0 100% 0.003
TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies 4 0 0 0 100% 0.008
TestBannedDependencies$ExcludesUsingTransitiveDependencies 6 0 0 0 100% 0.01
TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies 3 0 0 0 100% 0.003
TestBannedRepositories 4 0 0 0 100% 0.006
TestEvaluateBeanshell 5 0 0 0 100% 0.042
TestMavenVersion 2 0 0 0 100% 0.002
TestRequireEnvironmentVariable 2 0 0 0 100% 0
TestRequireFileChecksum 12 0 0 0 100% 0.066
TestRequireFilesDontExist 7 0 0 0 100% 0.004
TestRequireFilesExist 7 0 0 0 100% 0.004
TestRequireFilesSize 8 0 0 0 100% 0.006
TestRequireJavaVersion 5 0 0 1 80% 0.033
TestRequireNoRepositories 15 0 0 0 100% 0.051
TestRequireOS 2 0 0 0 100% 0.003
TestRequirePluginVersions 15 0 0 0 100% 1.29
TestRequireProperty 3 0 0 0 100% 0.001
TestRequireReleaseDeps 2 0 0 0 100% 0.004
TestRequireReleaseVersion 2 0 0 0 100% 0.002
TestRequireSnapshotVersion 3 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
TestEnforcerRuleUtils 6 0 0 0 100% 0.262
TestMockEnforcerExpressionEvaluator 1 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

BanDistributionManagementTest

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

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.017
shouldFailWithWrongDependencyInReactor 0.009
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.003
shouldNotFailWithDependencyInReactory 0.004
shouldNotFailWithAValidProject 0.003
shouldNotFailWithNoProject 0.001
shouldFailWithWrongVersionInOneChild 0.001
shouldNotFailWithACompanyParent 0.003
shouldFailWithMissingParentsInReactory 0.002

RequireActiveProfileTest

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

RequirePrerequisiteTest

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

TestAbstractVersionEnforcer

testEnforceVersion 0.007
testContainsVersion 0

TestAlwaysFail

testExecute 0.031

TestAlwaysPass

testExecute 0

TestBannedDependencies$IncludesExcludesNoTransitive

includeEverythingAndExcludeEverythign 0.01
includeEverythingAndExcludeEveryGroupIdAndScopeRuntime 0.002
includeEverythingAndExcludeEveryGroupIdAndScopeRuntimeYYYY 0.001

TestBannedDependencies$IllegalFormatsTests

onlyThreeColonsWithoutAnythingElse 0.001
onlySevenColonsWithoutAnythingElse 0.002

TestBannedDependencies$PartialWildcardExcludesUsingTransitiveDependencies

groupIdArtifactIdVersionWildcardTypeScope 0.001
groupIdArtifactIdVersionTypeWildcardScope 0.001
groupIdArtifactIdWithWildcard 0.001

TestBannedDependencies$WildcardExcludesUsingTransitiveDependencies

testWildcardForGroupIdArtifactIdWildcardForVersion 0.002
testWildCardForGroupIdArtifactId 0.002
testWildcardForGroupIdArtifactIdVersion 0.002
testWildcardForGroupIdWildcardForArtifactIdVersion 0.002

TestBannedDependencies$ExcludesUsingTransitiveDependencies

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

TestBannedDependencies$ExcludesDoNotUseTransitiveDependencies

testGroupIdArtifactId 0.001
testGroupId 0.001
testGroupIdArtifactIdVersion 0.001

TestBannedRepositories

testAllowedRepositoriesAllOK 0.003
testBannedRepositories 0
testAllowedRepositoriesException 0.001
testNoCheckRules 0.001

TestEvaluateBeanshell

testRuleFailNoMessage 0.032
testRuleInvalidBeanshell 0.002
testRuleInvalidExpression 0.003
testRuleFail 0.001
testRulePass 0.003

TestMavenVersion

testRule 0.002
testId 0

TestRequireEnvironmentVariable

testRule 0
testRuleWithRegex 0

TestRequireFileChecksum

testFileChecksumSha256 0.039
testFileChecksumSha384 0.002
testFileChecksumSha512 0.002
testFileChecksumMd5ChecksumMismatchFailure 0.007
testFileChecksumMd5GivenFileIsADirectoryFailure 0.002
testFileChecksumMd5 0.002
testFileChecksumMd5NoTypeSpecifiedFailure 0.002
testFileChecksumMd5NoFileFailure 0.001
testFileChecksumSha1 0.002
testFileChecksumMd5NoChecksumSpecifiedFailure 0.002
testFileChecksumMd5NoFileSpecifiedFailure 0.001
testFileChecksumMd5UpperCase 0.002

TestRequireFilesDontExist

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

TestRequireFilesExist

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

TestRequireFilesSize

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

TestRequireJavaVersion

thisShouldNotCrash 0
skipped
settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0.001
testId 0.028
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0.003
testFixJDKVersion 0

TestRequireNoRepositories

testReposNotAllowedWithSnapshotRepositories 0.021
testReposNotBannedWithPluginRepositories 0.001
testId 0
testAllBannedNoRepositories 0.001
testAllBannedWithAllowedPluginRepositories 0.002
testPluginReposNotBannedNoRepositories 0.001
testReposAllowedWithSnapshotRepositories 0.002
testPluginReposNotAllowedWithSnapshotRepositories 0.001
testPluginReposNotBannedWithRepositories 0.002
testAllBannedWithAllowedRepositories 0.009
testAllBannedWithRepositories 0.003
testReposNotBannedNoRepositories 0.002
testPluginReposNotBannedWithPluginRepositories 0.001
testReposNotBannedWithRepositories 0.001
testPluginReposAllowedWithSnapshotPluginRepositories 0.002

TestRequireOS

testId 0
testOS 0.002

TestRequirePluginVersions

testGetAdditionalPluginsNull 0.418
testHasVersionSpecified 0.101
testGetAllPlugins 0.089
testId 0.074
testGetAdditionalPluginsEmptySet 0.063
testCombinePlugins 0.061
testGetAdditionalPluginsInvalidFormat 0.067
testHasVersionSpecifiedWithProperties 0.067
testCombinePlugins1 0.063
testCombinePlugins2 0.051
testCombinePlugins3 0.055
testCombinePlugins4 0.047
testCombinePlugins5 0.048
testGetUncheckedPlugins 0.044
testGetAdditionalPlugins 0.04

TestRequireProperty

testRule 0
testId 0
testRuleWithRegex 0

TestRequireReleaseDeps

testRule 0.003
testId 0

TestRequireReleaseVersion

testCache 0
testMojo 0.001

TestRequireSnapshotVersion

testWithParentShouldFail 0.001
testWithParentShouldPass 0
testRequireSnapshot 0

TestArtifactMatcher

testMatch 0
testPattern 0
testPatternInvalidInput 0

TestEnforcerRuleUtils

testGetModelsRecursivelyBottom 0.053
testGetModelsRecursivelyParentRelativePath 0.041
testGetModelsRecursivelyParentExpression 0.043
testGetModelsRecursivelyTop 0.055
testCheckIfModelMatches 0.034
testGetModelsRecursivelyParentRelativePathDirectory 0.036

TestMockEnforcerExpressionEvaluator

testEvaluate 0

Failure Details

[Summary] [Package List] [Test Cases]


thisShouldNotCrash
skipped: skipped