/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/validate/ |
D | FullStreamReadTest.java | 77 verifyException(e, "Trailing token (of type START_ARRAY)"); in testMapperFailOnTrailing() 78 verifyException(e, "value (bound as `com.fasterxml.jackson.databind.JsonNode`)"); in testMapperFailOnTrailing() 85 verifyException(e, "Trailing token (of type START_ARRAY)"); in testMapperFailOnTrailing() 86 verifyException(e, "value (bound as `java.util.List`)"); in testMapperFailOnTrailing() 95 verifyException(e, "Unexpected character"); in testMapperFailOnTrailing() 96 verifyException(e, "maybe a (non-standard) comment"); in testMapperFailOnTrailing() 102 verifyException(e, "Unexpected character"); in testMapperFailOnTrailing() 103 verifyException(e, "maybe a (non-standard) comment"); in testMapperFailOnTrailing() 128 verifyException(e, "Trailing token (of type VALUE_FALSE)"); in testMapperFailOnTrailingWithNull() 129 verifyException(e, "value (bound as `com.fasterxml.jackson.databind.JsonNode`)"); in testMapperFailOnTrailingWithNull() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/ |
D | SimpleModuleArgCheckTest.java | 28 verifyException(e, "Cannot pass `null` as deserializer"); in testInvalidForDeserializers() 35 verifyException(e, "Cannot pass `null` as key deserializer"); in testInvalidForDeserializers() 54 verifyException(e, "Cannot pass `null` as serializer"); in testInvalidForSerializers() 61 verifyException(e, "Cannot pass `null` as serializer"); in testInvalidForSerializers() 68 verifyException(e, "Cannot pass `null` as key serializer"); in testInvalidForSerializers() 90 verifyException(e, "Cannot pass `null` as abstract type to map"); in testInvalidAbstractTypeMapping() 96 verifyException(e, "Cannot pass `null` as concrete type to map to"); in testInvalidAbstractTypeMapping() 108 verifyException(e, "Cannot pass `null` as subtype to register"); in testInvalidSubtypeMappings() 115 verifyException(e, "Cannot pass `null` as subtype to register"); in testInvalidSubtypeMappings() 127 verifyException(e, "Cannot pass `null` as class to register value instantiator for"); in testInvalidValueInstantiator() [all …]
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/io/ |
D | TestIOContext.java | 21 verifyException(e, "second time"); in testAllocations() 27 verifyException(e, "smaller than original"); in testAllocations() 38 verifyException(e, "second time"); in testAllocations() 43 verifyException(e, "smaller than original"); in testAllocations() 53 verifyException(e, "second time"); in testAllocations() 58 verifyException(e, "smaller than original"); in testAllocations() 68 verifyException(e, "second time"); in testAllocations() 73 verifyException(e, "smaller than original"); in testAllocations() 83 verifyException(e, "second time"); in testAllocations() 88 verifyException(e, "smaller than original"); in testAllocations()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | TestRootName.java | 55 verifyException(e, "Root name 'notRudy' does not match expected ('rudy')"); in testRootViaMapperFails() 63 verifyException(e, "Unexpected token (START_ARRAY"); in testRootViaMapperFails() 71 verifyException(e, "Current token not FIELD_NAME"); in testRootViaMapperFails() 79 verifyException(e, "Unexpected token"); in testRootViaMapperFails() 80 verifyException(e, "Current token not END_OBJECT (to match wrapper"); in testRootViaMapperFails() 92 verifyException(e, "Root name 'notRudy' does not match expected ('rudy')"); in testRootViaReaderFails() 100 verifyException(e, "Unexpected token (START_ARRAY"); in testRootViaReaderFails() 108 verifyException(e, "Current token not FIELD_NAME"); in testRootViaReaderFails() 116 verifyException(e, "Unexpected token"); in testRootViaReaderFails() 117 verifyException(e, "Current token not END_OBJECT (to match wrapper"); in testRootViaReaderFails() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/vld/ |
D | BasicPTVTest.java | 101 verifyException(e, "Could not resolve type id 'java.lang.Byte'"); in testAllowByBaseClass() 102 verifyException(e, "as a subtype of"); in testAllowByBaseClass() 136 verifyException(e, "Could not resolve type id 'java.lang.Byte'"); in testAllowByBaseClassPrefix() 137 verifyException(e, "as a subtype of"); in testAllowByBaseClassPrefix() 161 verifyException(e, "Could not resolve type id 'java.lang.Byte'"); in testAllowByBaseClassPattern() 162 verifyException(e, "as a subtype of"); in testAllowByBaseClassPattern() 184 verifyException(e, "denied resolution of all subtypes of base type `java.lang.Object`"); in testDenyByBaseClass() 213 verifyException(e, "Could not resolve type id 'com.fasterxml.jackson."); in testAllowBySubClass() 214 verifyException(e, "as a subtype of"); in testAllowBySubClass() 237 verifyException(e, "Could not resolve type id 'com.fasterxml.jackson."); in testAllowBySubClassPrefix() [all …]
|
D | ValidatePolymBaseTypeTest.java | 116 verifyException(e, "Configured `PolymorphicTypeValidator`"); in testAnnotedBad() 117 verifyException(e, "denied resolution of"); in testAnnotedBad() 118 verifyException(e, "all subtypes of base type"); in testAnnotedBad() 141 verifyException(e, "Configured `PolymorphicTypeValidator`"); in testDefaultBad() 142 verifyException(e, "denied resolution of"); in testDefaultBad() 143 verifyException(e, "all subtypes of base type"); in testDefaultBad()
|
D | AnnotatedPolymorphicValidationTest.java | 73 verifyException(e, "Configured"); in testPolymorphicWithUnsafeBaseType() 74 verifyException(e, "all subtypes of base type"); in testPolymorphicWithUnsafeBaseType() 92 verifyException(e, "Configured"); in testPolymorphicWithUnsafeBaseType() 93 verifyException(e, "all subtypes of base type"); in testPolymorphicWithUnsafeBaseType() 94 verifyException(e, "java.io.Serializable"); in testPolymorphicWithUnsafeBaseType()
|
D | BasicPTVWithArraysTest.java | 65 verifyException(e, "Could not resolve type id '[Lcom.fasterxml.jackson."); in testAllowBySubClassInArray() 66 verifyException(e, "as a subtype of"); in testAllowBySubClassInArray() 92 verifyException(e, "Could not resolve type id 'com.fasterxml.jackson."); in testAllowBySubClassInArray() 93 verifyException(e, "$Bad2534"); in testAllowBySubClassInArray() 94 verifyException(e, "as a subtype of"); in testAllowBySubClassInArray()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/failing/async/ |
D | AsyncTokenErrorTest.java | 45 verifyException(jex, "Unrecognized token"); in _doTestInvalidKeyword() 46 verifyException(jex, value); in _doTestInvalidKeyword() 58 verifyException(jex, "Unrecognized token"); in _doTestInvalidKeyword() 59 verifyException(jex, value); in _doTestInvalidKeyword() 72 verifyException(e, "expected space"); in testMangledRootInts() 85 verifyException(e, "expected space"); in testMangledRootFloats() 98 verifyException(e, "expected space"); in testMangledNonRootInts() 111 verifyException(e, "expected space"); in testMangledNonRootFloats()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/ |
D | BuilderViaUpdateTest.java | 62 verifyException(e, "Deserialization of"); in testBuilderUpdateWithValue() 63 verifyException(e, "by passing existing instance"); in testBuilderUpdateWithValue() 64 verifyException(e, "ValueClassXY"); in testBuilderUpdateWithValue() 84 verifyException(e, "Deserialization of"); in testBuilderWithWrongType() 85 verifyException(e, "by passing existing Builder"); in testBuilderWithWrongType() 86 verifyException(e, "SimpleBuilderXY"); in testBuilderWithWrongType()
|
D | BuilderFailTest.java | 73 verifyException(e, "Build method "); in testBuilderMethodReturnInvalidType() 74 verifyException(e, "#build()"); in testBuilderMethodReturnInvalidType() 75 verifyException(e, "has wrong return type"); in testBuilderMethodReturnInvalidType() 86 verifyException(e, "Unrecognized field \"z\""); in testExtraFields()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/exc/ |
D | DeserExceptionTypeTest.java | 55 verifyException(exc, "propX"); in testHandlingOfUnrecognized() 69 verifyException(e, MismatchedInputException.class, "No content"); in testExceptionWithEmpty() 87 verifyException(e, IOException.class, "TEST"); in testExceptionWithIncomplete() 103 verifyException(e, MismatchedInputException.class, "No content"); in testExceptionWithEOF() 120 verifyException(e, InvalidDefinitionException.class, "no Creators"); in testExceptionForNoCreators() 130 void verifyException(Exception e, Class<?> expType, String expMsg) in verifyException() method in DeserExceptionTypeTest 137 verifyException(e, expMsg); in verifyException()
|
D | TestExceptionsDuringWriting.java | 68 verifyException(e, "test string"); in testCatchAndRethrow() 92 verifyException(e, IOException.class, "TEST"); in testExceptionWithSimpleMapper() 109 verifyException(e, IOException.class, "TEST"); in testExceptionWithMapperAndGenerator() 123 verifyException(e, IOException.class, "TEST"); in testExceptionWithGeneratorMapping() 133 void verifyException(Exception e, Class<?> expType, String expMsg) in verifyException() method in TestExceptionsDuringWriting 140 verifyException(e, expMsg); in verifyException()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/ |
D | InnerClassCreatorTest.java | 69 verifyException(e, "Cannot construct instance"); in testIssue1501() 70 verifyException(e, "InnerSomething1501"); in testIssue1501() 71 … verifyException(e, "non-static inner classes like this can only by instantiated using default"); in testIssue1501() 82 verifyException(e, "Cannot construct instance"); in testIssue1502() 83 verifyException(e, "InnerSomething1502"); in testIssue1502() 84 … verifyException(e, "non-static inner classes like this can only by instantiated using default"); in testIssue1502()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/ |
D | ParserScopeMatchingTest.java | 34 verifyException(pe, "expected close marker for ARRAY"); in _testUnclosedArray() 56 verifyException(pe, "expected close marker for OBJECT"); in _testUnclosedObject() 76 verifyException(pe, "Unexpected end-of-input"); in _testEOFInName() 80 verifyException(ie, "end-of-input"); in _testEOFInName() 102 verifyException(pe, "Unrecognized token"); in _testWeirdToken() 125 verifyException(pe, "Unexpected close marker '}': expected ']'"); in _testMismatchArrayToObject() 148 verifyException(pe, "Unexpected close marker ']': expected '}'"); in _testMismatchObjectToArray() 172 verifyException(pe, "was expecting a colon"); in _testMisssingColon()
|
D | ParserErrorHandlingTest.java | 80 verifyException(jex, "Unrecognized token"); in doTestInvalidKeyword1() 81 verifyException(jex, value); in doTestInvalidKeyword1() 93 verifyException(jex, "Unrecognized token"); in doTestInvalidKeyword1() 94 verifyException(jex, value); in doTestInvalidKeyword1() 107 verifyException(e, "expected space"); in _testMangledNumbersInt() 120 verifyException(e, "expected space"); in _testMangledNumbersFloat()
|
D | UTF32ParseTest.java | 25 verifyException(e, "Unexpected EOF"); in testSimpleEOFs() 26 verifyException(e, "of a 4-byte UTF-32 char"); in testSimpleEOFs() 52 verifyException(e, "Invalid UTF-32 character 0xfefe0001"); in testSimpleInvalidUTF32() 64 verifyException(e, "Illegal character ((CTRL-CHAR, code 0))"); in testSimpleSevenNullBytes()
|
D | NumberOverflowTest.java | 44 verifyException(e, "out of range of long"); in testSimpleLongOverflow() 54 verifyException(e, "out of range of long"); in testSimpleLongOverflow() 75 verifyException(e, "out of range of long"); in testMaliciousLongOverflow() 76 verifyException(e, "Integer with "+BIG_NUM_LEN+" digits"); in testMaliciousLongOverflow() 95 verifyException(e, "out of range of int"); in testMaliciousIntOverflow() 96 verifyException(e, "Integer with "+BIG_NUM_LEN+" digits"); in testMaliciousIntOverflow()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/ |
D | AsyncScopeMatchingTest.java | 29 verifyException(pe, "expected close marker for ARRAY"); in testUnclosedArray() 44 verifyException(pe, "expected close marker for OBJECT"); in testUnclosedObject() 57 verifyException(pe, "Unexpected end-of-input"); in testEOFInName() 61 verifyException(ie, "end-of-input"); in testEOFInName() 78 verifyException(pe, "Unexpected close marker '}': expected ']'"); in testMismatchArrayToObject() 94 verifyException(pe, "Unexpected close marker ']': expected '}'"); in testMismatchObjectToArray() 111 verifyException(pe, "was expecting a colon"); in testMisssingColon()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | Base64DecodingTest.java | 34 verifyException(e, "Failed to decode"); in _testInvalidBase64() 35 verifyException(e, "as base64"); in _testInvalidBase64() 36 verifyException(e, "Illegal character '!'"); in _testInvalidBase64() 46 verifyException(e, "Cannot access contents of TextNode as binary"); in _testInvalidBase64() 47 verifyException(e, "Illegal character '!'"); in _testInvalidBase64()
|
D | JDKScalarsTest.java | 256 verifyException(e, "cannot map `null`"); in testCharacterWrapper() 573 verifyException(e, "Cannot coerce `null` to `boolean`"); in testEmptyStringFailForBooleanPrimitive() 574 verifyException(e, "FAIL_ON_NULL_FOR_PRIMITIVES"); in testEmptyStringFailForBooleanPrimitive() 611 verifyException(e, "Cannot map `null` into type boolean"); in testNullForPrimitives() 619 verifyException(e, "Cannot map `null` into type byte"); in testNullForPrimitives() 626 verifyException(e, "Cannot map `null` into type char"); in testNullForPrimitives() 633 verifyException(e, "Cannot map `null` into type short"); in testNullForPrimitives() 640 verifyException(e, "Cannot map `null` into type int"); in testNullForPrimitives() 647 verifyException(e, "Cannot map `null` into type long"); in testNullForPrimitives() 656 verifyException(e, "Cannot map `null` into type float"); in testNullForPrimitives() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/ |
D | ContainerTypesTest.java | 86 verifyException(e, "`"+getClass().getName()+"$LongList` did not resolve to something"); in testMismatchedCollectionType() 87 verifyException(e, "element type"); in testMismatchedCollectionType() 99 … verifyException(e, "`"+getClass().getName()+"$StringLongMap` did not resolve to something"); in testMismatchedMapType() 100 verifyException(e, "key type"); in testMismatchedMapType() 108 … verifyException(e, "`"+getClass().getName()+"$StringLongMap` did not resolve to something"); in testMismatchedMapType() 109 verifyException(e, "value type"); in testMismatchedMapType()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/interop/ |
D | DateJava8FallbacksTest.java | 30 … verifyException(e, "Java 8 date/time type `java.time.OffsetDateTime` not supported by default"); in testPreventSerialization() 31 … verifyException(e, "add Module \"com.fasterxml.jackson.datatype:jackson-datatype-jsr310\""); in testPreventSerialization() 41 … verifyException(e, "Java 8 date/time type `java.time.OffsetDateTime` not supported by default"); in testBetterDeserializationError() 42 … verifyException(e, "add Module \"com.fasterxml.jackson.datatype:jackson-datatype-jsr310\""); in testBetterDeserializationError()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ |
D | GenericTypeId1735Test.java | 49 verifyException(e, "could not resolve type id"); in testSimpleTypeCheck1735() 50 verifyException(e, "not a subtype"); in testSimpleTypeCheck1735() 63 verifyException(e, "could not resolve type id"); in testNestedTypeCheck1735() 64 verifyException(e, "not a subtype"); in testNestedTypeCheck1735()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/ |
D | UnwrapSingleArrayScalarsTest.java | 83 verifyException(e, "Cannot deserialize value of type `int`"); in testIntPrimitiveArrayUnwrap() 97 verifyException(e, "more than one value"); in testIntPrimitiveArrayUnwrap() 120 verifyException(e, "Cannot deserialize value of type `long`"); in testLongPrimitiveArrayUnwrap() 133 verifyException(e, "more than one value"); in testLongPrimitiveArrayUnwrap() 157 verifyException(e, "Cannot deserialize value of type `double`"); in testDoubleAsArray() 170 verifyException(e, "more than one value"); in testDoubleAsArray() 370 verifyException(exp, "Attempted to unwrap"); in testSingleStringWrapped() 398 verifyException(exp, "Attempted to unwrap"); in testBigDecimal() 422 verifyException(exp, "Attempted to unwrap"); in testBigInteger() 486 verifyException(e, "Cannot deserialize"); in _verifyNoDeserFromArray() [all …]
|