• 1.17.1

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 11.232
com.jcabi.http.wire 26 0 0 0 100% 18.048
com.jcabi.http.response 26 6 0 0 76.923% 1.499
com.jcabi.http.request 12 0 0 0 100% 1.452
com.jcabi.http.mock 15 0 0 0 100% 4.628

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% 11.199
ImmutableHeaderTest 1 0 0 0 100% 0.033

com.jcabi.http.wire

Class Tests Errors Failures Skipped Success Rate Time
VerboseWireTest 2 0 0 0 100% 1.365
TrustedWireTest 1 0 0 0 100% 1.497
UserAgentWireTest 1 0 0 0 100% 1.378
LastModifiedCachingWireTest 6 0 0 0 100% 1.075
RetryWireTest 1 0 0 0 100% 1.043
FcWireTest 3 0 0 0 100% 1.399
CachingWireTest 3 0 0 0 100% 1.4
CookieOptimizingWireTest 2 0 0 0 100% 1.404
ETagCachingWireTest 2 0 0 0 100% 1.379
AutoRedirectingWireTest 2 0 0 0 100% 3.073
BasicAuthWireTest 3 0 0 0 100% 3.035

com.jcabi.http.response

Class Tests Errors Failures Skipped Success Rate Time
RestResponseTest 4 0 0 0 100% 0.007
WebLinkingResponseTest 2 0 0 0 100% 0.005
JsonResponseTest 5 0 0 0 100% 0.04
JacksonResponseTest 9 0 0 0 100% 1.376
JsoupResponseTest 1 1 0 0 0% 0.065
XmlResponseTest 5 5 0 0 0% 0.006

com.jcabi.http.request

Class Tests Errors Failures Skipped Success Rate Time
FakeRequestTest 7 0 0 0 100% 1.397
DefaultResponseTest 1 0 0 0 100% 0.053
BaseRequestTest 4 0 0 0 100% 0.002

com.jcabi.http.mock

Class Tests Errors Failures Skipped Success Rate Time
GrizzlyQueryTest 1 0 0 0 100% 0.933
MkContainerTest 9 0 0 0 100% 1.404
MkQueryMatchersTest 2 0 0 0 100% 0.928
MkAnswerMatchersTest 3 0 0 0 100% 1.363

Test Cases

[Summary] [Package List] [Test Cases]

VerboseWireTest

logsRequest 1.365
logsRequestBody 1.34

GrizzlyQueryTest

returnsBinaryBody 0.933

RestResponseTest

retrievesCookieByName 0.007
jumpsToRelativeUrls 0
assertsHttpStatusCode 0.001
assertsHttpHeaders 0.001

MkContainerTest

takesMatchingQuery 1.384
returnsErrorIfNoMatches 1.352
understandsDuplicateHeaders 1.341
answersConditionally 1.326
worksAsServletContainer 1.324
answersBinary 1.317
canAnswerMultipleTimes 1.311
takesAllMatchingQueries 1.301
prioritizesMatchingAnswers 1.267

RequestTest

fetchThrowsExceptionWhenBodyIsNotEmpty[1] 0.099
sendsHttpRequestAndProcessesHttpResponse[1] 1.36
fetchThrowsExceptionWhenBodyIsNotEmpty[0] 0.081
assertsHttpStatus[1] 1.373
testTimeoutOrderDoesntMatterBeforeHeader[1] 0.631
testTimeoutOrderDoesntMatterBeforeBody[1] 0.629
assertsHttpResponseBody[1] 1.017
sendsTextWithPostRequestMatchBody[1] 1.013
testTimeoutOrderDoesntMatterBeforeMethod[1] 0.631
assertsResponseBodyWithXpathQuery[1] 0.1
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
sendsBasicAuthenticationHeader[1] 1.01
sendsHttpRequestAndProcessesHttpResponse[0] 0
acceptsUnicodeInPlainText[1] 1.03
mockedUrlIsInCorrectFormat[1] 1.022
assertsHttpStatus[0] 0
sendsTextWithPostRequestMatchBody[0] 0
sendsRequestBodyAsInputStream[1] 1.006
assertsHttpResponseBody[0] 0
testTimeoutOrderDoesntMatterBeforeFetch[1] 0.002
testTimeoutOrderDoesntMatterBeforeBody[0] 0.001
testTimeoutOrderDoesntMatterBeforeReset[1] 0.002
testTimeoutOrderDoesntMatterBeforeHeader[0] 0.001
doesntRedirectWithoutRequest[1] 0
sendsBasicAuthenticationHeader[0] 0
testTimeoutOrderDoesntMatterBeforeMultipartBody[1] 0.005
assertsResponseBodyWithXpathQuery[0] 0.025
Could not initialize class com.jcabi.xml.XMLDocument
sendsTextWithGetParameters[1] 0
testTimeoutOrderDoesntMatterBeforeMethod[0] 0.008
mockedUrlIsInCorrectFormat[0] 0
acceptsUnicodeInPlainText[0] 0
sendsTextWithPostRequestMatchParam[1] 0
assertsHttpHeaders[1] 0
testTimeoutOrderDoesntMatterBeforeFetch[0] 0.003
acceptsUnicodeInXml[1] 0.027
Could not initialize class com.jcabi.xml.XMLDocument
sendsHttpRequestWithHeaders[1] 0
sendsRequestBodyAsInputStream[0] 0
sendsIdenticalHttpRequestTwice[1] 0
sendsTextWithPostRequestMatchMultipleParams[1] 0.049
doesntRedirectWithoutRequest[0] 0
testTimeoutOrderDoesntMatterBeforeReset[0] 0.004
testTimeoutOrderDoesntMatterBeforeMultipartBody[0] 0.006
sendsTextWithGetParameters[0] 0
assertsHttpHeaders[0] 0
acceptsUnicodeInXml[0] 0.035
Could not initialize class com.jcabi.xml.XMLDocument
sendsTextWithPostRequestMatchParam[0] 0.029
sendsHttpRequestWithHeaders[0] 0
sendsIdenticalHttpRequestTwice[0] 0
sendsTextWithPostRequestMatchMultipleParams[0] 0

WebLinkingResponseTest

followsLinksInHeaders 0.005
parsesLinksInHeaders 0.004

TrustedWireTest

ignoresPkixErrors 1.497

JsonResponseTest

logsForInvalidJsonObject 0.039
logsForInvalidJsonArray 0.005
logsForInvalidJson 0.035
readsControlCharacters 0.034
readsJsonDocument 0.001

UserAgentWireTest

addsUserAgentHeader 1.378

JacksonResponseTest

canParseUnquotedControlCharacters 0.338
invalidJsonObjectErrorIsLeftToJackson 0.341
invalidJsonErrorHandlingIsLeftToJackson 0.335
invalidJsonArrayErrorHandlingIsLeftToJackson 0.338
canReadJsonDocument 0.327
canReadAsArrayIfOne 0.003
canReadAsObjectIfOne 0.004
cannotReadJsonAsObjectIfNotOne 0.001
cannotReadJsonAsArrayIfNotOne 0.001

LastModifiedCachingWireTest

sendsRequestDirectly 0.062
doesNotCacheGetRequestIfTheLastModifiedHeaderIsMissing 1.042
requestWithoutHeaderPassed 1.039
doesNotEvictCacheOnNonOK 1.047
cachesGetRequest 1.054
cacheUpdateNewerResponse 1.036

MkQueryMatchersTest

canMatchHeader 0.928
canMatchBody 0.438

JsoupResponseTest

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

MkAnswerMatchersTest

canMatchBodyBytes 0.934
canMatchHeader 0.007
canMatchBody 0.005

RetryWireTest

makesMultipleRequests 1.043

FakeRequestTest

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

FcWireTest

flushesOnRegularExpressionMatch 1.037
ignoresPutRequest 1.012
cachesGetRequest 1.009

ImmutableHeaderTest

normalizesHeaderKey 0.033

CachingWireTest

flushesOnRegularExpressionMatch 1.4
ignoresPutRequest 1.377
cachesGetRequest 1.338

XmlResponseTest

assertsWithXpath 0.002
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathWithCustomNamespace 0.002
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpathAndReturnsThem 0.002
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpath 0
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathAndNamespaces 0.004
Could not initialize class com.jcabi.xml.XMLDocument

CookieOptimizingWireTest

avoidsTransferringOfEmptyCookiesOnFollow 1.404
transfersCookiesOnFollow 1.376

ETagCachingWireTest

detectsContentModification 1.374
takesContentFromCache 1.36

DefaultResponseTest

throwsWhenEntityIsNotAUnicodeString 0.053

BaseRequestTest

printsJsonInBody 0.001
buildsDestinationUri 0.001
identifiesUniquely 0.001
includesPort 0

AutoRedirectingWireTest

retriesForHttpRedirectStatus 3.012
returnsValidResponseAfterRetry 3.01

BasicAuthWireTest

testHeader[0] 1.01
testHeader[1] 1.012
testHeader[2] 1.013

Failure Details

[Summary] [Package List] [Test Cases]


assertsResponseBodyWithXpathQuery[1]
java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
assertsResponseBodyWithXpathQuery[0]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
acceptsUnicodeInXml[1]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
acceptsUnicodeInXml[0]
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
normalizesHtml
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.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpath
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathAndNamespaces
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument