Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
219 0 0 0 100% 0.751 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.003 s
org.apache.maven.enforcer.rules.checksum 24 0 0 0 100% 0.049 s
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.029 s
org.apache.maven.enforcer.rules 109 0 0 0 100% 0.546 s
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.025 s
org.apache.maven.enforcer.rules.files 28 0 0 0 100% 0.077 s
org.apache.maven.enforcer.rules.dependency 17 0 0 0 100% 0.022 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.001 s
TestRequireProperty 3 0 0 0 100% 0.002 s

org.apache.maven.enforcer.rules.checksum

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireFileChecksum 15 0 0 0 100% 0.032 s
TestRequireTextFileChecksum 5 0 0 0 100% 0.014 s
TestNormalizeLineSeparatorReader 4 0 0 0 100% 0.003 s

org.apache.maven.enforcer.rules.utils

- Class Tests Errors Failures Skipped Success Rate Time
TestMockEnforcerExpressionEvaluator 1 0 0 0 100% 0.027 s
TestArtifactMatcher 4 0 0 0 100% 0.002 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.111 s
TestRequireReleaseVersion 5 0 0 0 100% 0.009 s
TestEvaluateBeanshell 5 0 0 0 100% 0.018 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.003 s
TestRequireSameVersions 7 0 0 0 100% 0.003 s
TestRequirePluginVersions 14 0 0 0 100% 0.025 s
ReactorModuleConvergenceTest 10 0 0 0 100% 0.018 s
RequireActiveProfileTest 9 0 0 0 100% 0.245 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.049 s
BanDistributionManagementTest 7 0 0 0 100% 0.048 s
TestAlwaysPass 1 0 0 0 100% 0.001 s
TestAlwaysFail 1 0 0 0 100% 0 s

org.apache.maven.enforcer.rules.version

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireJavaVersion 26 0 0 0 100% 0.023 s
TestMavenVersion 3 0 0 0 100% 0.002 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.033 s
TestRequireFilesDontExist 8 0 0 0 100% 0.013 s
TestRequireFilesSize 11 0 0 0 100% 0.031 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.008 s
BannedDependenciesTest 6 0 0 0 100% 0.008 s

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

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

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.003 s

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.039 s
shouldFailIfFileLocationIsNotFound 0.002 s
shouldFilterRules 0.067 s
shouldLoadRulesFromClassPath 0.001 s
shouldFailIfNoLocationIsSet 0.001 s

TestRequireReleaseVersion

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

TestEvaluateBeanshell

testRuleFailNoMessage 0.012 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.001 s
testNoCheckRules 0 s

TestRequireOS

testId 0.001 s
testOS 0.002 s
testInvalidFamily 0.001 s

TestRequireJavaVersion

settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0.002 s
testId 0 s
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0 s
shouldIncludeJavaHomeLocationInTheErrorMessage 0.001 s
fixJava8ShortVersion(String, String)[1] 0.002 s
fixJava8ShortVersion(String, String)[2] 0 s
fixJava8ShortVersion(String, String)[3] 0 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.001 s
fixJava8ShortVersion(String, String)[8] 0 s
fixJava8ShortVersion(String, String)[9] 0 s
fixJava8ShortVersion(String, String)[10] 0 s
fixJava8ShortVersion(String, String)[11] 0 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 s
testFixJDKVersion 0.001 s
shouldUseCustomErrorMessage 0 s

TestRequireEnvironmentVariable

ruleShouldBeCached 0 s
testRule 0.001 s
testRuleWithRegex 0 s

TestRequireFilesExist

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

TestRequireFilesDontExist

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

TestMockEnforcerExpressionEvaluator

testEvaluate 0.027 s

TestRequireFilesSize

testEmptyFileList 0.003 s
testFileTooSmall 0.002 s
testDirectoryContentUnderLowerBound 0.007 s
testEmptyFileAllowNull 0.001 s
testId 0.002 s
testEmptyFile 0.001 s
testFileDoesNotExist 0.002 s
testFileExists 0.002 s
testDirectoryContentOverUpperBound 0.005 s
testFileTooBig 0.003 s
testRequireFilesSizeSatisfyAny 0.002 s

TestRequireProperty

testRule 0.001 s
ruleShouldNotBeCached 0 s
testRuleWithRegex 0.001 s

TestRequireSnapshotVersion

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

TestRequireSameVersions

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

TestRequirePluginVersions

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

TestRequireFileChecksum

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

TestArtifactMatcher

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

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.001 s
cacheIdShouldBeSet 0 s
shouldFailWithWrongDependencyInReactor 0.008 s
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.001 s
shouldNotFailWithDependencyInReactory 0.001 s
shouldNotFailWithAValidProject 0.001 s
shouldNotFailWithNoProject 0 s
shouldFailWithWrongVersionInOneChild 0 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 s
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.001 s
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.001 s
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0.001 s
testOneActiveProfileWithTwoProfilesButNotAll 0 s

RequireUpperBoundDepsTest

testRule 0.008 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.032 s
testPluginRepositoriesNotBannedWithOutAnyRepository 0.001 s
testRepositoriesNotBannedWithOutAnyRepository 0.001 s
testAllBannedWithSnapshotRepositoryAndSetAllowSnapshotRepositories 0.001 s
testAllBannedNoRepositories 0.002 s
testAllBannedWithAllowedPluginRepositories 0.001 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.040 s
shouldNotFailWithoutDistributionManagement 0.001 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.001 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.001 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.001 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.002 s
shouldAllowDistributionManagementHavingRepository 0.001 s

BannedDependenciesTest

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

TestAlwaysPass

testExecute 0 s

TestAlwaysFail

testExecute 0 s

TestAbstractVersionEnforcer

testEnforceVersion 0 s

TestNormalizeLineSeparatorReader

testUnixToWindows 0.002 s
testWindowsToUnix 0 s
testUnixToUnix 0 s
testWindowsToWindows 0 s