Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
163 0 0 1 99.387% 1.364

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 8 0 0 0 100% 0.022
org.apache.maven.plugins.enforcer 155 0 0 1 99.355% 1.342

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.01
TestMockEnforcerExpressionEvaluator 1 0 0 0 100% 0.004
TestNormalizeLineSeparatorReader 4 0 0 0 100% 0.008

org.apache.maven.plugins.enforcer

Class Tests Errors Failures Skipped Success Rate Time
RequirePrerequisiteTest 9 0 0 0 100% 0.015
TestRequireFilesExist 8 0 0 0 100% 0.023
BanDistributionManagementTest 8 0 0 0 100% 0.087
TestRequireReleaseVersion 2 0 0 0 100% 0.008
TestAbstractVersionEnforcer 2 0 0 0 100% 0.004
TestRequireFilesDontExist 7 0 0 0 100% 0.024
TestRequireJavaVendor 8 0 0 0 100% 0.014
TestAlwaysFail 1 0 0 0 100% 0.001
TestRequireOS 3 0 0 0 100% 0.008
TestAlwaysPass 1 0 0 0 100% 0.002
TestBannedRepositories 4 0 0 0 100% 0.011
ReactorModuleConvergenceTest 9 0 0 0 100% 0.044
TestRequireReleaseDeps 4 0 0 0 100% 0.107
TestRequireProperty 3 0 0 0 100% 0.004
RequireActiveProfileTest 9 0 0 0 100% 0.6
TestRequirePluginVersions 14 0 0 0 100% 0.014
TestRequireSnapshotVersion 3 0 0 0 100% 0.009
TestRequireTextFileChecksum 5 0 0 0 100% 0.018
TestRequireEnvironmentVariable 2 0 0 0 100% 0.005
TestRequireFileChecksum 15 0 0 0 100% 0.166
TestEvaluateBeanshell 6 0 0 0 100% 0.065
TestRequireNoRepositories 15 0 0 0 100% 0.065
TestRequireFilesSize 8 0 0 0 100% 0.019
TestMavenVersion 3 0 0 0 100% 0.007
TestRequireJavaVersion 5 0 0 1 80% 0.009
RequireUpperBoundDepsTest 1 0 0 0 100% 0.013

Test Cases

[Summary] [Package List] [Test Cases]

RequirePrerequisiteTest

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

TestRequireFilesExist

testEmptyFileListAllowNull 0.003
testEmptyFileList 0.003
testFileOsIndependentExists 0.003
testEmptyFileAllowNull 0.001
testId 0.001
testEmptyFile 0.002
testFileDoesNotExist 0.002
testFileExists 0.002

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.072
shouldNotFailWithoutDistributionManagement 0.001
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.002
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.002
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.002
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.001
shouldThrowExceptionCauseParentProjectHasDistributionManagementSnapshotRepository 0.001
shouldAllowDistributionManagementHavingRepository 0.002

TestRequireReleaseVersion

testCache 0.002
testMojo 0.004

TestAbstractVersionEnforcer

testEnforceVersion 0.001
testContainsVersion 0.002

TestRequireFilesDontExist

testEmptyFileListAllowNull 0.003
testEmptyFileList 0.003
testEmptyFileAllowNull 0.003
testId 0.002
testEmptyFile 0.002
testFileDoesNotExist 0.003
testFileExists 0.003

TestRequireJavaVendor

defaultRule 0.001
matchingInclude 0.001
nonMatchingInclude 0.002
matchAnyInclude 0.002
matchingExclude 0.001
matchingIncludeAndMatchingExclude 0.002
nonMatchingExclude 0.001
matchAnyExclude 0.002

TestAlwaysFail

testExecute 0.001

TestRequireOS

testId 0.001
testOS 0.002
testInvalidFamily 0.004

TestAlwaysPass

testExecute 0.002

TestBannedRepositories

testAllowedRepositoriesAllOK 0.002
testBannedRepositories 0.002
testAllowedRepositoriesException 0.002
testNoCheckRules 0.001

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.004
shouldFailWithWrongDependencyInReactor 0.02
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.003
shouldNotFailWithDependencyInReactory 0.005
shouldNotFailWithAValidProject 0.003
shouldNotFailWithNoProject 0
shouldFailWithWrongVersionInOneChild 0.002
shouldNotFailWithACompanyParent 0.003
shouldFailWithMissingParentsInReactory 0.002

TestRequireReleaseDeps

testRule 0.008
testId 0.088
parentShouldBeExcluded 0.008
testWildcardIgnore 0.001

TestRequireProperty

testRule 0.001
testId 0
testRuleWithRegex 0.001

RequireActiveProfileTest

testTwoActiveProfilesWithOneRequiredProfile 0.569
testNoActiveProfileButTheRuleRequestedAnActiveProfile 0.005
testNoActiveProfilesInProjectAndNoProfilesExpectedToBeActivated 0.001
testActiveProfileAndExpectedActiveProfile 0.001
testOneActiveProfilesWithTwoRequiredProfiles 0.002
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.002
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.001
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0.001
testOneActiveProfileWithTwoProfilesButNotAll 0.002

TestRequirePluginVersions

testGetAdditionalPluginsNull 0.003
testHasVersionSpecified 0.002
testId 0
testGetAdditionalPluginsEmptySet 0
testCombinePlugins 0
testGetAdditionalPluginsInvalidFormat 0
testHasVersionSpecifiedWithProperties 0.001
testCombinePlugins1 0.001
testCombinePlugins2 0
testCombinePlugins3 0
testCombinePlugins4 0
testCombinePlugins5 0
testGetUncheckedPlugins 0
testGetAdditionalPlugins 0

TestArtifactMatcher

testMatch 0.004
testPattern 0.004
testPatternInvalidInput 0.001

TestRequireSnapshotVersion

testWithParentShouldFail 0.005
testWithParentShouldPass 0.001
testRequireSnapshot 0.001

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.005
testFileChecksumMd5NormalizedFromWindowsToUnix 0.003
testFileChecksumMd5NormalizedFromUnixToUnix 0.003
testFileChecksumMd5NormalizedFromWindowsToWindows 0.003
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.003

TestRequireEnvironmentVariable

testRule 0.003
testRuleWithRegex 0.001

TestRequireFileChecksum

testFileChecksumMd5GivenFileIsNotReadableFailure 0.107
testFileChecksumSha256 0.013
testFileChecksumSha384 0.003
testFileChecksumSha512 0.004
testFileChecksumMd5GivenFileDoesNotExistFailure 0.003
testFileChecksumMd5ChecksumMismatchFailure 0.004
testFileChecksumMd5ChecksumMismatchFailureWithMessage 0.004
testFileChecksumMd5GivenFileIsADirectoryFailure 0.002
testFileChecksumMd5 0.003
testFileChecksumMd5NoTypeSpecifiedFailure 0.003
testFileChecksumSha1 0.002
testFileChecksumMd5NoChecksumSpecifiedFailure 0.002
testFileChecksumMd5NoFileSpecifiedFailure 0.002
testFileChecksumMd5GivenFileDoesNotExistFailureWithMessage 0.002
testFileChecksumMd5UpperCase 0.003

TestEvaluateBeanshell

testRuleFailNoMessage 0.039
testRuleInvalidBeanshell 0.003
testRuleInvalidExpression 0.004
testRuleCanExecuteMultipleThreads 0.011
testRuleFail 0.002
testRulePass 0.002

TestMockEnforcerExpressionEvaluator

testEvaluate 0.003

TestNormalizeLineSeparatorReader

testUnixToWindows 0.006
testWindowsToUnix 0
testUnixToUnix 0
testWindowsToWindows 0

TestRequireNoRepositories

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

TestRequireFilesSize

testEmptyFileList 0.004
testFileTooSmall 0.003
testEmptyFileAllowNull 0.002
testId 0.001
testEmptyFile 0.002
testFileDoesNotExist 0.002
testFileExists 0.002
testFileTooBig 0.003

TestMavenVersion

testRule 0.002
testId 0
checkRequireVersionMatrix 0.003

TestRequireJavaVersion

thisShouldNotCrash 0
public void org.apache.maven.plugins.enforcer.TestRequireJavaVersion.thisShouldNotCrash() throws org.apache.maven.enforcer.rule.api.EnforcerRuleException is @Disabled
settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0.005
testId 0
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0.002
testFixJDKVersion 0.001

RequireUpperBoundDepsTest

testRule 0.013

Failure Details

[Summary] [Package List] [Test Cases]


thisShouldNotCrash
skipped: public void org.apache.maven.plugins.enforcer.TestRequireJavaVersion.thisShouldNotCrash() throws org.apache.maven.enforcer.rule.api.EnforcerRuleException is @Disabled