Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
79 0 0 0 100% 0.723

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.shared.io.download 17 0 0 0 100% 0.653
org.apache.maven.shared.io.location 43 0 0 0 100% 0.061
org.apache.maven.shared.io.scan.mapping 5 0 0 0 100% 0.003
org.apache.maven.shared.io.logging 14 0 0 0 100% 0.006

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.maven.shared.io.download

Class Tests Errors Failures Skipped Success Rate Time
DefaultDownloadManagerTest 14 0 0 0 100% 0.653
DownloadFailedExceptionTest 3 0 0 0 100% 0

org.apache.maven.shared.io.location

Class Tests Errors Failures Skipped Success Rate Time
ArtifactLocationTest 2 0 0 0 100% 0.006
ArtifactLocatorStrategyTest 13 0 0 0 100% 0.038
ClasspathResourceLocatorStrategyTest 4 0 0 0 100% 0
FileLocationTest 8 0 0 0 100% 0.002
FileLocatorStrategyTest 2 0 0 0 100% 0
LocatorTest 7 0 0 0 100% 0.011
URLLocationTest 3 0 0 0 100% 0.003
URLLocatorStrategyTest 4 0 0 0 100% 0.001

org.apache.maven.shared.io.scan.mapping

Class Tests Errors Failures Skipped Success Rate Time
SuffixMappingTest 5 0 0 0 100% 0.003

org.apache.maven.shared.io.logging

Class Tests Errors Failures Skipped Success Rate Time
DefaultMessageHolderTest 14 0 0 0 100% 0.006

Test Cases

[Summary] [Package List] [Test Cases]

DefaultDownloadManagerTest

testShouldDownloadFromTempFileWithNoTransferListeners 0.054
testShouldFailToDownloadWhenWagonDisconnectThrowsConnectionException 0.002
testShouldConstructWithWagonManager 0
testShouldFailToDownloadWhenWagonGetThrowsTransferFailedException 0.004
testShouldFailToDownloadWhenWagonProtocolNotFound 0.001
testShouldFailToDownloadMalformedURL 0.001
testShouldDownloadFromTempFileTwiceAndUseCache 0.001
testShouldDownloadFromTempFileWithOneTransferListener 0.006
testShouldFailToDownloadWhenWagonGetThrowsResourceDoesNotExistException 0.001
testShouldFailToDownloadWhenWagonConnectThrowsAuthenticationException 0.001
testShouldLookupInstanceDefaultRoleHint 0.578
testShouldConstructWithNoParamsAndHaveNonNullMessageHolder 0.001
testShouldFailToDownloadWhenWagonConnectThrowsConnectionException 0.001
testShouldFailToDownloadWhenWagonGetThrowsAuthorizationException 0.002

DownloadFailedExceptionTest

testShouldConstructWithUrlAndMessage 0
testShouldRetrieveUrlFromConstructor 0
testShouldConstructWithUrlMessageAndException 0

ArtifactLocationTest

testShouldRead 0.006
testShouldConstructFromTempFileSpecification 0

ArtifactLocatorStrategyTest

testShouldResolveSpecWithThreeTokensUsingCustomizedDefaultType 0.025
testShouldFailToResolveSpecWithOneToken 0.001
testShouldResolveSpecWithFourTokens 0.001
testShouldConstructWithDefaultArtifactType 0.001
testShouldResolveSpecWithMoreThanFiveTokens 0.001
testShouldResolveSpecWithThreeTokensUsingDefaultType 0.001
testShouldResolveSpecWithFiveTokens 0.001
testShouldNotResolveSpecToArtifactWithNullFile 0.001
testShouldResolveSpecWithFiveTokensAndEmptyTypeToken 0.001
testShouldNotResolveWhenArtifactResolutionExceptionThrown 0.002
testShouldFailToResolveSpecWithTwoTokens 0.001
testShouldNotResolveWhenArtifactNotFoundExceptionThrown 0.001
testShouldConstructWithoutDefaultArtifactType 0.001

ClasspathResourceLocatorStrategyTest

testShouldConstructWithNoParams 0
testShouldConstructWithTempFileOptions 0
testShouldFailToResolveMissingClasspathResource 0
testShouldResolveExistingClasspathResourceWithoutPrecedingSlash 0

FileLocationTest

testShouldReadFileContentsUsingByteBuffer 0
testShouldReadFileContentsUsingByteArray 0
testShouldReadThenClose 0
testShouldReadFileContentsUsingStream 0.001
testShouldConstructWithFileThenRetrieveSameFile 0
testShouldConstructWithLocationThenRetrieveEquivalentFile 0.001
testShouldOpenThenFailToSetFile 0
testShouldConstructWithoutFileThenSetFileThenOpen 0

FileLocatorStrategyTest

testShouldFailToResolveNonExistentFileLocation 0
testShouldResolveExistingTempFileLocation 0

LocatorTest

testShouldRemovePreviouslyAddedStrategy 0.009
testShouldConstructWithStrategyStackAndMessageHolder 0.001
testShouldConstructWithNoParams 0
testSetStrategiesShouldClearAnyPreExistingStrategiesOut 0
testResolutionFallsThroughStrategyStackAndReturnsNullIfNotResolved 0.001
testShouldRetrieveNonNullMessageHolderWhenConstructedWithoutParams 0
testShouldAllowModificationOfStrategiesAfterConstructionWithUnmodifiableStack 0

URLLocationTest

testShouldTransferFromTempFileThenRead 0.002
testShouldConstructFromUrlAndTempFileSpecifications 0
testShouldTransferFromTempFile 0.001

URLLocatorStrategyTest

testShouldFailToResolveWithMalformedUrl 0
testShouldConstructWithNoParams 0
testShouldConstructWithTempFileOptions 0
testShouldResolveUrlForTempFile 0.001

DefaultMessageHolderTest

testAddMessageIncrementsSizeByOne 0
testAddMessageTwiceIncrementsSizeByTwo 0
testIsEmptyAfterConstruction 0
testAppendCreatesNewMessageIfNoneCurrent 0.001
testIsNotEmptyAfterConstructionAndNewMessageCall 0
testAddMessageWithJustErrorIncrementsSizeByOne 0.001
testNewMessageIncrementsSizeWhenEmpty 0
testAddMessageWithErrorIncrementsSizeByOne 0.001
testNewMessageThenAppendOnlyIncrementsSizeByOne 0
testNewMessageThenAppendBothMessageAndErrorOnlyIncrementsSizeByOne 0.001
testNewMessageThenAppendTwiceOnlyIncrementsSizeByOne 0
testAppendCharSequence 0.001
testAddMessageWithErrorThenWithJustMessageIncrementsSizeByTwo 0
testAppendErrorCreatesNewMessageIfNoneCurrent 0.001

SuffixMappingTest

testShouldReturnSingleClassFileForSingleJavaFile 0.002
testShouldNotReturnClassFileWhenSourceFileHasWrongSuffix 0
testShouldReturnOneClassFileAndOneXmlFileForSingleJavaFile 0
testShouldReturnNoTargetFilesWhenSourceFileHasWrongSuffix 0
testSingleTargetMapper 0.001