Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
220 0 0 0 100% 0.806 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.005 s
org.apache.maven.enforcer.rules.checksum 24 0 0 0 100% 0.056 s
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.032 s
org.apache.maven.enforcer.rules 109 0 0 0 100% 0.578 s
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.032 s
org.apache.maven.enforcer.rules.files 28 0 0 0 100% 0.078 s
org.apache.maven.enforcer.rules.dependency 18 0 0 0 100% 0.025 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.002 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.037 s
TestRequireTextFileChecksum 5 0 0 0 100% 0.015 s
TestNormalizeLineSeparatorReader 4 0 0 0 100% 0.004 s

org.apache.maven.enforcer.rules.utils

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

org.apache.maven.enforcer.rules

- Class Tests Errors Failures Skipped Success Rate Time
BanDependencyManagementScopeTest 1 0 0 0 100% 0.003 s
TestExternalRules 5 0 0 0 100% 0.116 s
TestRequireReleaseVersion 5 0 0 0 100% 0.010 s
TestEvaluateBeanshell 5 0 0 0 100% 0.021 s
TestBannedRepositories 4 0 0 0 100% 0.003 s
TestRequireOS 3 0 0 0 100% 0.004 s
TestRequireSnapshotVersion 5 0 0 0 100% 0.004 s
TestRequireSameVersions 7 0 0 0 100% 0.004 s
TestRequirePluginVersions 14 0 0 0 100% 0.034 s
ReactorModuleConvergenceTest 10 0 0 0 100% 0.025 s
RequireActiveProfileTest 9 0 0 0 100% 0.246 s
RequirePrerequisiteTest 9 0 0 0 100% 0.004 s
TestRequireJavaVendor 8 0 0 0 100% 0.002 s
TestRequireNoRepositories 15 0 0 0 100% 0.050 s
BanDistributionManagementTest 7 0 0 0 100% 0.050 s
TestAlwaysPass 1 0 0 0 100% 0.001 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.029 s
TestMavenVersion 3 0 0 0 100% 0.002 s
TestAbstractVersionEnforcer 1 0 0 0 100% 0.001 s

org.apache.maven.enforcer.rules.files

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireFilesExist 9 0 0 0 100% 0.032 s
TestRequireFilesDontExist 8 0 0 0 100% 0.013 s
TestRequireFilesSize 11 0 0 0 100% 0.033 s

org.apache.maven.enforcer.rules.dependency

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

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

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

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.003 s

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.044 s
shouldFailIfFileLocationIsNotFound 0.002 s
shouldFilterRules 0.068 s
shouldLoadRulesFromClassPath 0.001 s
shouldFailIfNoLocationIsSet 0.001 s

TestRequireReleaseVersion

testProjectWithSnapshotVersion 0.004 s
testCache 0.001 s
testProjectWithReleaseVersion 0.001 s
shouldAllowParentSnapshot 0.002 s
shouldFailWhenParentIsSnapshot 0 s

TestEvaluateBeanshell

testRuleFailNoMessage 0.015 s
testRuleInvalidBeanshell 0.003 s
testRuleInvalidExpression 0.001 s
testRuleFail 0.001 s
testRulePass 0.001 s

TestBannedRepositories

testAllowedRepositoriesAllOK 0.001 s
testBannedRepositories 0.001 s
testAllowedRepositoriesException 0 s
testNoCheckRules 0.001 s

TestRequireOS

testId 0.001 s
testOS 0.002 s
testInvalidFamily 0.001 s

TestRequireJavaVersion

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

TestRequireEnvironmentVariable

ruleShouldBeCached 0.001 s
testRule 0 s
testRuleWithRegex 0.001 s

TestRequireFilesExist

testEmptyFileListAllowNull 0.018 s
testEmptyFileList 0.002 s
testFileOsIndependentExists 0.002 s
testEmptyFileAllowNull 0.001 s
testId 0.001 s
testEmptyFile 0.001 s
testFileDoesNotExist 0.002 s
testFileExistsSatisfyAny 0.003 s
testFileExists 0.001 s

TestRequireFilesDontExist

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

TestMockEnforcerExpressionEvaluator

testEvaluate 0.029 s

TestRequireFilesSize

testEmptyFileList 0.003 s
testFileTooSmall 0.002 s
testDirectoryContentUnderLowerBound 0.009 s
testEmptyFileAllowNull 0.002 s
testId 0.002 s
testEmptyFile 0.001 s
testFileDoesNotExist 0.002 s
testFileExists 0.002 s
testDirectoryContentOverUpperBound 0.004 s
testFileTooBig 0.003 s
testRequireFilesSizeSatisfyAny 0.003 s

TestRequireProperty

testRule 0.001 s
ruleShouldNotBeCached 0 s
testRuleWithRegex 0.001 s

TestRequireSnapshotVersion

shouldPassForSnapshot 0.001 s
shouldFailForRelease 0 s
parentShouldNotBeChecked 0.001 s
shouldFailForReleaseParent 0.001 s
shouldPassForSnapshotParent 0 s

TestRequireSameVersions

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

TestRequirePluginVersions

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

TestRequireFileChecksum

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

TestArtifactMatcher

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

ReactorModuleConvergenceTest

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

RequireActiveProfileTest

testTwoActiveProfilesWithOneRequiredProfile 0.232 s
testNoActiveProfileButTheRuleRequestedAnActiveProfile 0.002 s
testNoActiveProfilesInProjectAndNoProfilesExpectedToBeActivated 0 s
testActiveProfileAndExpectedActiveProfile 0 s
testOneActiveProfilesWithTwoRequiredProfiles 0.001 s
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.001 s
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.001 s
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0.001 s
testOneActiveProfileWithTwoProfilesButNotAll 0 s

RequireUpperBoundDepsTest

testRule 0.010 s

TestMavenVersion

testRule 0.001 s
testId 0 s
checkRequireVersionMatrix 0.001 s

RequirePrerequisiteTest

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

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.005 s
testFileChecksumMd5NormalizedFromWindowsToUnix 0.002 s
testFileChecksumMd5NormalizedFromUnixToUnix 0.002 s
testFileChecksumMd5NormalizedFromWindowsToWindows 0.002 s
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.003 s

TestRequireJavaVendor

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

TestRequireNoRepositories

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

BanDistributionManagementTest

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

BannedDependenciesTest

excludesAndIncludesDoNotUseTransitiveDependencies 0.004 s
excludesDoNotUseTransitiveDependenciesNullSafe 0.001 s
excludesAndIncludesUseTransitiveDependencies 0.001 s
invalidExcludeFormat 0.001 s
excludesUseTransitiveDependencies 0 s
excludesDoNotUseTransitiveDependencies 0.001 s
invalidIncludeFormat 0 s

TestAlwaysPass

testExecute 0.001 s

TestAlwaysFail

testExecute 0.001 s

TestAbstractVersionEnforcer

testEnforceVersion 0.001 s

TestNormalizeLineSeparatorReader

testUnixToWindows 0.003 s
testWindowsToUnix 0 s
testUnixToUnix 0 s
testWindowsToWindows 0 s