Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
209 0 0 0 100% 0.694 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.036 s
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.034 s
org.apache.maven.enforcer.rules 101 0 0 0 100% 0.519 s
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.028 s
org.apache.maven.enforcer.rules.files 26 0 0 0 100% 0.040 s
org.apache.maven.enforcer.rules.dependency 17 0 0 0 100% 0.031 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.023 s
TestRequireTextFileChecksum 5 0 0 0 100% 0.009 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.031 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.004 s
TestExternalRules 4 0 0 0 100% 0.048 s
TestRequireReleaseVersion 5 0 0 0 100% 0.010 s
TestEvaluateBeanshell 5 0 0 0 100% 0.022 s
TestBannedRepositories 4 0 0 0 100% 0.005 s
TestRequireOS 3 0 0 0 100% 0.004 s
TestRequireSnapshotVersion 5 0 0 0 100% 0.005 s
TestRequirePluginVersions 14 0 0 0 100% 0.031 s
ReactorModuleConvergenceTest 10 0 0 0 100% 0.021 s
RequireActiveProfileTest 9 0 0 0 100% 0.261 s
RequirePrerequisiteTest 9 0 0 0 100% 0.005 s
TestRequireJavaVendor 8 0 0 0 100% 0.002 s
TestRequireNoRepositories 15 0 0 0 100% 0.053 s
BanDistributionManagementTest 7 0 0 0 100% 0.048 s
TestAlwaysPass 1 0 0 0 100% 0 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.025 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.024 s
TestRequireFilesDontExist 8 0 0 0 100% 0.005 s
TestRequireFilesSize 9 0 0 0 100% 0.011 s

org.apache.maven.enforcer.rules.dependency

- Class Tests Errors Failures Skipped Success Rate Time
RequireReleaseDepsTest 10 0 0 0 100% 0.009 s
RequireUpperBoundDepsTest 1 0 0 0 100% 0.013 s
BannedDependenciesTest 6 0 0 0 100% 0.009 s

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

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

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.004 s

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.038 s
shouldFailIfFileLocationIsNotFound 0.002 s
shouldLoadRulesFromClassPath 0.007 s
shouldFailIfNoLocationIsSet 0.001 s

TestRequireReleaseVersion

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

TestEvaluateBeanshell

testRuleFailNoMessage 0.014 s
testRuleInvalidBeanshell 0.003 s
testRuleInvalidExpression 0.002 s
testRuleFail 0.001 s
testRulePass 0.001 s

TestBannedRepositories

testAllowedRepositoriesAllOK 0.003 s
testBannedRepositories 0 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.001 s
shouldIncludeJavaHomeLocationInTheErrorMessage 0.001 s
fixJava8ShortVersion(String, String)[1] 0.005 s
fixJava8ShortVersion(String, String)[2] 0.001 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.001 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 s
shouldUseCustomErrorMessage 0 s

TestRequireEnvironmentVariable

ruleShouldBeCached 0 s
testRule 0.001 s
testRuleWithRegex 0 s

TestRequireFilesExist

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

TestRequireFilesDontExist

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

TestMockEnforcerExpressionEvaluator

testEvaluate 0.031 s

TestRequireFilesSize

testEmptyFileList 0.003 s
testFileTooSmall 0 s
testEmptyFileAllowNull 0 s
testId 0.001 s
testEmptyFile 0.001 s
testFileDoesNotExist 0.001 s
testFileExists 0.001 s
testFileTooBig 0.002 s
testRequireFilesSizeSatisfyAny 0.001 s

TestRequireProperty

testRule 0.001 s
ruleShouldNotBeCached 0 s
testRuleWithRegex 0.001 s

TestRequireSnapshotVersion

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

TestRequirePluginVersions

testGetAdditionalPluginsNull 0.021 s
testHasVersionSpecified 0.002 s
testId 0 s
testGetAdditionalPluginsEmptySet 0.001 s
testCombinePlugins 0 s
testGetAdditionalPluginsInvalidFormat 0 s
testHasVersionSpecifiedWithProperties 0.001 s
testCombinePlugins1 0.001 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.001 s
testFileChecksumSha256 0.007 s
testFileChecksumSha384 0.002 s
testFileChecksumSha512 0.001 s
testFileChecksumMd5GivenFileDoesNotExistFailure 0.001 s
testFileChecksumMd5ChecksumMismatchFailure 0.002 s
testFileChecksumMd5ChecksumMismatchFailureWithMessage 0.001 s
testFileChecksumMd5GivenFileIsADirectoryFailure 0.001 s
testFileChecksumMd5 0.001 s
testFileChecksumMd5NoTypeSpecifiedFailure 0.001 s
testFileChecksumSha1 0.001 s
testFileChecksumMd5NoChecksumSpecifiedFailure 0 s
testFileChecksumMd5NoFileSpecifiedFailure 0.001 s
testFileChecksumMd5GivenFileDoesNotExistFailureWithMessage 0.001 s
testFileChecksumMd5UpperCase 0.001 s

TestArtifactMatcher

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

ReactorModuleConvergenceTest

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

RequireActiveProfileTest

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

RequireUpperBoundDepsTest

testRule 0.013 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.001 s
testMatchingPackagings 0.001 s
testNoSpecifiedPrerequisite 0 s
testMavenRangesPrerequisite 0.001 s
testNoPrerequisite 0 s

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.004 s
testFileChecksumMd5NormalizedFromWindowsToUnix 0.001 s
testFileChecksumMd5NormalizedFromUnixToUnix 0.002 s
testFileChecksumMd5NormalizedFromWindowsToWindows 0.001 s
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.001 s

TestRequireJavaVendor

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

TestRequireNoRepositories

testAllBannedWithRepository 0.036 s
testPluginRepositoriesNotBannedWithOutAnyRepository 0.001 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.041 s
shouldNotFailWithoutDistributionManagement 0.001 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.001 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.001 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.001 s
shouldAllowDistributionManagementHavingRepository 0.001 s

BannedDependenciesTest

excludesAndIncludesDoNotUseTransitiveDependencies 0.004 s
excludesAndIncludesUseTransitiveDependencies 0.002 s
invalidExcludeFormat 0.001 s
excludesUseTransitiveDependencies 0.001 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