Summary

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

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List

Package Tests Errors Failures Skipped Success Rate Time
org.apache.maven.shared.io.logging 14 0 0 0 100% 0.015
org.apache.maven.shared.io.download 17 0 0 0 100% 0.578
org.apache.maven.shared.io.scan.mapping 5 0 0 0 100% 0.015
org.apache.maven.shared.io.location 43 0 0 0 100% 0.158

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

org.apache.maven.shared.io.logging

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

org.apache.maven.shared.io.download

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

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

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

org.apache.maven.shared.io.location

Class Tests Errors Failures Skipped Success Rate Time
ArtifactLocationTest 2 0 0 0 100% 0
ArtifactLocatorStrategyTest 13 0 0 0 100% 0.063
ClasspathResourceLocatorStrategyTest 4 0 0 0 100% 0.032
FileLocationTest 8 0 0 0 100% 0
FileLocatorStrategyTest 2 0 0 0 100% 0
LocatorTest 7 0 0 0 100% 0.032
URLLocationTest 3 0 0 0 100% 0
URLLocatorStrategyTest 4 0 0 0 100% 0.031

Test Cases

DefaultDownloadManagerTest

testShouldConstructWithNoParamsAndHaveNonNullMessageHolder 0.219
testShouldConstructWithWagonManager 0.031
testShouldLookupInstanceDefaultRoleHint 0.032
testShouldFailToDownloadMalformedURL 0.031
testShouldDownloadFromTempFileWithNoTransferListeners 0.031
testShouldDownloadFromTempFileTwiceAndUseCache 0.015
testShouldDownloadFromTempFileWithOneTransferListener 0.016
testShouldFailToDownloadWhenWagonProtocolNotFound 0.031
testShouldFailToDownloadWhenWagonConnectThrowsConnectionException 0.015
testShouldFailToDownloadWhenWagonConnectThrowsAuthenticationException 0.016
testShouldFailToDownloadWhenWagonGetThrowsTransferFailedException 0.015
testShouldFailToDownloadWhenWagonGetThrowsResourceDoesNotExistException 0.016
testShouldFailToDownloadWhenWagonGetThrowsAuthorizationException 0.031
testShouldFailToDownloadWhenWagonDisconnectThrowsConnectionException 0.015

DownloadFailedExceptionTest

testShouldConstructWithUrlAndMessage 0
testShouldConstructWithUrlMessageAndException 0
testShouldRetrieveUrlFromConstructor 0

ArtifactLocationTest

testShouldConstructFromTempFileSpecification 0
testShouldRead 0

ArtifactLocatorStrategyTest

testShouldConstructWithoutDefaultArtifactType 0.016
testShouldConstructWithDefaultArtifactType 0
testShouldFailToResolveSpecWithOneToken 0
testShouldFailToResolveSpecWithTwoTokens 0
testShouldResolveSpecWithThreeTokensUsingDefaultType 0.015
testShouldResolveSpecWithThreeTokensUsingCustomizedDefaultType 0
testShouldResolveSpecWithFourTokens 0
testShouldResolveSpecWithFiveTokens 0
testShouldResolveSpecWithFiveTokensAndEmptyTypeToken 0
testShouldResolveSpecWithMoreThanFiveTokens 0
testShouldNotResolveSpecToArtifactWithNullFile 0.016
testShouldNotResolveWhenArtifactNotFoundExceptionThrown 0
testShouldNotResolveWhenArtifactResolutionExceptionThrown 0

ClasspathResourceLocatorStrategyTest

testShouldConstructWithNoParams 0.016
testShouldConstructWithTempFileOptions 0
testShouldFailToResolveMissingClasspathResource 0
testShouldResolveExistingClasspathResourceWithoutPrecedingSlash 0

FileLocationTest

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

FileLocatorStrategyTest

testShouldResolveExistingTempFileLocation 0
testShouldFailToResolveNonExistentFileLocation 0

LocatorTest

testShouldConstructWithNoParams 0
testShouldConstructWithStrategyStackAndMessageHolder 0
testShouldAllowModificationOfStrategiesAfterConstructionWithUnmodifiableStack 0
testShouldRetrieveNonNullMessageHolderWhenConstructedWithoutParams 0
testSetStrategiesShouldClearAnyPreExistingStrategiesOut 0.016
testShouldRemovePreviouslyAddedStrategy 0.016
testResolutionFallsThroughStrategyStackAndReturnsNullIfNotResolved 0

URLLocationTest

testShouldConstructFromUrlAndTempFileSpecifications 0
testShouldTransferFromTempFile 0
testShouldTransferFromTempFileThenRead 0

URLLocatorStrategyTest

testShouldConstructWithNoParams 0
testShouldConstructWithTempFileOptions 0
testShouldFailToResolveWithMalformedUrl 0.016
testShouldResolveUrlForTempFile 0.015

DefaultMessageHolderTest

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

SuffixMappingTest

testShouldReturnSingleClassFileForSingleJavaFile 0
testShouldNotReturnClassFileWhenSourceFileHasWrongSuffix 0
testShouldReturnOneClassFileAndOneXmlFileForSingleJavaFile 0
testShouldReturnNoTargetFilesWhenSourceFileHasWrongSuffix 0
testSingleTargetMapper 0.015