Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
220 0 0 0 100% 1.370 s

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.006 s
org.apache.maven.enforcer.rules.checksum 24 0 0 0 100% 0.090 s
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.053 s
org.apache.maven.enforcer.rules 109 0 0 0 100% 0.984 s
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.056 s
org.apache.maven.enforcer.rules.files 28 0 0 0 100% 0.133 s
org.apache.maven.enforcer.rules.dependency 18 0 0 0 100% 0.048 s

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.003 s
TestRequireProperty 3 0 0 0 100% 0.003 s

org.apache.maven.enforcer.rules.checksum

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireFileChecksum 15 0 0 0 100% 0.055 s
TestRequireTextFileChecksum 5 0 0 0 100% 0.026 s
TestNormalizeLineSeparatorReader 4 0 0 0 100% 0.009 s

org.apache.maven.enforcer.rules.utils

- Class Tests Errors Failures Skipped Success Rate Time
TestMockEnforcerExpressionEvaluator 1 0 0 0 100% 0.048 s
TestArtifactMatcher 4 0 0 0 100% 0.005 s

org.apache.maven.enforcer.rules

- Class Tests Errors Failures Skipped Success Rate Time
BanDependencyManagementScopeTest 1 0 0 0 100% 0.005 s
TestExternalRules 5 0 0 0 100% 0.207 s
TestRequireReleaseVersion 5 0 0 0 100% 0.016 s
TestEvaluateBeanshell 5 0 0 0 100% 0.044 s
TestBannedRepositories 4 0 0 0 100% 0.005 s
TestRequireOS 3 0 0 0 100% 0.006 s
TestRequireSnapshotVersion 5 0 0 0 100% 0.006 s
TestRequireSameVersions 7 0 0 0 100% 0.007 s
TestRequirePluginVersions 14 0 0 0 100% 0.058 s
ReactorModuleConvergenceTest 10 0 0 0 100% 0.035 s
RequireActiveProfileTest 9 0 0 0 100% 0.402 s
RequirePrerequisiteTest 9 0 0 0 100% 0.009 s
TestRequireJavaVendor 8 0 0 0 100% 0.010 s
TestRequireNoRepositories 15 0 0 0 100% 0.090 s
BanDistributionManagementTest 7 0 0 0 100% 0.081 s
TestAlwaysPass 1 0 0 0 100% 0.002 s
TestAlwaysFail 1 0 0 0 100% 0.001 s

org.apache.maven.enforcer.rules.version

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireJavaVersion 26 0 0 0 100% 0.053 s
TestMavenVersion 3 0 0 0 100% 0.003 s
TestAbstractVersionEnforcer 1 0 0 0 100% 0 s

org.apache.maven.enforcer.rules.files

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireFilesExist 9 0 0 0 100% 0.057 s
TestRequireFilesDontExist 8 0 0 0 100% 0.024 s
TestRequireFilesSize 11 0 0 0 100% 0.052 s

org.apache.maven.enforcer.rules.dependency

- Class Tests Errors Failures Skipped Success Rate Time
RequireReleaseDepsTest 10 0 0 0 100% 0.016 s
RequireUpperBoundDepsTest 1 0 0 0 100% 0.016 s
BannedDependenciesTest 7 0 0 0 100% 0.016 s

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

testShouldFailOnlyWhenRelease 0.002 s
testSearchTransitiveMultipleFailures 0.005 s
testFailWhenParentIsSnapshot 0.001 s
testId 0 s
testExcludesAndIncludes 0.001 s
testWildcardExcludeTests 0.001 s
parentShouldBeExcluded 0.001 s
testSearchNonTransitive 0.001 s
testWildcardExcludeAll 0.001 s
testSearchTransitiveNoFailures 0.001 s

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.005 s

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.073 s
shouldFailIfFileLocationIsNotFound 0.003 s
shouldFilterRules 0.126 s
shouldLoadRulesFromClassPath 0.002 s
shouldFailIfNoLocationIsSet 0.001 s

TestRequireReleaseVersion

testProjectWithSnapshotVersion 0.007 s
testCache 0.003 s
testProjectWithReleaseVersion 0.001 s
shouldAllowParentSnapshot 0.003 s
shouldFailWhenParentIsSnapshot 0.001 s

TestEvaluateBeanshell

testRuleFailNoMessage 0.031 s
testRuleInvalidBeanshell 0.004 s
testRuleInvalidExpression 0.003 s
testRuleFail 0.002 s
testRulePass 0.002 s

TestBannedRepositories

testAllowedRepositoriesAllOK 0.002 s
testBannedRepositories 0.001 s
testAllowedRepositoriesException 0.001 s
testNoCheckRules 0.001 s

TestRequireOS

testId 0.002 s
testOS 0.003 s
testInvalidFamily 0.001 s

TestRequireJavaVersion

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

TestRequireEnvironmentVariable

ruleShouldBeCached 0.001 s
testRule 0.001 s
testRuleWithRegex 0.001 s

TestRequireFilesExist

testEmptyFileListAllowNull 0.032 s
testEmptyFileList 0.002 s
testFileOsIndependentExists 0.003 s
testEmptyFileAllowNull 0.002 s
testId 0.002 s
testEmptyFile 0.003 s
testFileDoesNotExist 0.004 s
testFileExistsSatisfyAny 0.004 s
testFileExists 0.003 s

TestRequireFilesDontExist

testEmptyFileListAllowNull 0.003 s
testEmptyFileList 0.002 s
testEmptyFileAllowNull 0.002 s
testId 0.003 s
testEmptyFile 0.002 s
testFileDoesNotExist 0.003 s
testFileDoesNotExistSatisfyAny 0.004 s
testFileExists 0.002 s

TestMockEnforcerExpressionEvaluator

testEvaluate 0.048 s

TestRequireFilesSize

testEmptyFileList 0.006 s
testFileTooSmall 0.003 s
testDirectoryContentUnderLowerBound 0.013 s
testEmptyFileAllowNull 0.002 s
testId 0.003 s
testEmptyFile 0.002 s
testFileDoesNotExist 0.003 s
testFileExists 0.003 s
testDirectoryContentOverUpperBound 0.007 s
testFileTooBig 0.003 s
testRequireFilesSizeSatisfyAny 0.004 s

TestRequireProperty

testRule 0.002 s
ruleShouldNotBeCached 0 s
testRuleWithRegex 0 s

TestRequireSnapshotVersion

shouldPassForSnapshot 0.001 s
shouldFailForRelease 0.001 s
parentShouldNotBeChecked 0.002 s
shouldFailForReleaseParent 0.001 s
shouldPassForSnapshotParent 0.001 s

TestRequireSameVersions

testProjectWithDifferentPluginVersionsInPlugins 0.002 s
testProjectWithSameVersionsInBuildAndReport 0.001 s
testProjectWithDifferentPluginVersionsInBuildAndReport 0 s
testProjectWithDifferentDependencyVersionsInBuildAndReportAndPlugins 0 s
testProjectWithSameVersionsInPlugins 0.001 s
testProjectWithSameVersionsInBuildAndReportAndPlugins 0.001 s
testProjectWithDifferentPluginVersionsInBuildAndReportAndPlugins 0.001 s

TestRequirePluginVersions

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

TestRequireFileChecksum

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

TestArtifactMatcher

testMatch 0.001 s
testPattern 0.001 s
testContainsVersion 0.001 s
testPatternInvalidInput 0 s

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.003 s
cacheIdShouldBeSet 0.001 s
shouldFailWithWrongDependencyInReactor 0.017 s
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.003 s
shouldNotFailWithDependencyInReactory 0.002 s
shouldNotFailWithAValidProject 0.002 s
shouldNotFailWithNoProject 0 s
shouldFailWithWrongVersionInOneChild 0.001 s
shouldNotFailWithACompanyParent 0.002 s
shouldFailWithMissingParentsInReactory 0.002 s

RequireActiveProfileTest

testTwoActiveProfilesWithOneRequiredProfile 0.381 s
testNoActiveProfileButTheRuleRequestedAnActiveProfile 0.003 s
testNoActiveProfilesInProjectAndNoProfilesExpectedToBeActivated 0.001 s
testActiveProfileAndExpectedActiveProfile 0.001 s
testOneActiveProfilesWithTwoRequiredProfiles 0.002 s
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.001 s
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.001 s
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0.001 s
testOneActiveProfileWithTwoProfilesButNotAll 0.001 s

RequireUpperBoundDepsTest

testRule 0.015 s

TestMavenVersion

testRule 0.001 s
testId 0.001 s
checkRequireVersionMatrix 0.001 s

RequirePrerequisiteTest

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

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.009 s
testFileChecksumMd5NormalizedFromWindowsToUnix 0.004 s
testFileChecksumMd5NormalizedFromUnixToUnix 0.004 s
testFileChecksumMd5NormalizedFromWindowsToWindows 0.004 s
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.005 s

TestRequireJavaVendor

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

TestRequireNoRepositories

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

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.070 s
shouldNotFailWithoutDistributionManagement 0.001 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.002 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.001 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.001 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.002 s
shouldAllowDistributionManagementHavingRepository 0.001 s

BannedDependenciesTest

excludesAndIncludesDoNotUseTransitiveDependencies 0.008 s
excludesDoNotUseTransitiveDependenciesNullSafe 0.002 s
excludesAndIncludesUseTransitiveDependencies 0.002 s
invalidExcludeFormat 0.001 s
excludesUseTransitiveDependencies 0.001 s
excludesDoNotUseTransitiveDependencies 0.001 s
invalidIncludeFormat 0.001 s

TestAlwaysPass

testExecute 0 s

TestAlwaysFail

testExecute 0.001 s

TestAbstractVersionEnforcer

testEnforceVersion 0 s

TestNormalizeLineSeparatorReader

testUnixToWindows 0.007 s
testWindowsToUnix 0.001 s
testUnixToUnix 0 s
testWindowsToWindows 0.001 s