• 1.17.2

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
128 10 0 0 92.188% 31.689

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.jcabi.http 49 4 0 0 91.837% 13.248
com.jcabi.http.wire 26 0 0 0 100% 14.752
com.jcabi.http.response 26 6 0 0 76.923% 1.019
com.jcabi.http.request 12 0 0 0 100% 0.212
com.jcabi.http.mock 15 0 0 0 100% 2.458

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

com.jcabi.http

Class Tests Errors Failures Skipped Success Rate Time
RequestTest 48 4 0 0 91.667% 13.248
ImmutableHeaderTest 1 0 0 0 100% 0

com.jcabi.http.wire

Class Tests Errors Failures Skipped Success Rate Time
BasicAuthWireTest 3 0 0 0 100% 0.531
VerboseWireTest 2 0 0 0 100% 1.475
RetryWireTest 1 0 0 0 100% 1.468
ETagCachingWireTest 2 0 0 0 100% 1.463
CachingWireTest 3 0 0 0 100% 1.104
AutoRedirectingWireTest 2 0 0 0 100% 3.047
LastModifiedCachingWireTest 6 0 0 0 100% 1.065
TrustedWireTest 1 0 0 0 100% 1.022
CookieOptimizingWireTest 2 0 0 0 100% 1.023
FcWireTest 3 0 0 0 100% 1.526
UserAgentWireTest 1 0 0 0 100% 1.028

com.jcabi.http.response

Class Tests Errors Failures Skipped Success Rate Time
XmlResponseTest 5 5 0 0 0% 0.659
JsonResponseTest 5 0 0 0 100% 0.008
WebLinkingResponseTest 2 0 0 0 100% 0.041
JsoupResponseTest 1 1 0 0 0% 0.094
JacksonResponseTest 9 0 0 0 100% 0.21
RestResponseTest 4 0 0 0 100% 0.007

com.jcabi.http.request

Class Tests Errors Failures Skipped Success Rate Time
DefaultResponseTest 1 0 0 0 100% 0.103
BaseRequestTest 4 0 0 0 100% 0.105
FakeRequestTest 7 0 0 0 100% 0.004

com.jcabi.http.mock

Class Tests Errors Failures Skipped Success Rate Time
MkAnswerMatchersTest 3 0 0 0 100% 0.121
GrizzlyQueryTest 1 0 0 0 100% 0.496
MkContainerTest 9 0 0 0 100% 1.682
MkQueryMatchersTest 2 0 0 0 100% 0.159

Test Cases

[Summary] [Package List] [Test Cases]

BasicAuthWireTest

testHeader[0] 0.531
testHeader[2] 0
testHeader[1] 0

RequestTest

fetchThrowsExceptionWhenBodyIsNotEmpty[1] 0.224
sendsHttpRequestAndProcessesHttpResponse[1] 0.52
assertsHttpStatus[1] 0.515
fetchThrowsExceptionWhenBodyIsNotEmpty[0] 0.207
sendsTextWithPostRequestMatchBody[1] 1.478
assertsHttpResponseBody[1] 0.498
testTimeoutOrderDoesntMatterBeforeBody[1] 0.61
sendsHttpRequestAndProcessesHttpResponse[0] 0
testTimeoutOrderDoesntMatterBeforeHeader[1] 0.594
assertsHttpStatus[0] 0
testTimeoutOrderDoesntMatterBeforeMethod[1] 0.547
assertsResponseBodyWithXpathQuery[1] 0.274
Could not initialize class com.jcabi.xml.XMLDocument
sendsBasicAuthenticationHeader[1] 1.283
acceptsUnicodeInPlainText[1] 1.236
sendsRequestBodyAsInputStream[1] 0.243
mockedUrlIsInCorrectFormat[1] 1.077
testTimeoutOrderDoesntMatterBeforeFetch[1] 0.374
testTimeoutOrderDoesntMatterBeforeReset[1] 0.153
doesntRedirectWithoutRequest[1] 1.025
sendsTextWithGetParameters[1] 1.023
testTimeoutOrderDoesntMatterBeforeMultipartBody[1] 0.133
assertsHttpHeaders[1] 0
sendsTextWithPostRequestMatchBody[0] 0
sendsHttpRequestWithHeaders[1] 0
acceptsUnicodeInXml[1] 0.012
Could not initialize class com.jcabi.xml.XMLDocument
sendsTextWithPostRequestMatchParam[1] 1.018
sendsIdenticalHttpRequestTwice[1] 0
assertsHttpResponseBody[0] 0
sendsTextWithPostRequestMatchMultipleParams[1] 0
testTimeoutOrderDoesntMatterBeforeBody[0] 0.008
testTimeoutOrderDoesntMatterBeforeHeader[0] 0.005
testTimeoutOrderDoesntMatterBeforeMethod[0] 0.002
sendsBasicAuthenticationHeader[0] 0
assertsResponseBodyWithXpathQuery[0] 0.154
Could not initialize class com.jcabi.xml.XMLDocument
acceptsUnicodeInPlainText[0] 0
mockedUrlIsInCorrectFormat[0] 0
sendsRequestBodyAsInputStream[0] 0
testTimeoutOrderDoesntMatterBeforeFetch[0] 0.002
testTimeoutOrderDoesntMatterBeforeReset[0] 0.002
doesntRedirectWithoutRequest[0] 0
acceptsUnicodeInXml[0] 0.031
Could not initialize class com.jcabi.xml.XMLDocument
assertsHttpHeaders[0] 0
sendsTextWithPostRequestMatchParam[0] 0
testTimeoutOrderDoesntMatterBeforeMultipartBody[0] 0
sendsTextWithGetParameters[0] 0
sendsIdenticalHttpRequestTwice[0] 0
sendsHttpRequestWithHeaders[0] 0
sendsTextWithPostRequestMatchMultipleParams[0] 0

VerboseWireTest

logsRequest 1.475
logsRequestBody 1.462

XmlResponseTest

assertsWithXpath 0.277
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathWithCustomNamespace 0.274
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpathAndReturnsThem 0.244
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
assertsWithXpathAndNamespaces 0.208
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpath 0.001
Could not initialize class com.jcabi.xml.XMLDocument

MkAnswerMatchersTest

canMatchBodyBytes 0.121
canMatchBody 0.114
canMatchHeader 0.114

ImmutableHeaderTest

normalizesHeaderKey 0

RetryWireTest

makesMultipleRequests 1.468

DefaultResponseTest

throwsWhenEntityIsNotAUnicodeString 0.103

ETagCachingWireTest

detectsContentModification 1.463
takesContentFromCache 1.411

JsonResponseTest

logsForInvalidJsonArray 0.005
logsForInvalidJsonObject 0.004
logsForInvalidJson 0.001
readsControlCharacters 0.001
readsJsonDocument 0.002

CachingWireTest

flushesOnRegularExpressionMatch 1.052
ignoresPutRequest 1.04
cachesGetRequest 1.01

WebLinkingResponseTest

followsLinksInHeaders 0.039
parsesLinksInHeaders 0.041

BaseRequestTest

printsJsonInBody 0.102
buildsDestinationUri 0.079
identifiesUniquely 0.075
includesPort 0.042

AutoRedirectingWireTest

retriesForHttpRedirectStatus 3.019
returnsValidResponseAfterRetry 3.015

JsoupResponseTest

normalizesHtml 0.094
Could not initialize class com.jcabi.xml.XMLDocument

LastModifiedCachingWireTest

sendsRequestDirectly 1.021
doesNotCacheGetRequestIfTheLastModifiedHeaderIsMissing 1.041
requestWithoutHeaderPassed 1.014
doesNotEvictCacheOnNonOK 1.028
cachesGetRequest 1.043
cacheUpdateNewerResponse 1.029

GrizzlyQueryTest

returnsBinaryBody 0.496

MkContainerTest

takesMatchingQuery 1.526
returnsErrorIfNoMatches 1.506
understandsDuplicateHeaders 1.516
answersConditionally 1.518
worksAsServletContainer 1.466
answersBinary 0.478
takesAllMatchingQueries 1.465
canAnswerMultipleTimes 1.02
prioritizesMatchingAnswers 0.008

TrustedWireTest

ignoresPkixErrors 1.022

MkQueryMatchersTest

canMatchHeader 0.159
canMatchBody 0.15

CookieOptimizingWireTest

avoidsTransferringOfEmptyCookiesOnFollow 1.023
transfersCookiesOnFollow 1.02

FakeRequestTest

changesUri 0.001
fetchThrowsExceptionWhenBodyIsNotEmpty 0
sendsHttpRequestAndProcessesHttpResponse 0.002
changesUriInResponse 0.001
identifiesUniquely 0.001
sendsHttpRequestAndProcessesHttpBinaryResponse 0.001
fakeRequestReturnsResponseBody 0.001

JacksonResponseTest

canParseUnquotedControlCharacters 0.21
invalidJsonObjectErrorIsLeftToJackson 0.208
invalidJsonErrorHandlingIsLeftToJackson 0.196
invalidJsonArrayErrorHandlingIsLeftToJackson 0.19
canReadJsonDocument 0.19
canReadAsArrayIfOne 0.186
canReadAsObjectIfOne 0.185
cannotReadJsonAsObjectIfNotOne 0.184
cannotReadJsonAsArrayIfNotOne 0.18

RestResponseTest

retrievesCookieByName 0.006
jumpsToRelativeUrls 0.001
assertsHttpStatusCode 0.002
assertsHttpHeaders 0.002

FcWireTest

flushesOnRegularExpressionMatch 1.526
ignoresPutRequest 1.449
cachesGetRequest 1.401

UserAgentWireTest

addsUserAgentHeader 1.028

Failure Details

[Summary] [Package List] [Test Cases]


assertsResponseBodyWithXpathQuery[1]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
acceptsUnicodeInXml[1]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsResponseBodyWithXpathQuery[0]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
acceptsUnicodeInXml[0]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpath
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathWithCustomNamespace
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpathAndReturnsThem
java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
assertsWithXpathAndNamespaces
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpath
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
normalizesHtml
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument