Home
last modified time | relevance | path

Searched refs:JsonToken (Results 1 – 25 of 262) sorted by relevance

1234567891011

/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs43 AssertTokens("{}", JsonToken.StartObject, JsonToken.EndObject); in EmptyObjectValue()
49 AssertTokens("[]", JsonToken.StartArray, JsonToken.EndArray); in EmptyArrayValue()
68 AssertTokensNoReplacement("\"" + json + "\"", JsonToken.Value(expectedValue)); in StringValue()
80 AssertTokens("'\\ud800\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
81 AssertTokens("'\ud800\\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth()
95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth()
99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs43 AssertTokens("{}", JsonToken.StartObject, JsonToken.EndObject); in EmptyObjectValue()
49 AssertTokens("[]", JsonToken.StartArray, JsonToken.EndArray); in EmptyArrayValue()
68 AssertTokensNoReplacement("\"" + json + "\"", JsonToken.Value(expectedValue)); in StringValue()
80 AssertTokens("'\\ud800\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
81 AssertTokens("'\ud800\\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth()
95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth()
99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DJsonToken.cs37 internal sealed class JsonToken : IEquatable<JsonToken> class
40 private static readonly JsonToken _true = new JsonToken(TokenType.True);
41 private static readonly JsonToken _false = new JsonToken(TokenType.False);
42 private static readonly JsonToken _null = new JsonToken(TokenType.Null);
43 private static readonly JsonToken startObject = new JsonToken(TokenType.StartObject);
44 private static readonly JsonToken endObject = new JsonToken(TokenType.EndObject);
45 private static readonly JsonToken startArray = new JsonToken(TokenType.StartArray);
46 private static readonly JsonToken endArray = new JsonToken(TokenType.EndArray);
47 private static readonly JsonToken endDocument = new JsonToken(TokenType.EndDocument);
49 internal static JsonToken Null { get { return _null; } }
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/
DAsyncNonStdParsingTest.java49 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testLargeUnquoted()
51 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testLargeUnquoted()
52 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testLargeUnquoted()
54 assertToken(((i&1) != 0) ? JsonToken.VALUE_TRUE : JsonToken.VALUE_FALSE, p.nextToken()); in _testLargeUnquoted()
55 assertToken(JsonToken.END_OBJECT, p.nextToken()); in _testLargeUnquoted()
57 assertToken(JsonToken.END_ARRAY, p.nextToken()); in _testLargeUnquoted()
83 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testSimpleUnquoted()
84 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testSimpleUnquoted()
86 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testSimpleUnquoted()
87 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testSimpleUnquoted()
[all …]
DAsyncSimpleNestedTest.java38 assertToken(JsonToken.START_OBJECT, r.nextToken()); in _testStuffInObject()
41 assertToken(JsonToken.FIELD_NAME, r.nextToken()); in _testStuffInObject()
43 assertToken(JsonToken.START_ARRAY, r.nextToken()); in _testStuffInObject()
45 assertToken(JsonToken.VALUE_NUMBER_INT, r.nextToken()); in _testStuffInObject()
47 assertToken(JsonToken.VALUE_NUMBER_INT, r.nextToken()); in _testStuffInObject()
49 assertToken(JsonToken.VALUE_NUMBER_INT, r.nextToken()); in _testStuffInObject()
51 assertToken(JsonToken.END_ARRAY, r.nextToken()); in _testStuffInObject()
53 assertToken(JsonToken.FIELD_NAME, r.nextToken()); in _testStuffInObject()
55 assertToken(JsonToken.START_OBJECT, r.nextToken()); in _testStuffInObject()
56 assertToken(JsonToken.END_OBJECT, r.nextToken()); in _testStuffInObject()
[all …]
DAsyncPointerFromContext563Test.java36 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testPointerWithAsyncParser()
41 assertToken(JsonToken.FIELD_NAME, p.nextToken()); // a in _testPointerWithAsyncParser()
44 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testPointerWithAsyncParser()
47 assertToken(JsonToken.FIELD_NAME, p.nextToken()); // array in _testPointerWithAsyncParser()
49 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testPointerWithAsyncParser()
51 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); // 1 in _testPointerWithAsyncParser()
53 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); // 2 in _testPointerWithAsyncParser()
55 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testPointerWithAsyncParser()
57 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); // 3 in _testPointerWithAsyncParser()
59 assertToken(JsonToken.END_ARRAY, p.nextToken()); in _testPointerWithAsyncParser()
[all …]
DAsyncMissingValuesInArrayTest.java68 assertEquals(JsonToken.START_ARRAY, p.nextToken()); in testArrayInnerComma()
70 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayInnerComma()
78 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in testArrayInnerComma()
80 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayInnerComma()
83 assertEquals(JsonToken.END_ARRAY, p.nextToken()); in testArrayInnerComma()
93 assertEquals(JsonToken.START_ARRAY, p.nextToken()); in testArrayLeadingComma()
100 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in testArrayLeadingComma()
102 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayLeadingComma()
105 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayLeadingComma()
108 assertEquals(JsonToken.END_ARRAY, p.nextToken()); in testArrayLeadingComma()
[all …]
DAsyncRootValuesTest.java21 _testTokenRootTokens(JsonToken.VALUE_TRUE, "true"); in testTokenRootTokens()
22 _testTokenRootTokens(JsonToken.VALUE_FALSE, "false"); in testTokenRootTokens()
23 _testTokenRootTokens(JsonToken.VALUE_NULL, "null"); in testTokenRootTokens()
25 _testTokenRootTokens(JsonToken.VALUE_TRUE, "true "); in testTokenRootTokens()
26 _testTokenRootTokens(JsonToken.VALUE_FALSE, "false "); in testTokenRootTokens()
27 _testTokenRootTokens(JsonToken.VALUE_NULL, "null "); in testTokenRootTokens()
30 private void _testTokenRootTokens(JsonToken expToken, String doc) throws Exception in _testTokenRootTokens()
44 private void _testTokenRootTokens(JsonToken expToken, JsonFactory f, in _testTokenRootTokens()
81 assertToken(JsonToken.START_ARRAY, r.nextToken()); in _testTokenRootSequence()
82 assertToken(JsonToken.VALUE_TRUE, r.nextToken()); in _testTokenRootSequence()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DTrailingCommasTest.java54 assertEquals(JsonToken.START_ARRAY, p.nextToken()); in testArrayBasic()
56 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayBasic()
59 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayBasic()
62 assertEquals(JsonToken.END_ARRAY, p.nextToken()); in testArrayBasic()
72 assertEquals(JsonToken.START_ARRAY, p.nextToken()); in testArrayInnerComma()
74 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayInnerComma()
82 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in testArrayInnerComma()
84 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in testArrayInnerComma()
87 assertEquals(JsonToken.END_ARRAY, p.nextToken()); in testArrayInnerComma()
97 assertEquals(JsonToken.START_ARRAY, p.nextToken()); in testArrayLeadingComma()
[all …]
DNonStandardAposQuotedNamesTest.java6 import com.fasterxml.jackson.core.JsonToken;
58 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testSingleQuotesDefault()
70 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testSingleQuotesDefault()
90 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testSingleQuotesEnabled()
92 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testSingleQuotesEnabled()
94 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testSingleQuotesEnabled()
96 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testSingleQuotesEnabled()
98 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _testSingleQuotesEnabled()
100 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testSingleQuotesEnabled()
102 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _testSingleQuotesEnabled()
[all …]
DValueConversionsTest.java4 import com.fasterxml.jackson.core.JsonToken;
21 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testAsInt()
25 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testAsInt()
28 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testAsInt()
30 assertToken(JsonToken.VALUE_NUMBER_FLOAT, p.nextToken()); in _testAsInt()
33 assertToken(JsonToken.VALUE_TRUE, p.nextToken()); in _testAsInt()
35 assertToken(JsonToken.VALUE_FALSE, p.nextToken()); in _testAsInt()
37 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in _testAsInt()
40 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _testAsInt()
43 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _testAsInt()
[all …]
DNextNameParserTest.java4 import com.fasterxml.jackson.core.JsonToken;
34 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testBasicNextName()
36 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testBasicNextName()
38 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testBasicNextName()
41 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testBasicNextName()
45 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testBasicNextName()
46 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _testBasicNextName()
48 assertToken(JsonToken.VALUE_FALSE, p.nextToken()); in _testBasicNextName()
49 assertToken(JsonToken.END_ARRAY, p.nextToken()); in _testBasicNextName()
52 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in _testBasicNextName()
[all …]
DNonStandardUnquotedNamesTest.java6 import com.fasterxml.jackson.core.JsonToken;
47 assertToken(JsonToken.START_OBJECT, p.nextToken()); in testUnquotedIssue510()
78 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testNonStandardNameChars()
80 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testNonStandardNameChars()
82 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _testNonStandardNameChars()
85 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testNonStandardNameChars()
87 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testNonStandardNameChars()
90 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testNonStandardNameChars()
92 assertToken(JsonToken.VALUE_TRUE, p.nextToken()); in _testNonStandardNameChars()
94 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testNonStandardNameChars()
[all …]
DParserWithObjectsTest.java47 assertToken(JsonToken.START_ARRAY, jp.nextToken()); in testIsClosed()
49 assertToken(JsonToken.VALUE_NUMBER_INT, jp.nextToken()); in testIsClosed()
50 assertToken(JsonToken.VALUE_NUMBER_INT, jp.nextToken()); in testIsClosed()
57 assertToken(JsonToken.VALUE_NUMBER_INT, jp.nextToken()); in testIsClosed()
58 assertToken(JsonToken.END_ARRAY, jp.nextToken()); in testIsClosed()
75 assertToken(JsonToken.START_ARRAY, jp.nextValue()); in _testNextValueBasic()
77 assertToken(JsonToken.VALUE_NUMBER_INT, jp.nextValue()); in _testNextValueBasic()
80 assertToken(JsonToken.END_ARRAY, jp.nextValue()); in _testNextValueBasic()
86 assertToken(JsonToken.START_OBJECT, jp.nextValue()); in _testNextValueBasic()
88 assertToken(JsonToken.VALUE_NUMBER_INT, jp.nextValue()); in _testNextValueBasic()
[all …]
DNextXxxAccessTest.java132 assertToken(JsonToken.START_OBJECT, p.currentToken()); in _testIsNextTokenName1()
135 assertToken(JsonToken.FIELD_NAME, p.currentToken()); in _testIsNextTokenName1()
139 assertToken(JsonToken.VALUE_NUMBER_INT, p.currentToken()); in _testIsNextTokenName1()
143 assertToken(JsonToken.FIELD_NAME, p.currentToken()); in _testIsNextTokenName1()
145 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testIsNextTokenName1()
149 assertToken(JsonToken.FIELD_NAME, p.currentToken()); in _testIsNextTokenName1()
153 assertToken(JsonToken.VALUE_STRING, p.currentToken()); in _testIsNextTokenName1()
156 assertToken(JsonToken.END_OBJECT, p.currentToken()); in _testIsNextTokenName1()
166 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testIsNextTokenName1()
168 assertToken(JsonToken.FIELD_NAME, p.currentToken()); in _testIsNextTokenName1()
[all …]
DSimpleParserTest.java70 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testIntern()
71 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testIntern()
148 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testKeywords()
166 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testKeywords()
179 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in _testKeywords()
186 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testKeywords()
193 assertToken(JsonToken.VALUE_TRUE, p.nextToken()); in _testKeywords()
196 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testKeywords()
198 assertToken(JsonToken.VALUE_FALSE, p.nextToken()); in _testKeywords()
200 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testKeywords()
[all …]
DLocationInObjectTest.java15 assertEquals(JsonToken.START_OBJECT, p.nextToken()); in testOffsetWithObjectFieldsUsingUTF8()
17 assertEquals(JsonToken.FIELD_NAME, p.nextToken()); in testOffsetWithObjectFieldsUsingUTF8()
19 assertEquals(JsonToken.VALUE_STRING, p.nextToken()); in testOffsetWithObjectFieldsUsingUTF8()
24 assertEquals(JsonToken.START_OBJECT, p.nextValue()); in testOffsetWithObjectFieldsUsingUTF8()
29 assertEquals(JsonToken.VALUE_STRING, p.nextValue()); in testOffsetWithObjectFieldsUsingUTF8()
31 assertEquals(JsonToken.END_OBJECT, p.nextToken()); in testOffsetWithObjectFieldsUsingUTF8()
35 assertEquals(JsonToken.START_ARRAY, p.nextValue()); in testOffsetWithObjectFieldsUsingUTF8()
38 assertEquals(JsonToken.VALUE_TRUE, p.nextValue()); in testOffsetWithObjectFieldsUsingUTF8()
41 assertEquals(JsonToken.VALUE_FALSE, p.nextValue()); in testOffsetWithObjectFieldsUsingUTF8()
43 assertEquals(JsonToken.END_ARRAY, p.nextToken()); in testOffsetWithObjectFieldsUsingUTF8()
[all …]
DArrayParsingTest.java18 assertToken(JsonToken.START_ARRAY, jp.nextToken()); in testValidEmpty()
19 assertToken(JsonToken.END_ARRAY, jp.nextToken()); in testValidEmpty()
29 assertToken(JsonToken.START_ARRAY, jp.nextToken()); in testInvalidEmptyMissingClose()
45 assertToken(JsonToken.START_ARRAY, jp.nextToken()); in testInvalidMissingFieldName()
61 assertToken(JsonToken.START_ARRAY, jp.nextToken()); in testInvalidExtraComma()
62 assertToken(JsonToken.VALUE_NUMBER_INT, jp.nextToken()); in testInvalidExtraComma()
118 assertToken(JsonToken.START_ARRAY, jp.nextToken()); in _testMissingValueByEnablingFeature()
119 assertToken(JsonToken.VALUE_STRING, jp.nextToken()); in _testMissingValueByEnablingFeature()
122 assertToken(JsonToken.VALUE_NULL, jp.nextToken()); in _testMissingValueByEnablingFeature()
123 assertToken(JsonToken.VALUE_NULL, jp.nextToken()); in _testMissingValueByEnablingFeature()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/
DObjectWriteTest.java52 assertEquals(JsonToken.START_OBJECT, jp.nextToken()); in testEmptyObjectWrite()
53 assertEquals(JsonToken.END_OBJECT, jp.nextToken()); in testEmptyObjectWrite()
90 assertEquals(JsonToken.START_OBJECT, jp.nextToken()); in testSimpleObjectWrite()
91 assertEquals(JsonToken.FIELD_NAME, jp.nextToken()); in testSimpleObjectWrite()
93 assertEquals(JsonToken.VALUE_NUMBER_INT, jp.nextToken()); in testSimpleObjectWrite()
95 assertEquals(JsonToken.FIELD_NAME, jp.nextToken()); in testSimpleObjectWrite()
97 assertEquals(JsonToken.VALUE_FALSE, jp.nextToken()); in testSimpleObjectWrite()
98 assertEquals(JsonToken.FIELD_NAME, jp.nextToken()); in testSimpleObjectWrite()
100 assertEquals(JsonToken.VALUE_STRING, jp.nextToken()); in testSimpleObjectWrite()
102 assertEquals(JsonToken.END_OBJECT, jp.nextToken()); in testSimpleObjectWrite()
[all …]
DSerializedStringWriteTest.java110 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _verifySimple()
112 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _verifySimple()
113 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _verifySimple()
115 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _verifySimple()
117 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _verifySimple()
119 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _verifySimple()
121 assertToken(JsonToken.END_OBJECT, p.nextToken()); in _verifySimple()
123 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _verifySimple()
124 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _verifySimple()
126 assertToken(JsonToken.VALUE_STRING, p.nextToken()); in _verifySimple()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DTestTreeTraversingParser.java54 assertToken(JsonToken.START_OBJECT, p.nextToken()); in testSimple()
56 assertEquals("Expected START_OBJECT", JsonToken.START_OBJECT.asString(), p.getText()); in testSimple()
58 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in testSimple()
62 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in testSimple()
67 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in testSimple()
71 assertToken(JsonToken.START_ARRAY, p.nextToken()); in testSimple()
73 assertEquals(JsonToken.START_ARRAY.asString(), p.getText()); in testSimple()
75 assertToken(JsonToken.VALUE_NUMBER_FLOAT, p.nextToken()); in testSimple()
80 assertToken(JsonToken.VALUE_NULL, p.nextToken()); in testSimple()
82 assertEquals(JsonToken.VALUE_NULL.asString(), p.getText()); in testSimple()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/
DPointerFromContextTest.java25 assertToken(JsonToken.START_OBJECT, p.nextToken()); in testViaParser()
28 assertToken(JsonToken.FIELD_NAME, p.nextToken()); // a in testViaParser()
31 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in testViaParser()
34 assertToken(JsonToken.FIELD_NAME, p.nextToken()); // array in testViaParser()
36 assertToken(JsonToken.START_ARRAY, p.nextToken()); in testViaParser()
38 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); // 1 in testViaParser()
40 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); // 2 in testViaParser()
42 assertToken(JsonToken.START_ARRAY, p.nextToken()); in testViaParser()
44 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); // 3 in testViaParser()
46 assertToken(JsonToken.END_ARRAY, p.nextToken()); in testViaParser()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/misc/
DParsingContext2525Test.java7 import com.fasterxml.jackson.core.JsonToken;
119 assertToken(JsonToken.START_ARRAY, p.nextToken()); in _testSimpleArrayUsingPathAsPointer()
123 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testSimpleArrayUsingPathAsPointer()
126 assertToken(JsonToken.END_ARRAY, p.nextToken()); in _testSimpleArrayUsingPathAsPointer()
138 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testSimpleObjectUsingPathAsPointer()
142 assertToken(JsonToken.FIELD_NAME, p.nextToken()); in _testSimpleObjectUsingPathAsPointer()
144 assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken()); in _testSimpleObjectUsingPathAsPointer()
148 assertToken(JsonToken.END_OBJECT, p.nextToken()); in _testSimpleObjectUsingPathAsPointer()
162 assertToken(JsonToken.START_OBJECT, p.nextToken()); in _testFullDocUsingPathAsPointer()
166 assertToken(JsonToken.FIELD_NAME, p.nextToken()); // a in _testFullDocUsingPathAsPointer()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/
DUntypedSerializationTest.java37 assertEquals(JsonToken.START_ARRAY, jp.nextToken()); in testFromArray()
39 assertEquals(JsonToken.VALUE_STRING, jp.nextToken()); in testFromArray()
42 assertEquals(JsonToken.VALUE_NUMBER_INT, jp.nextToken()); in testFromArray()
45 assertEquals(JsonToken.START_OBJECT, jp.nextToken()); in testFromArray()
46 assertEquals(JsonToken.FIELD_NAME, jp.nextToken()); in testFromArray()
49 assertEquals(JsonToken.VALUE_TRUE, jp.nextToken()); in testFromArray()
50 assertEquals(JsonToken.FIELD_NAME, jp.nextToken()); in testFromArray()
53 if (jp.nextToken() != JsonToken.START_ARRAY) { in testFromArray()
56 assertEquals(JsonToken.END_ARRAY, jp.nextToken()); in testFromArray()
57 assertEquals(JsonToken.END_OBJECT, jp.nextToken()); in testFromArray()
[all …]
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/base/
DParserMinimalBase.java145 protected JsonToken _currToken;
151 protected JsonToken _lastClearedToken;
184 @Override public abstract JsonToken nextToken() throws IOException; in nextToken()
186 @Override public JsonToken currentToken() { return _currToken; } in currentToken()
188 final JsonToken t = _currToken; in currentTokenId()
192 @Override public JsonToken getCurrentToken() { return _currToken; } in getCurrentToken()
196 final JsonToken t = _currToken; in getCurrentTokenId()
202 final JsonToken t = _currToken; in hasTokenId()
209 @Override public boolean hasToken(JsonToken t) { in hasToken()
213 …@Override public boolean isExpectedStartArrayToken() { return _currToken == JsonToken.START_ARRAY;… in isExpectedStartArrayToken()
[all …]

1234567891011