• 1.16

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
100 10 0 0 90% 60.544

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 37 4 0 0 89.189% 33.967
com.jcabi.http.wire 21 0 0 0 100% 19.402
com.jcabi.http.response 17 6 0 0 64.706% 0.307
com.jcabi.http.mock 13 0 0 0 100% 6.087
com.jcabi.http.request 12 0 0 0 100% 0.781

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
ImmutableHeaderTest 1 0 0 0 100% 0.001
RequestTest 36 4 0 0 88.889% 33.966

com.jcabi.http.wire

Class Tests Errors Failures Skipped Success Rate Time
TrustedWireTest 1 0 0 0 100% 2.034
VerboseWireTest 2 0 0 0 100% 2.578
RetryWireTest 1 0 0 0 100% 2.619
AutoRedirectingWireTest 2 0 0 0 100% 3.976
ETagCachingWireTest 2 0 0 0 100% 1.173
UserAgentWireTest 1 0 0 0 100% 1.395
CachingWireTest 3 0 0 0 100% 1.318
FcWireTest 3 0 0 0 100% 1.373
LastModifiedCachingWireTest 4 0 0 0 100% 1.579
CookieOptimizingWireTest 2 0 0 0 100% 1.357

com.jcabi.http.response

Class Tests Errors Failures Skipped Success Rate Time
JsonResponseTest 5 0 0 0 100% 0.053
WebLinkingResponseTest 2 0 0 0 100% 0.018
RestResponseTest 4 0 0 0 100% 0.016
JsoupResponseTest 1 1 0 0 0% 0.209
XmlResponseTest 5 5 0 0 0% 0.011

com.jcabi.http.mock

Class Tests Errors Failures Skipped Success Rate Time
GrizzlyQueryTest 1 0 0 0 100% 4.569
MkQueryMatchersTest 2 0 0 0 100% 0.068
MkAnswerMatchersTest 2 0 0 0 100% 0.033
MkContainerTest 8 0 0 0 100% 1.417

com.jcabi.http.request

Class Tests Errors Failures Skipped Success Rate Time
FakeRequestTest 7 0 0 0 100% 0.674
DefaultResponseTest 1 0 0 0 100% 0.068
BaseRequestTest 4 0 0 0 100% 0.039

Test Cases

[Summary] [Package List] [Test Cases]

FakeRequestTest

changesUri 0.391
fetchThrowsExceptionWhenBodyIsNotEmpty 0.122
sendsHttpRequestAndProcessesHttpResponse 0.605
changesUriInResponse 0.564
identifiesUniquely 0.118
sendsHttpRequestAndProcessesHttpBinaryResponse 0.489
fakeRequestReturnsResponseBody 0.473

TrustedWireTest

ignoresPkixErrors 2.034

VerboseWireTest

logsRequest 2.578
logsRequestBody 2.529

RetryWireTest

makesMultipleRequests 2.619

GrizzlyQueryTest

returnsBinaryBody 4.569

AutoRedirectingWireTest

retriesForHttpRedirectStatus 3.976
returnsValidResponseAfterRetry 3.903

JsonResponseTest

logsForInvalidJsonArray 0.031
logsForInvalidJsonObject 0.014
logsForInvalidJson 0.001
readsControlCharacters 0.002
readsJsonDocument 0.003

DefaultResponseTest

throwsWhenEntityIsNotAUnicodeString 0.068

WebLinkingResponseTest

followsLinksInHeaders 0.007
parsesLinksInHeaders 0.011

BaseRequestTest

printsJsonInBody 0.039
buildsDestinationUri 0.014
identifiesUniquely 0.001
includesPort 0

ETagCachingWireTest

detectsContentModification 1.173
takesContentFromCache 1.117

UserAgentWireTest

addsUserAgentHeader 1.395

MkQueryMatchersTest

canMatchHeader 0.068
canMatchBody 0.047

RestResponseTest

retrievesCookieByName 0.016
jumpsToRelativeUrls 0.001
assertsHttpStatusCode 0.004
assertsHttpHeaders 0.006

ImmutableHeaderTest

normalizesHeaderKey 0.001

CachingWireTest

flushesOnRegularExpressionMatch 0.229
ignoresPutRequest 1.106
cachesGetRequest 1.089

JsoupResponseTest

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

MkAnswerMatchersTest

canMatchHeader 0.031
canMatchBody 0.016

FcWireTest

flushesOnRegularExpressionMatch 1.373
ignoresPutRequest 0.196
cachesGetRequest 1.134

LastModifiedCachingWireTest

sendsRequestDirectly 1.191
requestWithoutHeaderPassed 0.183
cachesGetRequest 1.524
cacheUpdateNewerResponse 1.487

MkContainerTest

takesMatchingQuery 1.136
returnsErrorIfNoMatches 1.024
understandsDuplicateHeaders 0.174
answersConditionally 0.208
worksAsServletContainer 0.081
takesAllMatchingQueries 0.234
canAnswerMultipleTimes 1.238
prioritizesMatchingAnswers 0.139

CookieOptimizingWireTest

avoidsTransferringOfEmptyCookiesOnFollow 1.357
transfersCookiesOnFollow 1.181

XmlResponseTest

assertsWithXpath 0.002
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathWithCustomNamespace 0.001
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpathAndReturnsThem 0.001
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathAndNamespaces 0.007
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpath 0.001
Could not initialize class com.jcabi.xml.XMLDocument

RequestTest

fetchThrowsExceptionWhenBodyIsNotEmpty[0] 0.025
sendsHttpRequestAndProcessesHttpResponse[0] 2.029
assertsHttpStatus[0] 1.815
sendsTextWithPostRequestMatchBody[0] 1.937
assertsHttpResponseBody[0] 2.062
assertsResponseBodyWithXpathQuery[0] 0.924
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
sendsBasicAuthenticationHeader[0] 1.278
acceptsUnicodeInPlainText[0] 0.573
mockedUrlIsInCorrectFormat[0] 1.059
sendsRequestBodyAsInputStream[0] 1.51
doesntRedirectWithoutRequest[0] 1.251
sendsTextWithGetParameters[0] 1.203
assertsHttpHeaders[0] 1.198
sendsTextWithPostRequestMatchParam[0] 0.269
acceptsUnicodeInXml[0] 0.266
Could not initialize class com.jcabi.xml.XMLDocument
sendsHttpRequestWithHeaders[0] 1.69
sendsIdenticalHttpRequestTwice[0] 1.34
sendsTextWithPostRequestMatchMultipleParams[0] 0.263
fetchThrowsExceptionWhenBodyIsNotEmpty[1] 0
sendsHttpRequestAndProcessesHttpResponse[1] 0.355
assertsHttpStatus[1] 0.087
sendsTextWithPostRequestMatchBody[1] 1.175
assertsHttpResponseBody[1] 1.44
assertsResponseBodyWithXpathQuery[1] 0.483
Could not initialize class com.jcabi.xml.XMLDocument
sendsBasicAuthenticationHeader[1] 0.478
acceptsUnicodeInPlainText[1] 1.303
sendsRequestBodyAsInputStream[1] 1.328
mockedUrlIsInCorrectFormat[1] 1.139
doesntRedirectWithoutRequest[1] 1.349
sendsTextWithGetParameters[1] 0.348
assertsHttpHeaders[1] 1.196
sendsTextWithPostRequestMatchParam[1] 0.16
acceptsUnicodeInXml[1] 0.055
Could not initialize class com.jcabi.xml.XMLDocument
sendsHttpRequestWithHeaders[1] 0.102
sendsIdenticalHttpRequestTwice[1] 1.178
sendsTextWithPostRequestMatchMultipleParams[1] 1.098

Failure Details

[Summary] [Package List] [Test Cases]


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