Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
209 0 0 0 100% 2.276

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.enforcer.rules.property 6 0 0 0 100% 0.011
org.apache.maven.enforcer.rules.checksum 24 0 0 0 100% 0.109
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.1
org.apache.maven.enforcer.rules 101 0 0 0 100% 1.717
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.106
org.apache.maven.enforcer.rules.files 26 0 0 0 100% 0.128
org.apache.maven.enforcer.rules.dependency 17 0 0 0 100% 0.105

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

org.apache.maven.enforcer.rules.property

Class Tests Errors Failures Skipped Success Rate Time
TestRequireEnvironmentVariable 3 0 0 0 100% 0.005
TestRequireProperty 3 0 0 0 100% 0.006

org.apache.maven.enforcer.rules.checksum

Class Tests Errors Failures Skipped Success Rate Time
TestRequireFileChecksum 15 0 0 0 100% 0.071
TestRequireTextFileChecksum 5 0 0 0 100% 0.029
TestNormalizeLineSeparatorReader 4 0 0 0 100% 0.009

org.apache.maven.enforcer.rules.utils

Class Tests Errors Failures Skipped Success Rate Time
TestMockEnforcerExpressionEvaluator 1 0 0 0 100% 0.089
TestArtifactMatcher 4 0 0 0 100% 0.011

org.apache.maven.enforcer.rules

Class Tests Errors Failures Skipped Success Rate Time
BanDependencyManagementScopeTest 1 0 0 0 100% 0.012
TestExternalRules 4 0 0 0 100% 0.144
TestRequireReleaseVersion 5 0 0 0 100% 0.03
TestEvaluateBeanshell 5 0 0 0 100% 0.068
TestBannedRepositories 4 0 0 0 100% 0.01
TestRequireOS 3 0 0 0 100% 0.008
TestRequireSnapshotVersion 5 0 0 0 100% 0.018
TestRequirePluginVersions 14 0 0 0 100% 0.093
ReactorModuleConvergenceTest 10 0 0 0 100% 0.082
RequireActiveProfileTest 9 0 0 0 100% 0.896
RequirePrerequisiteTest 9 0 0 0 100% 0.019
TestRequireJavaVendor 8 0 0 0 100% 0.008
TestRequireNoRepositories 15 0 0 0 100% 0.174
BanDistributionManagementTest 7 0 0 0 100% 0.151
TestAlwaysPass 1 0 0 0 100% 0.002
TestAlwaysFail 1 0 0 0 100% 0.002

org.apache.maven.enforcer.rules.version

Class Tests Errors Failures Skipped Success Rate Time
TestRequireJavaVersion 26 0 0 0 100% 0.094
TestMavenVersion 3 0 0 0 100% 0.008
TestAbstractVersionEnforcer 1 0 0 0 100% 0.004

org.apache.maven.enforcer.rules.files

Class Tests Errors Failures Skipped Success Rate Time
TestRequireFilesExist 9 0 0 0 100% 0.065
TestRequireFilesDontExist 8 0 0 0 100% 0.024
TestRequireFilesSize 9 0 0 0 100% 0.039

org.apache.maven.enforcer.rules.dependency

Class Tests Errors Failures Skipped Success Rate Time
RequireReleaseDepsTest 10 0 0 0 100% 0.039
RequireUpperBoundDepsTest 1 0 0 0 100% 0.031
BannedDependenciesTest 6 0 0 0 100% 0.035

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

testShouldFailOnlyWhenRelease 0.004
testSearchTransitiveMultipleFailures 0.003
testFailWhenParentIsSnapshot 0.005
testId 0.002
testExcludesAndIncludes 0.003
testWildcardExcludeTests 0.002
parentShouldBeExcluded 0.003
testSearchNonTransitive 0.002
testWildcardExcludeAll 0.004
testSearchTransitiveNoFailures 0.003

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.012

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.125
shouldFailIfFileLocationIsNotFound 0.005
shouldLoadRulesFromClassPath 0.009
shouldFailIfNoLocationIsSet 0.001

TestRequireReleaseVersion

testProjectWithSnapshotVersion 0.01
testCache 0.005
testProjectWithReleaseVersion 0.001
shouldAllowParentSnapshot 0.007
shouldFailWhenParentIsSnapshot 0.002

TestEvaluateBeanshell

testRuleFailNoMessage 0.047
testRuleInvalidBeanshell 0.006
testRuleInvalidExpression 0.004
testRuleFail 0.003
testRulePass 0.004

TestBannedRepositories

testAllowedRepositoriesAllOK 0.004
testBannedRepositories 0.002
testAllowedRepositoriesException 0.001
testNoCheckRules 0.001

TestRequireOS

testId 0.001
testOS 0.003
testInvalidFamily 0.002

TestRequireJavaVersion

settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0.006
testId 0.001
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0.002
shouldIncludeJavaHomeLocationInTheErrorMessage 0.002
fixJava8ShortVersion(String, String)[1] 0.019
fixJava8ShortVersion(String, String)[2] 0.001
fixJava8ShortVersion(String, String)[3] 0.001
fixJava8ShortVersion(String, String)[4] 0.001
fixJava8ShortVersion(String, String)[5] 0
fixJava8ShortVersion(String, String)[6] 0.001
fixJava8ShortVersion(String, String)[7] 0.001
fixJava8ShortVersion(String, String)[8] 0.001
fixJava8ShortVersion(String, String)[9] 0
fixJava8ShortVersion(String, String)[10] 0
fixJava8ShortVersion(String, String)[11] 0.001
fixJava8ShortVersion(String, String)[12] 0.001
fixJava8ShortVersion(String, String)[13] 0.001
fixJava8ShortVersion(String, String)[14] 0
fixJava8ShortVersion(String, String)[15] 0.001
fixJava8ShortVersion(String, String)[16] 0.001
fixJava8ShortVersion(String, String)[17] 0
fixJava8ShortVersion(String, String)[18] 0.001
fixJava8ShortVersion(String, String)[19] 0.001
fixJava8ShortVersion(String, String)[20] 0.001
testFixJDKVersion 0.003
shouldUseCustomErrorMessage 0.003

TestRequireEnvironmentVariable

ruleShouldBeCached 0.001
testRule 0.001
testRuleWithRegex 0.001

TestRequireFilesExist

testEmptyFileListAllowNull 0.035
testEmptyFileList 0.003
testFileOsIndependentExists 0.005
testEmptyFileAllowNull 0.002
testId 0.002
testEmptyFile 0.003
testFileDoesNotExist 0.003
testFileExistsSatisfyAny 0.004
testFileExists 0.002

TestRequireFilesDontExist

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

TestMockEnforcerExpressionEvaluator

testEvaluate 0.089

TestRequireFilesSize

testEmptyFileList 0.007
testFileTooSmall 0.003
testEmptyFileAllowNull 0.002
testId 0.004
testEmptyFile 0.002
testFileDoesNotExist 0.004
testFileExists 0.003
testFileTooBig 0.004
testRequireFilesSizeSatisfyAny 0.004

TestRequireProperty

testRule 0.002
ruleShouldNotBeCached 0.001
testRuleWithRegex 0.001

TestRequireSnapshotVersion

shouldPassForSnapshot 0.002
shouldFailForRelease 0.002
parentShouldNotBeChecked 0.002
shouldFailForReleaseParent 0.003
shouldPassForSnapshotParent 0.005

TestRequirePluginVersions

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

TestRequireFileChecksum

testFileChecksumMd5GivenFileIsNotReadableFailure 0.002
testFileChecksumSha256 0.021
testFileChecksumSha384 0.005
testFileChecksumSha512 0.003
testFileChecksumMd5GivenFileDoesNotExistFailure 0.002
testFileChecksumMd5ChecksumMismatchFailure 0.004
testFileChecksumMd5ChecksumMismatchFailureWithMessage 0.006
testFileChecksumMd5GivenFileIsADirectoryFailure 0.002
testFileChecksumMd5 0.003
testFileChecksumMd5NoTypeSpecifiedFailure 0.002
testFileChecksumSha1 0.003
testFileChecksumMd5NoChecksumSpecifiedFailure 0.002
testFileChecksumMd5NoFileSpecifiedFailure 0.001
testFileChecksumMd5GivenFileDoesNotExistFailureWithMessage 0.001
testFileChecksumMd5UpperCase 0.002

TestArtifactMatcher

testMatch 0.003
testPattern 0.003
testContainsVersion 0.003
testPatternInvalidInput 0.001

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.007
cacheIdShouldBeSet 0
shouldFailWithWrongDependencyInReactor 0.044
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.005
shouldNotFailWithDependencyInReactory 0.006
shouldNotFailWithAValidProject 0.005
shouldNotFailWithNoProject 0.001
shouldFailWithWrongVersionInOneChild 0.002
shouldNotFailWithACompanyParent 0.004
shouldFailWithMissingParentsInReactory 0.003

RequireActiveProfileTest

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

RequireUpperBoundDepsTest

testRule 0.029

TestMavenVersion

testRule 0.002
testId 0.001
checkRequireVersionMatrix 0.002

RequirePrerequisiteTest

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

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.009
testFileChecksumMd5NormalizedFromWindowsToUnix 0.005
testFileChecksumMd5NormalizedFromUnixToUnix 0.003
testFileChecksumMd5NormalizedFromWindowsToWindows 0.004
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.005

TestRequireJavaVendor

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

TestRequireNoRepositories

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

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.133
shouldNotFailWithoutDistributionManagement 0.002
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.003
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.003
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.002
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.002
shouldAllowDistributionManagementHavingRepository 0.002

BannedDependenciesTest

excludesAndIncludesDoNotUseTransitiveDependencies 0.013
excludesAndIncludesUseTransitiveDependencies 0.008
invalidExcludeFormat 0.002
excludesUseTransitiveDependencies 0.002
excludesDoNotUseTransitiveDependencies 0.003
invalidIncludeFormat 0.002

TestAlwaysPass

testExecute 0.002

TestAlwaysFail

testExecute 0.002

TestAbstractVersionEnforcer

testEnforceVersion 0.003

TestNormalizeLineSeparatorReader

testUnixToWindows 0.007
testWindowsToUnix 0
testUnixToUnix 0.001
testWindowsToWindows 0