Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
124 0 0 0 100% 4.101

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
com.offbytwo.jenkins 21 0 0 0 100% 0.117
com.offbytwo.jenkins.client.validator 4 0 0 0 100% 0.003
com.offbytwo.jenkins.client 2 0 0 0 100% 0.703
com.offbytwo.jenkins.client.util 46 0 0 0 100% 0.027
com.offbytwo.jenkins.helper 27 0 0 0 100% 0.061
com.offbytwo.jenkins.model 24 0 0 0 100% 3.19

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

com.offbytwo.jenkins

Class Tests Errors Failures Skipped Success Rate Time
JenkinsServerTest 21 0 0 0 100% 0.117

com.offbytwo.jenkins.client.validator

Class Tests Errors Failures Skipped Success Rate Time
HttpRequestValidatorTest 4 0 0 0 100% 0.003

com.offbytwo.jenkins.client

Class Tests Errors Failures Skipped Success Rate Time
JenkinsHttpClientTest 2 0 0 0 100% 0.703

com.offbytwo.jenkins.client.util

Class Tests Errors Failures Skipped Success Rate Time
ResponseUtilsTest 3 0 0 0 100% 0.002
UrlUtilsTest 43 0 0 0 100% 0.025

com.offbytwo.jenkins.helper

Class Tests Errors Failures Skipped Success Rate Time
JenkinsVersionTest 20 0 0 0 100% 0.045
RangeTest 7 0 0 0 100% 0.016

com.offbytwo.jenkins.model

Class Tests Errors Failures Skipped Success Rate Time
BuildCauseTest 6 0 0 0 100% 0.003
BuildWithDetailsTest 3 0 0 0 100% 3.038
ChangeSetTest 2 0 0 0 100% 0.092
JobWithDetailsTest 9 0 0 0 100% 0.005
MainViewTest 1 0 0 0 100% 0
ParameterDefinitionsTest 1 0 0 0 100% 0.046
ParametersDefinitionPropertyTest 1 0 0 0 100% 0.004
StringParameterDefinitionTest 1 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

JenkinsHttpClientTest

testClose 0.497
testGet_String 0.151

ResponseUtilsTest

testGetJenkinsVersion 0.001
testGetJenkinsVersion_NullResponse 0
testGetJenkinsVersion_NoHeader 0.001

UrlUtilsTest

testToBaseUrl_NullFolderJob 0
testToQueryUri_NullUri 0
testToViewBaseUrl_NoTrailingFolderSlash 0.005
testJoin_TrailingLeadingSlashes 0
testToJobBaseUrl_NoTrailingFolderSlash 0
testToQueryUri_WithQuery 0
testToBaseUrl 0
testJoin_EmptyPath1 0
testJoin_EmptyPath2 0
testToJobBaseUrl_EmptyJobName 0
testToJobBaseUrl_NullFolderJob 0.001
testJoin_Path1NoTrailing_Path2Leading 0
testToNoQueryUri_EmptyContext 0
testToQueryUri_EmptyPathAndContext 0.001
testToNoQueryUri_UpperCase 0
testToBaseUrl_DefaultFolderJob 0.001
testToFullJobPath_JobNameWithSingleFolder 0
testToQueryUri_NullContext 0
testToQueryUri_EmptyContext 0.001
testJoin_NoTrailingLeadingSlashes 0
testToFullJobPath_JobNameWithMultipleFolders 0
testToQueryUri_PathContainsSchemeAndContext 0
testJoin_EmptyBothPaths 0
testToQueryUri_NullPath 0
testToNoQueryUri_PathContainsSchemeAndContext 0
testToQueryUri_EmptyPath 0.001
testToFullJobPath_JobNameOnly 0
testJoin_NullPath1 0
testJoin_NullPath2 0.001
testToViewBaseUrl 0
testToViewBaseUrl_NullFolderJob 0
testToNoQueryUri_NullContext 0
testToJobBaseUrl 0.001
testToQueryUri_WithoutQuery 0
testToViewBaseUrl_EmptyViewName 0
testToFullJobPath_EmptyJobName 0
testToFullJobPath_NullJobName 0.001
testToJobBaseUrl_NullJobName 0
testJoin_SlashesOnly 0
testToQueryUri_UpperCase 0
testToViewBaseUrl_NullViewName 0
testToNoQueryUri_EmptyPath 0
testJoin_Path1Trailing_Path2NoLeading 0

HttpRequestValidatorTest

shouldNotThrowHttpResponseExceptionWhenStatusIsBetween200and400 0
shouldThrowHttpResponseExceptionWhenStatusIsLowerThan200 0.001
shouldThrowHttpResponseExceptionWhenStatusIs400 0.001
shouldThrowHttpResponseExceptionWhenStatusIsHigherThan400 0.001

JenkinsVersionTest

isEqualToTrueJenkinsVersion 0.037
isGreaterOrEqualFalseJenkinsVersion 0
isGreaterThanFalseJenkinsVersion 0
isGreaterThanFalse 0
isGreaterThanTrueJenkinsVersion 0
isGreaterOrEqualTrueJenkinsVersion 0
isGreaterThanTrue 0
isLessThanTrueJenkinsVersion 0
isLessOrEqualFalse 0
isGreaterOrEqualTrue 0
isLessOrEqualTrue 0.001
isLessThanFalseJenkinsVersion 0
isLessOrEqualFalseJenkinsVersion 0
isEqualToTrue 0
isLessOrEqualTrueJenkinsVersion 0
isEqualToFalse 0
isGreaterOrEqualFalse 0
isLessThanTrue 0
isLessThanFalse 0
isEqualToFalseJenkinsVersion 0

RangeTest

fromGivenPositiveToNegativeValueShouldResultInIllegalArgumentException 0.007
fromToGiven 0.002
onlyGiven 0.001
toIsGivenLargerThanFromShouldResultInIllegalArgumentException 0
fromGivenNegativeValueShouldResultInIllegalArgumentException 0
onlyToGiven 0.001
onlyFromGiven 0

JenkinsServerTest

testCreateSubFolderJob 0.035
testClose 0.004
testGetJobXmls 0.002
testCreateFolderJob 0.001
testScriptPosts 0.001
testJenkinsConnectivity 0.001
testFolderGetJob 0.014
testReturnListOfJobs 0.014
testJenkinsConnectivityBroken 0.004
testUpdateJobXml 0.002
testReturnSingleJob 0.002
testFolderGetSingleJob 0.001
testFolderGetJobs 0.001
testFolderGetView 0.005
testGetFolderJobInvalidFolder 0.002
getVersionShouldNotFailWithNPE 0.001
testGetJobXml 0.001
testCreateJob 0.001
testGetFolderJob 0.001
shouldReturnListOfJobs 0
testQuietDown 0

BuildCauseTest

getUpstreamBuildShouldNotResultWithNPE 0.002
getUserIdShouldReturnNull 0
getUserNameShouldReturnNull 0
getUpstreamUrlShouldReturnNull 0
getUpstreamProjectShouldReturnNull 0
getShortDescriptionShouldReturnNull 0

BuildWithDetailsTest

poolBuildLogShouldTimeout 2.027
getBuildLogWithBuffer 0.001
poolBuildLog 1.01

ChangeSetTest

getChangeSet__forBuildWithChangeSetsAsList 0.079
getChangeSet__forBuildWithChangeSetAsSingleObject 0.013

JobWithDetailsTest

getLastSuccessfulBuildShouldReturnBuildHasNeverRan 0.001
getLastStableBuildShouldReturnBuildHasNeverRan 0
getLastBuildShouldReturnBuildHasNeverRan 0
getDownstreamProjectsShouldReturnEmptyList 0.003
getLastUnsuccessfulBuildShouldReturnBuildHasNeverRan 0
getLastUnstableBuildShouldReturnBuildHasNeverRan 0
getUpstreamProjectsShouldReturnEmptyList 0
getLastCompletedBuildShouldReturnBuildHasNeverRan 0
getLastFailedBuildShouldReturnBuildHasNeverRan 0

MainViewTest

defaultConstructorShouldInitializeWithEmptyJobs 0

ParameterDefinitionsTest

shouldMarshallParameterDefinition 0.046

ParametersDefinitionPropertyTest

shouldMarshallParametersDefinitionProperty 0.004

StringParameterDefinitionTest

shouldMarshallStringParameterDefinition 0.001