• 1.17

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
113 10 0 0 91.15% 47.551

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% 29.845
com.jcabi.http.wire 23 0 0 0 100% 13.716
com.jcabi.http.response 26 6 0 0 76.923% 0.617
com.jcabi.http.mock 15 0 0 0 100% 2.468
com.jcabi.http.request 12 0 0 0 100% 0.905

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
RequestTest 36 4 0 0 88.889% 29.845

com.jcabi.http.wire

Class Tests Errors Failures Skipped Success Rate Time
LastModifiedCachingWireTest 6 0 0 0 100% 1.629
AutoRedirectingWireTest 2 0 0 0 100% 4.499
VerboseWireTest 2 0 0 0 100% 1.017
ETagCachingWireTest 2 0 0 0 100% 1.026
UserAgentWireTest 1 0 0 0 100% 0.047
FcWireTest 3 0 0 0 100% 1.335
CachingWireTest 3 0 0 0 100% 1.08
CookieOptimizingWireTest 2 0 0 0 100% 1.02
TrustedWireTest 1 0 0 0 100% 1.009
RetryWireTest 1 0 0 0 100% 1.054

com.jcabi.http.response

Class Tests Errors Failures Skipped Success Rate Time
JacksonResponseTest 9 0 0 0 100% 0.384
WebLinkingResponseTest 2 0 0 0 100% 0.004
JsonResponseTest 5 0 0 0 100% 0.021
RestResponseTest 4 0 0 0 100% 0.013
JsoupResponseTest 1 1 0 0 0% 0.164
XmlResponseTest 5 5 0 0 0% 0.031

com.jcabi.http.mock

Class Tests Errors Failures Skipped Success Rate Time
MkAnswerMatchersTest 3 0 0 0 100% 0.092
MkContainerTest 9 0 0 0 100% 1.827
MkQueryMatchersTest 2 0 0 0 100% 0.068
GrizzlyQueryTest 1 0 0 0 100% 0.481

com.jcabi.http.request

Class Tests Errors Failures Skipped Success Rate Time
FakeRequestTest 7 0 0 0 100% 0.513
BaseRequestTest 4 0 0 0 100% 0.298
DefaultResponseTest 1 0 0 0 100% 0.094

Test Cases

[Summary] [Package List] [Test Cases]

JacksonResponseTest

canParseUnquotedControlCharacters 0.359
invalidJsonObjectErrorIsLeftToJackson 0.348
invalidJsonErrorHandlingIsLeftToJackson 0.001
invalidJsonArrayErrorHandlingIsLeftToJackson 0.002
canReadJsonDocument 0.004
canReadAsArrayIfOne 0.002
canReadAsObjectIfOne 0.004
cannotReadJsonAsObjectIfNotOne 0.002
cannotReadJsonAsArrayIfNotOne 0.013

FakeRequestTest

changesUri 0.117
fetchThrowsExceptionWhenBodyIsNotEmpty 0.028
sendsHttpRequestAndProcessesHttpResponse 0.005
changesUriInResponse 0.005
identifiesUniquely 0.003
sendsHttpRequestAndProcessesHttpBinaryResponse 0.003
fakeRequestReturnsResponseBody 0.007

LastModifiedCachingWireTest

doesNotEvictCacheOnNonOK 1.595
cachesGetRequest 1.628
requestWithoutHeaderPassed 1.484
cacheUpdateNewerResponse 0.606
doesNotCacheGetRequestIfTheLastModifiedHeaderIsMissing 1.501
sendsRequestDirectly 1.497

AutoRedirectingWireTest

retriesForHttpRedirectStatus 4.499
returnsValidResponseAfterRetry 3.468

ImmutableHeaderTest

normalizesHeaderKey 0

WebLinkingResponseTest

followsLinksInHeaders 0.004
parsesLinksInHeaders 0.004

VerboseWireTest

logsRequest 0.01
logsRequestBody 1.007

BaseRequestTest

printsJsonInBody 0.298
identifiesUniquely 0.278
buildsDestinationUri 0.279
includesPort 0.233

JsonResponseTest

logsForInvalidJsonArray 0.017
logsForInvalidJsonObject 0.019
logsForInvalidJson 0.016
readsControlCharacters 0.001
readsJsonDocument 0.004

MkAnswerMatchersTest

canMatchBodyBytes 0.092
canMatchHeader 0.087
canMatchBody 0.003

MkContainerTest

takesMatchingQuery 1.012
returnsErrorIfNoMatches 1.029
understandsDuplicateHeaders 1.044
answersConditionally 1.011
worksAsServletContainer 1.017
answersBinary 1.016
takesAllMatchingQueries 1.025
canAnswerMultipleTimes 1.031
prioritizesMatchingAnswers 1.011

RestResponseTest

jumpsToRelativeUrls 0.002
assertsHttpStatusCode 0.002
assertsHttpHeaders 0.002
retrievesCookieByName 0.007

MkQueryMatchersTest

canMatchHeader 0.068
canMatchBody 0.062

ETagCachingWireTest

detectsContentModification 1.026
takesContentFromCache 0.039

GrizzlyQueryTest

returnsBinaryBody 0.481

JsoupResponseTest

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

UserAgentWireTest

addsUserAgentHeader 0.047

FcWireTest

flushesOnRegularExpressionMatch 1.035
ignoresPutRequest 1.018
cachesGetRequest 1.007

DefaultResponseTest

throwsWhenEntityIsNotAUnicodeString 0.094

CachingWireTest

flushesOnRegularExpressionMatch 1.08
ignoresPutRequest 1.041
cachesGetRequest 0.065

CookieOptimizingWireTest

avoidsTransferringOfEmptyCookiesOnFollow 1.019
transfersCookiesOnFollow 1.019

XmlResponseTest

assertsWithXpathWithCustomNamespace 0.013
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpath 0.003
Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathAndNamespaces 0.008
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpathAndReturnsThem 0.001
Could not initialize class com.jcabi.xml.XMLDocument
findsDocumentNodesWithXpath 0
Could not initialize class com.jcabi.xml.XMLDocument

TrustedWireTest

ignoresPkixErrors 1.009

RetryWireTest

makesMultipleRequests 1.054

RequestTest

fetchThrowsExceptionWhenBodyIsNotEmpty[0] 0.126
sendsHttpRequestAndProcessesHttpResponse[0] 1.495
assertsHttpStatus[0] 1.49
sendsTextWithPostRequestMatchBody[0] 1.489
assertsHttpResponseBody[0] 1.484
assertsResponseBodyWithXpathQuery[0] 0.478
javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
sendsBasicAuthenticationHeader[0] 0.012
acceptsUnicodeInPlainText[0] 1.007
mockedUrlIsInCorrectFormat[0] 1.004
sendsRequestBodyAsInputStream[0] 1.008
doesntRedirectWithoutRequest[0] 1.009
sendsTextWithGetParameters[0] 1.013
assertsHttpHeaders[0] 1.012
sendsTextWithPostRequestMatchParam[0] 0.013
acceptsUnicodeInXml[0] 0.006
Could not initialize class com.jcabi.xml.XMLDocument
sendsHttpRequestWithHeaders[0] 1.059
sendsIdenticalHttpRequestTwice[0] 1.016
sendsTextWithPostRequestMatchMultipleParams[0] 1.009
fetchThrowsExceptionWhenBodyIsNotEmpty[1] 0
sendsHttpRequestAndProcessesHttpResponse[1] 1.006
assertsHttpStatus[1] 1.005
sendsTextWithPostRequestMatchBody[1] 1.009
assertsHttpResponseBody[1] 1.006
assertsResponseBodyWithXpathQuery[1] 0.005
Could not initialize class com.jcabi.xml.XMLDocument
sendsBasicAuthenticationHeader[1] 1.006
acceptsUnicodeInPlainText[1] 1.006
mockedUrlIsInCorrectFormat[1] 1.004
sendsRequestBodyAsInputStream[1] 0.008
doesntRedirectWithoutRequest[1] 1.009
sendsTextWithGetParameters[1] 1.007
assertsHttpHeaders[1] 1.008
sendsTextWithPostRequestMatchParam[1] 1.007
acceptsUnicodeInXml[1] 0.005
Could not initialize class com.jcabi.xml.XMLDocument
sendsHttpRequestWithHeaders[1] 1.006
sendsIdenticalHttpRequestTwice[1] 1.012
sendsTextWithPostRequestMatchMultipleParams[1] 1.006

Failure Details

[Summary] [Package List] [Test Cases]


normalizesHtml
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathWithCustomNamespace
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpath
java.lang.NoClassDefFoundError: Could not initialize class com.jcabi.xml.XMLDocument
assertsWithXpathAndNamespaces
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
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