Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
469 2 0 1 99.36% 28.304

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
org.apache.johnzon.mapper.converter 3 0 0 0 100% 0.005
org.apache.johnzon.jaxrs 13 0 0 0 100% 0.548
org.apache.johnzon.jsonb 38 0 0 1 97.368% 0.639
org.apache.johnzon.mapper 154 0 0 0 100% 2.062
org.apache.johnzon.maven.plugin 1 0 0 0 100% 0.105
org.apache.johnzon.jaxrs.xml 1 0 0 0 100% 0.029
org.superbiz 1 0 0 0 100% 0.001
org.apache.johnzon.jsonb.jaxrs 7 0 0 0 100% 0.517
org.apache.johnzon.websocket 2 2 0 0 0% 1.898
org.apache.johnzon.core 249 0 0 0 100% 22.5

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

org.apache.johnzon.mapper.converter

Class Tests Errors Failures Skipped Success Rate Time
EnumConverterTest 2 0 0 0 100% 0.001
TimestampAdapterTest 1 0 0 0 100% 0.004

org.apache.johnzon.jaxrs

Class Tests Errors Failures Skipped Success Rate Time
ConfigurableJohnzonProviderTest 4 0 0 0 100% 0.508
JohnzonProviderTest 7 0 0 0 100% 0.029
JsrProviderTest 2 0 0 0 100% 0.011

org.apache.johnzon.jsonb

Class Tests Errors Failures Skipped Success Rate Time
AdapterTest 2 0 0 0 100% 0.363
CdiAdapterTest 1 0 0 0 100% 0.131
ClassConverterTest 2 0 0 0 100% 0.014
DefaultMappingTest 15 0 0 1 93.333% 0.053
JohnzonProviderTest 2 0 0 0 100% 0.001
JsonbReadTest 3 0 0 0 100% 0.033
JsonbTransientTest 1 0 0 0 100% 0.002
JsonbTypesTest 1 0 0 0 100% 0.013
JsonbVisitilityTest 2 0 0 0 100% 0.005
JsonbWriteTest 7 0 0 0 100% 0.011
PropertyNamingStrategyFactoryTest 1 0 0 0 100% 0.009
SerializerTest 1 0 0 0 100% 0.004

org.apache.johnzon.mapper

Class Tests Errors Failures Skipped Success Rate Time
AdapterTest 1 0 0 0 100% 0.116
AdvancedGenericsTest 24 0 0 0 100% 0.063
CircularExceptionTest 1 0 0 0 100% 0.003
EnumTest 6 0 0 0 100% 0.015
GetterSetterRespectTest 1 0 0 0 100% 0.003
JohnzonAnyMappingTest 1 0 0 0 100% 0.004
JPATest 1 0 0 0 100% 1.51
JsonGeneratorCloseTest 12 0 0 0 100% 0.054
JsonpIntegrationTest 1 0 0 0 100% 0.002
LiteralTest 3 0 0 0 100% 0.012
LocaleTest 1 0 0 0 100% 0.001
MapperConfigTest 7 0 0 0 100% 0.004
MapperEnhancedTest 7 0 0 0 100% 0.022
MapperGenericsTest 12 0 0 0 100% 0.017
MapperTest 32 0 0 0 100% 0.082
MapperVersionTest 1 0 0 0 100% 0.004
MetaMapperTest 1 0 0 0 100% 0.008
NoWarningTest 2 0 0 0 100% 0.009
NullTest 6 0 0 0 100% 0.01
ObjectConverterTest 1 0 0 0 100% 0.005
ObjectConverterWithAnnotationTest 16 0 0 0 100% 0.022
ObjectTypeTest 16 0 0 0 100% 0.026
OverflowTest 1 0 0 0 100% 0.07

org.apache.johnzon.maven.plugin

Class Tests Errors Failures Skipped Success Rate Time
ExampleToModelMojoTest 1 0 0 0 100% 0.105

org.apache.johnzon.jaxrs.xml

Class Tests Errors Failures Skipped Success Rate Time
WadlDocumentToJsonTest 1 0 0 0 100% 0.029

org.superbiz

Class Tests Errors Failures Skipped Success Rate Time
ExtendMappingTest 1 0 0 0 100% 0.001

org.apache.johnzon.jsonb.jaxrs

Class Tests Errors Failures Skipped Success Rate Time
JsonbJaxRsTest 7 0 0 0 100% 0.517

org.apache.johnzon.websocket

Class Tests Errors Failures Skipped Success Rate Time
JsrCodecTest 1 1 0 0 0% 1.896
MapperCodecTest 1 1 0 0 0% 0.002

org.apache.johnzon.core

Class Tests Errors Failures Skipped Success Rate Time
HStackTest 1 0 0 0 100% 0.052
JsonArrayBuilderImplTest 20 0 0 0 100% 0.049
JsonArrayImplTest 3 0 0 0 100% 0.001
JsonGeneratorImplTest 26 0 0 0 100% 0.048
JsonNumberTest 2 0 0 0 100% 0
JsonObjectBuilderImplTest 1 0 0 0 100% 0
JsonObjectImplTest 14 0 0 0 100% 0.001
JsonParserTest 141 0 0 0 100% 1.054
JsonReaderImplTest 29 0 0 0 100% 20.952
JsonWriterImplTest 1 0 0 0 100% 0
LocationTest 4 0 0 0 100% 0.282
SerializationTest 7 0 0 0 100% 0.061

Test Cases

[Summary] [Package List] [Test Cases]

HStackTest

normalUse 0.01

JsonArrayBuilderImplTest

boolJsonValueArray 0.023
numJsonValueArray 0.005
nullArrayNonChaining 0.001
addDoubleNpeIfNaN 0.001
emptyArray 0
addBINpeIfNull 0.001
addJVNpeIfNull 0.001
addJABuilderNpeIfNull 0
escapedStringArray 0.003
array 0.001
addBDNpeIfNull 0
emptyArrayInEmtyArray 0.001
nullJsonValueArray 0
arrayInArray 0.001
addStringNpeIfNull 0.001
nullArray 0.001
addJOBuilderNpeIfNull 0.001
addDoubleNpeIfNegIfinite 0
addDoubleNpeIfPosInfinite 0.001
arrayObjectInArray 0.004

JsonArrayImplTest

arrayIndex 0
emptyArray 0
arrayToString 0.001

JsonGeneratorImplTest

numbers 0.007
stringArrayEscapes 0.001
numbers2 0.001
stringArray 0.001
simpleArray 0.001
emptyArray 0
stringArrayEscapes2 0.001
pretty 0.002
emptyStringArray 0
notFluentGeneratorUsage 0.001
prettySimple 0.001
fail1 0.001
fail2 0
fail3 0.001
fail4 0
fail5 0
fail6 0.001
fail7 0
fail9 0.001
arrayInArray 0
prettyArray 0.003
generate 0.001
prettySimpleStructure 0.002
boolLiteralArray 0.001
prettySimpleWriter 0.015
nullLiteralArray 0.001

JsonNumberTest

testBigIntegerExact 0
testBigInteger 0

JsonObjectBuilderImplTest

build 0

JsonObjectImplTest

testGetBooleanMissingKeyShouldThrowNullPointerException 0
testGetStringWithDefaultShouldReturnDefault 0
testGetJsonArrayMissingKeyShouldReturnNull 0
testIsNullShouldReturnFalse 0
testIsNullMissingKeyShouldThrowNullPointerException 0
testGetIntWithDefaultShouldReturnDefault 0
testGetJsonStringMissingKeyShouldReturnNull 0
testGetBooleanWithDefaultMissingKeyShouldReturnDefault 0
testIsNullShouldReturnTrue 0
testGetJsonNumberMissingKeyShouldReturnNull 0
testGetJsonObjectMissingKeyShouldReturnNull 0
testGetIntMissingKeyShouldThrowNullPointerException 0
testGetStringMissingKeyShouldThrowNullPointerException 0
objectToString 0

JsonParserTest

bufferOverFlow2 0.012
numbers 0.002
testStreamReadNotAllBytes 0.001
testEmptyArray 0
simpleAttempting 0.01
objectFollowedByGarbage1 0
objectFollowedByGarbage2 0.01
objectFollowedByGarbage3 0.01
objectFollowedByGarbage4 0.01
objectFollowedByGarbage5 0.01
objectFollowedByGarbage6 0.01
objectFollowedByGarbage7 0.01
dosProtected 0.004
escapedStringAwareParser 0.001
testUTF8Stream 0
invalidObject 0
fail10 0.011
fail11 0.011
fail12 0.003
fail13 0.002
fail14 0.002
fail15 0.003
fail16 0.002
fail17 0.003
fail18 0.002
fail19 0.003
fail20 0.003
fail21 0.005
fail22 0.005
fail23 0.005
fail24 0.003
fail25 0.003
fail26 0.004
fail27 0.002
fail28 0.003
fail29 0.002
fail30 0.004
fail31 0.002
fail32 0.003
fail33 0.003
fail34 0.003
fail35 0.004
fail36 0.003
fail37 0.002
fail38 0.003
fail39 0.003
fail40 0.003
fail41 0.003
fail42 0.003
fail43 0.003
fail44 0.003
fail45 0.002
fail46 0.005
fail47 0.005
fail48 0.003
fail49 0.002
fail50 0.003
fail53 0.003
fail54 0.003
fail55 0.002
fail56 0.003
fail57 0.003
fail58 0.003
fail59 0.002
fail60 0.005
fail61 0.01
fail62 0.01
fail63 0.011
fail64 0.01
fail65 0.011
fail66 0.012
fail67 0.014
fail68 0.01
fail69 0.01
fail70 0.011
fail71 0.01
fail72 0.011
maxStringNumberFail 0
threeLiterals 0.001
invalidString 0.004
zeroCharInput 0.003
nested 0.003
objectFollowedByGarbage 0.008
missingClosingObject 0.001
invalidArrayMissingSeparator 0.007
simple 0.002
maxStringStringOK 0.001
literalFailChecksNull 0.003
literalFailChecksTrue 0.003
invalidArrayMissingKeyname 0
maxStringWhitespace 0.001
zeroByteInput 0.002
testUTF32LEBOMStream 0.004
testUTF32BEStream 0
maxStringNumberOK 0.001
invalidLiteral 0
testUTF32LEStream 0.003
escapeStart 0.003
array 0.004
fail1 0
fail2 0.003
fail3 0.003
fail4 0.003
fail5 0.003
fail6 0.003
fail7 0.002
fail8 0.003
fail9 0.003
testUTF8BEBOMStream 0.001
invalidEmptyObject 0
arrayFollowedByGarbage1 0.003
arrayFollowedByGarbage2 0.003
testBinaryNullStream 0.003
testIOException 0.002
testUTF32BEBOMStream 0.005
invalidArray 0.001
simpleUTF16LEAutoDetect 0.002
simpleInMemory 0.001
hasNext 0.001
stringescapeVariousBufferSizesBogus 0.519
testUTF16LEBOMStream 0
invalidKeyWithoutValue 0.001
testUTF16Stream 0.002
simpleUTF16LE 0.001
objectPrependedByGarbage7 0.002
plainValues 0.011
testBinaryNullStreamBOM 0.003
testUTF16BEStream 0.003
testUTF16BEBOMStream 0
commaChecks 0.002
shortestNonEmtyJsonFile 0.003
shortestNonEmtyJsonFileWithWhiteSpaceChars 0
testUTF16LEStream 0
testSlowIs 0.001
bufferOverFlow 0
escaping 0
maxStringStringFail 0.001
isIntegralThrowsISE 0.001
arrayFollowedByGarbage 0
escapeStart2 0.003
bigdecimal 0.003

JsonReaderImplTest

special 0
simple2BadBufferSize8 0.004
emptyArrayOneCharBufferSize 0.003
testGrowingStringWithDifferentBufferSizes 6.194
parseTiny50BJsonFile 0.001
simpleValues 0.001
emptyZeroCharBuffersize 0
simpleBadBufferSize8 0.003
simpleBadBufferSize9 0.003
parseMedium11KbJsonFile 0.002
simple 0
unicodeFailAscii 0.001
unicodeWithIoReader 0
parseHuge1MbJsonFile 0.042
parseLarge130KbJsonFile 0.003
comments 0.004
unicode 0
unicode2Bytes 0
unicode3Bytes 0.001
unicode4Bytes 0
specialWithStringAsByteArrayInputStream 0
specialKeysWithStringAsByteArrayInputStream 0.001
stringescapeVariousBufferSizes 0.089
specialWithIoReader 0.001
testGrowingString 14.587
emptyOneCharBufferSize 0.002
parseSmall3KbJsonFile 0.001
specialWithStringReader 0
parseBig600KbJsonFile 0.009

JsonWriterImplTest

writer 0

LocationTest

simpleLocation 0.001
testLocationOnParsingException 0.004
failBytesInput 0.004
simpleLocationCrossingBufferBoundaries 0.273

SerializationTest

jsonLong 0.049
jsonArray 0.005
jsonDouble 0.001
jsonNumber 0.004
jsonObject 0.001
jsonString 0.001
primitiveInObject 0

AdapterTest

run 0.072

AdvancedGenericsTest

testDeserializeHierarchyThree[field] 0.003
testSerializeHierarchyThree[field] 0.002
testSerializeHierarchyOne[field] 0.001
testSerializeHierarchyTwo[field] 0
testDeserializeHierarchyOne[field] 0.001
testDeserializeHierarchyTwo[field] 0.003
testDeserializeHierarchyThree[method] 0.011
testSerializeHierarchyThree[method] 0.001
testSerializeHierarchyOne[method] 0
testSerializeHierarchyTwo[method] 0.001
testDeserializeHierarchyOne[method] 0.002
testDeserializeHierarchyTwo[method] 0.001
testDeserializeHierarchyThree[both] 0.004
testSerializeHierarchyThree[both] 0.001
testSerializeHierarchyOne[both] 0.002
testSerializeHierarchyTwo[both] 0.001
testDeserializeHierarchyOne[both] 0.002
testDeserializeHierarchyTwo[both] 0.001
testDeserializeHierarchyThree[strict-method] 0.001
testSerializeHierarchyThree[strict-method] 0.001
testSerializeHierarchyOne[strict-method] 0.001
testSerializeHierarchyTwo[strict-method] 0.004
testDeserializeHierarchyOne[strict-method] 0.001
testDeserializeHierarchyTwo[strict-method] 0.002

CircularExceptionTest

dontStackOverFlow 0.003

EnumConverterTest

fromEnumToString 0.001
fromStringToEnum 0

TimestampAdapterTest

convert 0.004

EnumTest

testSimpleEnumAccessModeField 0.002
testSimpleEnumAccessModeBoth 0.001
testAdvancedEnumAccessModeBoth 0.004
testSimpleEnumWithCollectionAccessModeBoth 0.003
testSimpleEnumWithCollectionAccessModeField 0.001
testAdvancedEnumAccessModeField 0.003

GetterSetterRespectTest

run 0.003

JohnzonAnyMappingTest

roundTrip 0.004

JPATest

ensureStateIsIgnoredAndDateIsCorrect 1.51

JsonGeneratorCloseTest

testCloseWithException[field] 0.003
testClose[field] 0.001
testCloseConcurrent[field] 0.006
testCloseWithException[method] 0.002
testClose[method] 0.001
testCloseConcurrent[method] 0.01
testCloseWithException[both] 0.002
testClose[both] 0.003
testCloseConcurrent[both] 0.007
testCloseWithException[strict-method] 0.003
testClose[strict-method] 0.002
testCloseConcurrent[strict-method] 0.009

JsonpIntegrationTest

readAndWrite 0.002

LiteralTest

writeReadNumbersInf 0.004
writeReadIterables 0.004
writeReadNumbers 0.004

LocaleTest

roundTrip 0.001

MapperConfigTest

testFindObjectConverterConverterOnlyForSuperclass 0.002
testFindObjectConverterConverterForMoreInterfaces 0.001
testFindObjectConverterConverterForInterface 0
testFindObjectConverterConverterForSpecificClass 0
testFindObjectConverterConverterForInterfaceAndClassConverterSubclasses 0.001
testfindObjectConverterConverterForObject 0
testFindObjectConverterConverterForInterfaceAndClass 0

MapperEnhancedTest

needConvertersForComplexTypes 0.005
writeNull 0
writeReadChar 0.004
writeReadSortedMap 0.003
writeReadSortedSet 0.003
writeTestclass 0.003
writeReadQueue 0.003

MapperGenericsTest

map[field] 0.002
base[field] 0.001
list[field] 0.001
map[method] 0.003
base[method] 0.001
list[method] 0.002
map[both] 0.001
base[both] 0.001
list[both] 0.001
map[strict-method] 0.001
base[strict-method] 0.001
list[strict-method] 0

MapperTest

literalFail2 0.003
enumCollection 0.001
privateConstructor 0.001
writeMap 0.001
writeArrayOfArray 0.001
constructor 0.005
shortAndByteBase64 0.005
readArray 0.005
readMapObject 0.001
aliases 0.004
encodingTest 0.002
readCollection 0.003
noSetterCollection 0.002
writeArray 0.001
readObject 0.001
writeListOfList 0.001
fieldAccess 0.001
readEmptyArray 0.001
nan 0.001
primitiveCollection 0
literal 0.001
fakedObject 0.009
readEmptyObject 0.004
shortAndByte 0.004
testShouldMapACollection 0.002
writeByteArray 0.001
writeShortArray 0
writeEmptyObject 0.001
writeObject 0.006
literalFail 0
justObjectAsModel 0.004
converters 0.003

MapperVersionTest

version 0.004

MetaMapperTest

customMappingAPI 0.008

NoWarningTest

noWarn 0.001
warn 0.004

NullTest

writeNullObjectSkipAll 0.003
writeNullObjectDefaultMapAllowNull 0.003
writeNullObjectAllowNull 0.002
writeNullObjectAllowNullSkipEmptyArray 0
writeNullObjectDefaultMap 0
writeNullObjectDefault 0.001

ObjectConverterTest

testObjectConverter 0.005

ObjectConverterWithAnnotationTest

testDeserializeObjectWithCollectionAndObjectConverter[0] 0.004
testDeserializeWithObjectConverter[0] 0.001
testSerializeObjectWithCollectionAndObjectConverter[0] 0.001
testSerializeWithObjectConverter[0] 0.001
testDeserializeObjectWithCollectionAndObjectConverter[1] 0.003
testDeserializeWithObjectConverter[1] 0.001
testSerializeObjectWithCollectionAndObjectConverter[1] 0.001
testSerializeWithObjectConverter[1] 0.001
testDeserializeObjectWithCollectionAndObjectConverter[2] 0.001
testDeserializeWithObjectConverter[2] 0
testSerializeObjectWithCollectionAndObjectConverter[2] 0.001
testSerializeWithObjectConverter[2] 0.001
testDeserializeObjectWithCollectionAndObjectConverter[3] 0
testDeserializeWithObjectConverter[3] 0.001
testSerializeObjectWithCollectionAndObjectConverter[3] 0.001
testSerializeWithObjectConverter[3] 0.001

ObjectTypeTest

testObjectConverterMapper[field] 0.002
testReadWithObjectConverter[field] 0.002
testWriteWithAdvancedObjectConverter[field] 0.001
testReadWithAdvancedObjectConverter[field] 0.004
testObjectConverterMapper[method] 0.004
testReadWithObjectConverter[method] 0.002
testWriteWithAdvancedObjectConverter[method] 0
testReadWithAdvancedObjectConverter[method] 0
testObjectConverterMapper[both] 0.003
testReadWithObjectConverter[both] 0.002
testWriteWithAdvancedObjectConverter[both] 0
testReadWithAdvancedObjectConverter[both] 0.001
testObjectConverterMapper[strict-method] 0.001
testReadWithObjectConverter[strict-method] 0
testWriteWithAdvancedObjectConverter[strict-method] 0
testReadWithAdvancedObjectConverter[strict-method] 0.001

OverflowTest

overflow 0.07

ExtendMappingTest

run 0.001

ConfigurableJohnzonProviderTest

object 0.104
asParam 0.006
list 0.005
array 0.003

JohnzonProviderTest

primitive 0.003
streamOutput 0.004
object 0.004
asParam 0.002
list 0.003
array 0.003
listPostNoGeneric 0.005

JsrProviderTest

object 0.005
array 0.002

WadlDocumentToJsonTest

xmlToJson 0.029

JsrCodecTest

org.apache.johnzon.websocket.JsrCodecTest 1.896
Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.WebArchive org.apache.johnzon.websocket.JsrCodecTest.war()

MapperCodecTest

org.apache.johnzon.websocket.MapperCodecTest 0.002
Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.WebArchive org.apache.johnzon.websocket.MapperCodecTest.war()

ExampleToModelMojoTest

generate 0.051

AdapterTest

adapt 0.293
notYetPloymorphism 0.018

CdiAdapterTest

run 0.131

ClassConverterTest

roundTripSerDeser 0.009
writeAdapters 0.004

DefaultMappingTest

accessors 0.002
anonymous 0.003
inheritance 0.002
modifiers 0.002
arrays 0.001
simpleValues 0.003
naming 0.004
primitives 0
should it be supported
nulls 0.002
order 0.005
pojos 0.017
structures 0.002
instantiation 0.002
optionals 0.002
collections 0

JsonbJaxRsTest

primitive 0.068
streamOutput 0.004
object 0.009
asParam 0.004
testBinaryDownload 0.003
list 0.006
array 0.005

JohnzonProviderTest

create 0.001
provider 0

JsonbReadTest

simple 0.004
date 0.027
propertyMapping 0.002

JsonbTransientTest

roundtrip 0.002

JsonbTypesTest

readAndWrite 0.013

JsonbVisitilityTest

testJsonVisibilityAllFields 0.003
testJsonPropertyInternalField 0.002

JsonbWriteTest

propertyMappingNotNillable 0.002
simple 0.002
map 0
date 0.002
list 0.001
propertyMapping 0.001
propertyNillable 0.002

PropertyNamingStrategyFactoryTest

valid 0.006

SerializerTest

roundTrip 0.004

Failure Details

[Summary] [Package List] [Test Cases]


org.apache.johnzon.websocket.JsrCodecTest
java.lang.RuntimeException: Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.WebArchive org.apache.johnzon.websocket.JsrCodecTest.war()
org.apache.johnzon.websocket.JsrCodecTest:60
org.apache.johnzon.websocket.MapperCodecTest
java.lang.RuntimeException: Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.WebArchive org.apache.johnzon.websocket.MapperCodecTest.war()
org.apache.johnzon.websocket.MapperCodecTest:60
primitives
skipped: should it be supported