Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.022
org.apache.maven.enforcer.rules.checksum 24 0 0 0 100% 0.102
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.108
org.apache.maven.enforcer.rules 101 0 0 0 100% 2.045
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.102
org.apache.maven.enforcer.rules.files 26 0 0 0 100% 0.109
org.apache.maven.enforcer.rules.dependency 17 0 0 0 100% 0.104

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.012
TestRequireProperty 3 0 0 0 100% 0.01

org.apache.maven.enforcer.rules.checksum

Class Tests Errors Failures Skipped Success Rate Time
TestRequireFileChecksum 15 0 0 0 100% 0.067
TestRequireTextFileChecksum 5 0 0 0 100% 0.026
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.098
TestArtifactMatcher 4 0 0 0 100% 0.01

org.apache.maven.enforcer.rules

Class Tests Errors Failures Skipped Success Rate Time
BanDependencyManagementScopeTest 1 0 0 0 100% 0.014
TestExternalRules 4 0 0 0 100% 0.17
TestRequireReleaseVersion 5 0 0 0 100% 0.032
TestEvaluateBeanshell 5 0 0 0 100% 0.082
TestBannedRepositories 4 0 0 0 100% 0.011
TestRequireOS 3 0 0 0 100% 0.007
TestRequireSnapshotVersion 5 0 0 0 100% 0.021
TestRequirePluginVersions 14 0 0 0 100% 0.103
ReactorModuleConvergenceTest 10 0 0 0 100% 0.079
RequireActiveProfileTest 9 0 0 0 100% 1.038
RequirePrerequisiteTest 9 0 0 0 100% 0.017
TestRequireJavaVendor 8 0 0 0 100% 0.01
TestRequireNoRepositories 15 0 0 0 100% 0.272
BanDistributionManagementTest 7 0 0 0 100% 0.183
TestAlwaysPass 1 0 0 0 100% 0.004
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.09
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.054
TestRequireFilesDontExist 8 0 0 0 100% 0.019
TestRequireFilesSize 9 0 0 0 100% 0.036

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.028
BannedDependenciesTest 6 0 0 0 100% 0.037

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

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

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.013

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.142
shouldFailIfFileLocationIsNotFound 0.007
shouldLoadRulesFromClassPath 0.012
shouldFailIfNoLocationIsSet 0.001

TestRequireReleaseVersion

testProjectWithSnapshotVersion 0.01
testCache 0.006
testProjectWithReleaseVersion 0.002
shouldAllowParentSnapshot 0.007
shouldFailWhenParentIsSnapshot 0.003

TestEvaluateBeanshell

testRuleFailNoMessage 0.061
testRuleInvalidBeanshell 0.006
testRuleInvalidExpression 0.005
testRuleFail 0.005
testRulePass 0.003

TestBannedRepositories

testAllowedRepositoriesAllOK 0.004
testBannedRepositories 0.003
testAllowedRepositoriesException 0.002
testNoCheckRules 0.001

TestRequireOS

testId 0.002
testOS 0.003
testInvalidFamily 0.001

TestRequireJavaVersion

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

TestRequireEnvironmentVariable

ruleShouldBeCached 0.001
testRule 0.005
testRuleWithRegex 0.001

TestRequireFilesExist

testEmptyFileListAllowNull 0.029
testEmptyFileList 0.003
testFileOsIndependentExists 0.002
testEmptyFileAllowNull 0.002
testId 0.001
testEmptyFile 0.002
testFileDoesNotExist 0.004
testFileExistsSatisfyAny 0.004
testFileExists 0.002

TestRequireFilesDontExist

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

TestMockEnforcerExpressionEvaluator

testEvaluate 0.098

TestRequireFilesSize

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

TestRequireProperty

testRule 0.003
ruleShouldNotBeCached 0.001
testRuleWithRegex 0.004

TestRequireSnapshotVersion

shouldPassForSnapshot 0.002
shouldFailForRelease 0.002
parentShouldNotBeChecked 0.005
shouldFailForReleaseParent 0.004
shouldPassForSnapshotParent 0.003

TestRequirePluginVersions

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

TestRequireFileChecksum

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

TestArtifactMatcher

testMatch 0.003
testPattern 0.002
testContainsVersion 0.003
testPatternInvalidInput 0

ReactorModuleConvergenceTest

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

RequireActiveProfileTest

testTwoActiveProfilesWithOneRequiredProfile 0.976
testNoActiveProfileButTheRuleRequestedAnActiveProfile 0.006
testNoActiveProfilesInProjectAndNoProfilesExpectedToBeActivated 0.001
testActiveProfileAndExpectedActiveProfile 0.001
testOneActiveProfilesWithTwoRequiredProfiles 0.002
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.002
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.004
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0.002
testOneActiveProfileWithTwoProfilesButNotAll 0.002

RequireUpperBoundDepsTest

testRule 0.026

TestMavenVersion

testRule 0.004
testId 0.001
checkRequireVersionMatrix 0.003

RequirePrerequisiteTest

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

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.008
testFileChecksumMd5NormalizedFromWindowsToUnix 0.003
testFileChecksumMd5NormalizedFromUnixToUnix 0.004
testFileChecksumMd5NormalizedFromWindowsToWindows 0.003
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.004

TestRequireJavaVendor

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

TestRequireNoRepositories

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

BanDistributionManagementTest

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

BannedDependenciesTest

excludesAndIncludesDoNotUseTransitiveDependencies 0.017
excludesAndIncludesUseTransitiveDependencies 0.005
invalidExcludeFormat 0.002
excludesUseTransitiveDependencies 0.003
excludesDoNotUseTransitiveDependencies 0.002
invalidIncludeFormat 0.003

TestAlwaysPass

testExecute 0.002

TestAlwaysFail

testExecute 0.001

TestAbstractVersionEnforcer

testEnforceVersion 0.002

TestNormalizeLineSeparatorReader

testUnixToWindows 0.006
testWindowsToUnix 0
testUnixToUnix 0.001
testWindowsToWindows 0