Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
209 0 0 0 100% 2.241 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.014 s
org.apache.maven.enforcer.rules.checksum 24 0 0 0 100% 0.100 s
org.apache.maven.enforcer.rules.utils 5 0 0 0 100% 0.101 s
org.apache.maven.enforcer.rules 101 0 0 0 100% 1.728 s
org.apache.maven.enforcer.rules.version 30 0 0 0 100% 0.096 s
org.apache.maven.enforcer.rules.files 26 0 0 0 100% 0.105 s
org.apache.maven.enforcer.rules.dependency 17 0 0 0 100% 0.097 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.006 s
TestRequireProperty 3 0 0 0 100% 0.008 s

org.apache.maven.enforcer.rules.checksum

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireFileChecksum 15 0 0 0 100% 0.064 s
TestRequireTextFileChecksum 5 0 0 0 100% 0.024 s
TestNormalizeLineSeparatorReader 4 0 0 0 100% 0.012 s

org.apache.maven.enforcer.rules.utils

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

org.apache.maven.enforcer.rules

- Class Tests Errors Failures Skipped Success Rate Time
BanDependencyManagementScopeTest 1 0 0 0 100% 0.013 s
TestExternalRules 4 0 0 0 100% 0.143 s
TestRequireReleaseVersion 5 0 0 0 100% 0.029 s
TestEvaluateBeanshell 5 0 0 0 100% 0.061 s
TestBannedRepositories 4 0 0 0 100% 0.010 s
TestRequireOS 3 0 0 0 100% 0.007 s
TestRequireSnapshotVersion 5 0 0 0 100% 0.020 s
TestRequirePluginVersions 14 0 0 0 100% 0.096 s
ReactorModuleConvergenceTest 10 0 0 0 100% 0.074 s
RequireActiveProfileTest 9 0 0 0 100% 0.872 s
RequirePrerequisiteTest 9 0 0 0 100% 0.016 s
TestRequireJavaVendor 8 0 0 0 100% 0.008 s
TestRequireNoRepositories 15 0 0 0 100% 0.203 s
BanDistributionManagementTest 7 0 0 0 100% 0.171 s
TestAlwaysPass 1 0 0 0 100% 0.003 s
TestAlwaysFail 1 0 0 0 100% 0.002 s

org.apache.maven.enforcer.rules.version

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

org.apache.maven.enforcer.rules.files

- Class Tests Errors Failures Skipped Success Rate Time
TestRequireFilesExist 9 0 0 0 100% 0.053 s
TestRequireFilesDontExist 8 0 0 0 100% 0.020 s
TestRequireFilesSize 9 0 0 0 100% 0.032 s

org.apache.maven.enforcer.rules.dependency

- Class Tests Errors Failures Skipped Success Rate Time
RequireReleaseDepsTest 10 0 0 0 100% 0.033 s
RequireUpperBoundDepsTest 1 0 0 0 100% 0.030 s
BannedDependenciesTest 6 0 0 0 100% 0.034 s

Test Cases

[Summary] [Package List] [Test Cases]

RequireReleaseDepsTest

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

BanDependencyManagementScopeTest

testGetViolatingDependencies 0.011 s

TestExternalRules

shouldFailIfClasspathLocationIsNotFound 0.121 s
shouldFailIfFileLocationIsNotFound 0.006 s
shouldLoadRulesFromClassPath 0.011 s
shouldFailIfNoLocationIsSet 0.001 s

TestRequireReleaseVersion

testProjectWithSnapshotVersion 0.010 s
testCache 0.004 s
testProjectWithReleaseVersion 0.002 s
shouldAllowParentSnapshot 0.007 s
shouldFailWhenParentIsSnapshot 0.002 s

TestEvaluateBeanshell

testRuleFailNoMessage 0.043 s
testRuleInvalidBeanshell 0.006 s
testRuleInvalidExpression 0.005 s
testRuleFail 0.003 s
testRulePass 0.003 s

TestBannedRepositories

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

TestRequireOS

testId 0.001 s
testOS 0.003 s
testInvalidFamily 0.002 s

TestRequireJavaVersion

settingsTheJavaVersionAsNormalizedVersionShouldNotFail 0.007 s
testId 0 s
excludingTheCurrentJavaVersionViaRangeThisShouldFailWithException 0.003 s
shouldIncludeJavaHomeLocationInTheErrorMessage 0.002 s
fixJava8ShortVersion(String, String)[1] 0.015 s
fixJava8ShortVersion(String, String)[2] 0.001 s
fixJava8ShortVersion(String, String)[3] 0.001 s
fixJava8ShortVersion(String, String)[4] 0 s
fixJava8ShortVersion(String, String)[5] 0.001 s
fixJava8ShortVersion(String, String)[6] 0.001 s
fixJava8ShortVersion(String, String)[7] 0.001 s
fixJava8ShortVersion(String, String)[8] 0 s
fixJava8ShortVersion(String, String)[9] 0.001 s
fixJava8ShortVersion(String, String)[10] 0.001 s
fixJava8ShortVersion(String, String)[11] 0.001 s
fixJava8ShortVersion(String, String)[12] 0 s
fixJava8ShortVersion(String, String)[13] 0.001 s
fixJava8ShortVersion(String, String)[14] 0.001 s
fixJava8ShortVersion(String, String)[15] 0.001 s
fixJava8ShortVersion(String, String)[16] 0.001 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.002 s
shouldUseCustomErrorMessage 0.001 s

TestRequireEnvironmentVariable

ruleShouldBeCached 0.001 s
testRule 0.002 s
testRuleWithRegex 0.001 s

TestRequireFilesExist

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

TestRequireFilesDontExist

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

TestMockEnforcerExpressionEvaluator

testEvaluate 0.090 s

TestRequireFilesSize

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

TestRequireProperty

testRule 0.003 s
ruleShouldNotBeCached 0.001 s
testRuleWithRegex 0.001 s

TestRequireSnapshotVersion

shouldPassForSnapshot 0.003 s
shouldFailForRelease 0.003 s
parentShouldNotBeChecked 0.003 s
shouldFailForReleaseParent 0.003 s
shouldPassForSnapshotParent 0.003 s

TestRequirePluginVersions

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

TestRequireFileChecksum

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

TestArtifactMatcher

testMatch 0.003 s
testPattern 0.002 s
testContainsVersion 0.004 s
testPatternInvalidInput 0 s

ReactorModuleConvergenceTest

shouldFailWithWrongParent 0.004 s
cacheIdShouldBeSet 0.001 s
shouldFailWithWrongDependencyInReactor 0.037 s
shouldFailWithAParentWhichIsNotPartOfTheReactory 0.005 s
shouldNotFailWithDependencyInReactory 0.005 s
shouldNotFailWithAValidProject 0.004 s
shouldNotFailWithNoProject 0 s
shouldFailWithWrongVersionInOneChild 0.003 s
shouldNotFailWithACompanyParent 0.004 s
shouldFailWithMissingParentsInReactory 0.003 s

RequireActiveProfileTest

testTwoActiveProfilesWithOneRequiredProfile 0.816 s
testNoActiveProfileButTheRuleRequestedAnActiveProfile 0.005 s
testNoActiveProfilesInProjectAndNoProfilesExpectedToBeActivated 0.001 s
testActiveProfileAndExpectedActiveProfile 0.002 s
testOneActiveProfilesWithTwoRequiredProfiles 0.002 s
testNoActiveProfileButWeExpectToGetAnExceptionWithAll 0.002 s
testTwoActiveProfilesWithTwoRequiredProfilesWhereOneOfThemIsNotPartOfTheActiveProfiles 0.002 s
testTwoActiveProfilesWhereOneProfileIsRequiredToBeActivated 0.001 s
testOneActiveProfileWithTwoProfilesButNotAll 0.001 s

RequireUpperBoundDepsTest

testRule 0.028 s

TestMavenVersion

testRule 0.002 s
testId 0.001 s
checkRequireVersionMatrix 0.002 s

RequirePrerequisiteTest

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

TestRequireTextFileChecksum

testFileChecksumMd5NormalizedFromUnixToWindows 0.008 s
testFileChecksumMd5NormalizedFromWindowsToUnix 0.004 s
testFileChecksumMd5NormalizedFromUnixToUnix 0.004 s
testFileChecksumMd5NormalizedFromWindowsToWindows 0.003 s
testFileChecksumMd5NormalizedWithMissingFileCharsetParameter 0.004 s

TestRequireJavaVendor

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

TestRequireNoRepositories

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

BanDistributionManagementTest

shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepository 0.149 s
shouldNotFailWithoutDistributionManagement 0.002 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepository 0.002 s
shouldAllowDistributionManagementHavingRepositorySnapshotRepositorySite 0.002 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepositorySnapshotRepositorySite 0.003 s
shouldThrowExceptionIfDistributionManagementIsDefinedWithRepository 0.003 s
shouldAllowDistributionManagementHavingRepository 0.003 s

BannedDependenciesTest

excludesAndIncludesDoNotUseTransitiveDependencies 0.014 s
excludesAndIncludesUseTransitiveDependencies 0.007 s
invalidExcludeFormat 0.003 s
excludesUseTransitiveDependencies 0.003 s
excludesDoNotUseTransitiveDependencies 0.003 s
invalidIncludeFormat 0.002 s

TestAlwaysPass

testExecute 0.002 s

TestAlwaysFail

testExecute 0.002 s

TestAbstractVersionEnforcer

testEnforceVersion 0.003 s

TestNormalizeLineSeparatorReader

testUnixToWindows 0.009 s
testWindowsToUnix 0 s
testUnixToUnix 0.001 s
testWindowsToWindows 0.001 s