Home
last modified time | relevance | path

Searched refs:JSON_F (Results 1 – 25 of 52) sorted by relevance

123

/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/
DBasicParserFilteringTest.java70 private final JsonFactory JSON_F = new JsonFactory(); field in BasicParserFilteringTest
77 JsonParser p = JSON_F.createParser(SIMPLE); in testNonFiltering()
78 String result = readAndWrite(JSON_F, p); in testNonFiltering()
84 JsonParser p0 = JSON_F.createParser(SIMPLE); in testSingleMatchFilteringWithoutPath()
90 String result = readAndWrite(JSON_F, p); in testSingleMatchFilteringWithoutPath()
98 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath1()
104 String result = readAndWrite(JSON_F, p); in testSingleMatchFilteringWithPath1()
112 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath2()
118 String result = readAndWrite(JSON_F, p); in testSingleMatchFilteringWithPath2()
126 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath3()
[all …]
DBasicGeneratorFilteringTest.java104 private final JsonFactory JSON_F = new JsonFactory(); field in BasicGeneratorFilteringTest
112 writeJsonDoc(JSON_F, JSON, gen); in testNonFiltering()
127 writeJsonDoc(JSON_F, JSON, gen); in testSingleMatchFilteringWithoutPath()
154 writeJsonDoc(JSON_F, JSON, gen); in testSingleMatchFilteringWithPath()
176 writeJsonDoc(JSON_F, JSON, gen); in testSingleMatchFilteringWithPathSkippedArray()
295 writeJsonDoc(JSON_F, JSON, gen); in testMultipleMatchFilteringWithPath1()
304 writeJsonDoc(JSON_F, JSON, gen); in testMultipleMatchFilteringWithPath1()
311 writeJsonDoc(JSON_F, JSON, gen); in testMultipleMatchFilteringWithPath1()
323 writeJsonDoc(JSON_F, JSON, gen); in testMultipleMatchFilteringWithPath2()
336 writeJsonDoc(JSON_F, JSON, gen); in testMultipleMatchFilteringWithPath3()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/
DGeneratorBasicTest.java16 private final JsonFactory JSON_F = new JsonFactory(); field in GeneratorBasicTest
30 gen = JSON_F.createGenerator(new OutputStreamWriter(bout, "UTF-8")); in testStringWrite()
32 gen = JSON_F.createGenerator(bout, JsonEncoding.UTF8); in testStringWrite()
45 … JsonParser jp = JSON_F.createParser(new ByteArrayInputStream(bout.toByteArray())); in testStringWrite()
84 JsonGenerator gen = JSON_F.createGenerator(sw); in testBooleanWrite()
109 JsonGenerator gen = JSON_F.createGenerator(sw); in testNullWrite()
142 gen = JSON_F.createGenerator(bytes); in _testRootIntsWrite()
144 gen = JSON_F.createGenerator(sw); in _testRootIntsWrite()
182 gen = JSON_F.createGenerator(bytes); in _testFieldValueWrites()
184 gen = JSON_F.createGenerator(sw); in _testFieldValueWrites()
[all …]
DGeneratorMiscTest.java18 private final JsonFactory JSON_F = new JsonFactory(); field in GeneratorMiscTest
31 JSON_F.createGenerator(new StringWriter()) in testIsClosed()
32 : JSON_F.createGenerator(new ByteArrayOutputStream(), JsonEncoding.UTF8) in testIsClosed()
51 JsonGenerator gen = JSON_F.createGenerator(sw); in testSimpleWriteObject()
68 gen = JSON_F.createGenerator(sw); in testSimpleWriteObject()
79 gen = JSON_F.createGenerator(sw); in testSimpleWriteObject()
99 JsonGenerator gen = JSON_F.createGenerator(sw); in testRaw()
121 JsonGenerator gen = JSON_F.createGenerator(sw); in testRawValue()
154 _testLongerObjects(JSON_F, 0); in testLongerObjects()
155 _testLongerObjects(JSON_F, 1); in testLongerObjects()
[all …]
DWriteTypeIdTest.java15 private final JsonFactory JSON_F = sharedStreamFactory(); field in WriteTypeIdTest
20 JsonGenerator gen = JSON_F.createGenerator(sw); in testNoNativeTypeIdForJson()
43 JsonGenerator gen = JSON_F.createGenerator(sw); in testBasicTypeIdWriteForObject()
54 gen = JSON_F.createGenerator(sw); in testBasicTypeIdWriteForObject()
66 gen = JSON_F.createGenerator(sw); in testBasicTypeIdWriteForObject()
78 gen = JSON_F.createGenerator(sw); in testBasicTypeIdWriteForObject()
100 JsonGenerator gen = JSON_F.createGenerator(sw); in testBasicTypeIdWriteForArray()
113 gen = JSON_F.createGenerator(sw); in testBasicTypeIdWriteForArray()
DPrettyPrinterTest.java43 private final JsonFactory JSON_F = sharedStreamFactory(); field in PrettyPrinterTest
53 JsonGenerator gen = useBytes ? JSON_F.createGenerator(bytes) in testObjectCount()
54 : JSON_F.createGenerator(sw); in testObjectCount()
78 JsonGenerator gen = useBytes ? JSON_F.createGenerator(bytes) in testArrayCount()
79 : JSON_F.createGenerator(sw); in testArrayCount()
99 JsonGenerator gen = JSON_F.createGenerator(sw); in testSimpleDocWithDefault()
109 JsonGenerator gen = JSON_F.createGenerator(sw); in testSimpleDocWithMinimal()
137 assertEquals("{} {} []", _generateRoot(JSON_F, null)); in testCustomRootSeparatorWithPP()
139 assertEquals("{ } { } [ ]", _generateRoot(JSON_F, new DefaultPrettyPrinter())); in testCustomRootSeparatorWithPP()
141 assertEquals("{ }|{ }|[ ]", _generateRoot(JSON_F, new DefaultPrettyPrinter("|"))); in testCustomRootSeparatorWithPP()
[all …]
DSerializedStringWriteTest.java18 private final JsonFactory JSON_F = new JsonFactory(); field in SerializedStringWriteTest
27 JsonGenerator gen = JSON_F.createGenerator(sw); in testSimpleFieldNames()
31 _verifySimple(JSON_F.createParser(json)); in testSimpleFieldNames()
35 gen = JSON_F.createGenerator(out, JsonEncoding.UTF8); in testSimpleFieldNames()
39 _verifySimple(JSON_F.createParser(jsonB)); in testSimpleFieldNames()
46 JsonGenerator gen = JSON_F.createGenerator(sw); in testSimpleValues()
49 _verifySimpleValues(JSON_F.createParser(new StringReader(sw.toString()))); in testSimpleValues()
53 gen = JSON_F.createGenerator(out, JsonEncoding.UTF8); in testSimpleValues()
56 _verifySimpleValues(JSON_F.createParser(new ByteArrayInputStream(out.toByteArray()))); in testSimpleValues()
DRawStringWriteTest.java13 private final JsonFactory JSON_F = sharedStreamFactory(); field in RawStringWriteTest
23 JsonGenerator jgen = JSON_F.createGenerator(out, JsonEncoding.UTF8); in testUtf8RawStrings()
33 JsonParser jp = JSON_F.createParser(json); in testUtf8RawStrings()
55 JsonGenerator jgen = JSON_F.createGenerator(out, JsonEncoding.UTF8); in testUtf8StringsWithEscaping()
67 JsonParser jp = JSON_F.createParser(json); in testUtf8StringsWithEscaping()
83 _testWriteRawWithSerializable(JSON_F, true); in testWriteRawWithSerializable()
84 _testWriteRawWithSerializable(JSON_F, false); in testWriteRawWithSerializable()
DUTF8GeneratorTest.java14 private final JsonFactory JSON_F = new JsonFactory(); field in UTF8GeneratorTest
32 JsonParser p = JSON_F.createParser(bytes.toByteArray()); in testUtf8Issue462()
48 JsonGenerator g = JSON_F.createGenerator(out); in testSurrogatesWithRaw()
56 JsonParser jp = JSON_F.createParser(JSON); in testSurrogatesWithRaw()
73 JsonGenerator g = JSON_F.createGenerator(out); in testFilteringWithEscapedChars()
102 JsonParser p = JSON_F.createParser(out.toByteArray()); in testFilteringWithEscapedChars()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/
DCustomQuoteCharTest.java11 final JsonFactory JSON_F = streamFactoryBuilder() field in CustomQuoteCharTest
34 g = createGenerator(JSON_F, w); in testBasicAposWithCharBased()
41 g = createGenerator(JSON_F, w); in testBasicAposWithCharBased()
54 g = createGenerator(JSON_F, out); in testBasicAposWithByteBased()
61 g = createGenerator(JSON_F, out); in testBasicAposWithByteBased()
74 g = createGenerator(JSON_F, w); in testAposQuotingWithCharBased()
82 g = createGenerator(JSON_F, w); in testAposQuotingWithCharBased()
95 g = createGenerator(JSON_F, out); in testAposQuotingWithByteBased()
103 g = createGenerator(JSON_F, out); in testAposQuotingWithByteBased()
DTestCharEscaping.java40 private final static JsonFactory JSON_F = new JsonFactory(); field in TestCharEscaping
55 JsonParser jp = createParser(JSON_F, readMode, DOC); in _testMissingEscaping()
82 JsonParser jp = createParser(JSON_F, readMode, DOC); in _testSimpleEscaping()
90 jp = createParser(JSON_F, readMode, "[\"NULL:\\u0000!\"]"); in _testSimpleEscaping()
97 jp = createParser(JSON_F, readMode, "[\"\\u0123\"]"); in _testSimpleEscaping()
104 jp = createParser(JSON_F, readMode, "[\"\\u0041\\u0043\"]"); in _testSimpleEscaping()
125 JsonParser p = createParser(JSON_F, readMode, "{"+inputKey+" : 123456789} "); in _testSimpleNameEscaping()
147 JsonParser jp = createParser(JSON_F, readMode, DOC); in _testInvalid()
172 JsonParser jp = createParser(JSON_F, readMode, DOC); in _test8DigitSequence()
182 JsonGenerator jgen = JSON_F.createGenerator(writer); in testEscapesForCharArrays()
[all …]
DJsonFactoryTest.java113 final JsonFactory JSON_F = sharedStreamFactory(); field in JsonFactoryTest
118 assertNull(JSON_F.getCodec()); in testGeneratorFeatures()
141 assertFalse(JSON_F.requiresCustomCodec()); in testFactoryFeatures()
142 assertFalse(JSON_F.canHandleBinaryNatively()); in testFactoryFeatures()
147 assertNull(JSON_F.getInputDecorator()); in testFactoryMisc()
148 assertNull(JSON_F.getOutputDecorator()); in testFactoryMisc()
150 assertFalse(JSON_F.canUseSchema(null)); in testFactoryMisc()
151 assertFalse(JSON_F.canUseSchema(new BogusSchema())); in testFactoryMisc()
153 assertNull(JSON_F.getFormatReadFeatureType()); in testFactoryMisc()
154 assertNull(JSON_F.getFormatWriteFeatureType()); in testFactoryMisc()
[all …]
DGeneratorFeaturesTest.java16 private final JsonFactory JSON_F = new JsonFactory(); field in GeneratorFeaturesTest
21 JsonGenerator g = JSON_F.createGenerator(new StringWriter()); in testConfigDefaults()
40 JsonGenerator g = JSON_F.createGenerator(new StringWriter()); in testConfigOverrides()
243 _testFieldNameQuotingEnabled(JSON_F, true, true, "{\"foo\":1}"); in testFieldNameQuotingEnabled()
244 _testFieldNameQuotingEnabled(JSON_F, false, true, "{\"foo\":1}"); in testFieldNameQuotingEnabled()
247 _testFieldNameQuotingEnabled(JSON_F, true, false, "{foo:1}"); in testFieldNameQuotingEnabled()
248 _testFieldNameQuotingEnabled(JSON_F, false, false, "{foo:1}"); in testFieldNameQuotingEnabled()
292 JsonGenerator g = JSON_F.createGenerator(w); in testChangeOnGenerator()
300 g = JSON_F.createGenerator(w); in testChangeOnGenerator()
DJsonParserClosedCaseTest.java25 private static final JsonFactory JSON_F = new JsonFactory(); field in JsonParserClosedCaseTest
40 (ReaderBasedJsonParser) JSON_F.createParser(new InputStreamReader(inputStream)), in parsers()
41 (UTF8StreamJsonParser) JSON_F.createParser(inputStream), in parsers()
42 (UTF8DataInputJsonParser) JSON_F.createParser(new MockDataInput("{}")) in parsers()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DParserFeaturesTest.java13 private final JsonFactory JSON_F = sharedStreamFactory(); field in ParserFeaturesTest
17 assertTrue(JSON_F.isEnabled(StreamReadFeature.AUTO_CLOSE_SOURCE)); in testDefaultSettings()
19 _testDefaultSettings(createParser(JSON_F, MODE_INPUT_STREAM, "{}")); in testDefaultSettings()
20 _testDefaultSettings(createParser(JSON_F, MODE_READER, "{}")); in testDefaultSettings()
21 _testDefaultSettings(createParser(JSON_F, MODE_DATA_INPUT, "{}")); in testDefaultSettings()
27 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_COMMENTS)); in testDeprecatedDefaultSettings()
28 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS)); in testDeprecatedDefaultSettings()
29 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES)); in testDeprecatedDefaultSettings()
30 assertFalse(JSON_F.isEnabled(JsonParser.Feature.ALLOW_SINGLE_QUOTES)); in testDeprecatedDefaultSettings()
DNonStandardNumberParsingTest.java9 private final JsonFactory JSON_F = JsonFactory.builder() field in NonStandardNumberParsingTest
30 _testLeadingDotInDecimalAllowed(JSON_F, MODE_DATA_INPUT); in testLeadingDotInDecimalAllowedAsync()
34 _testLeadingDotInDecimalAllowed(JSON_F, MODE_INPUT_STREAM); in testLeadingDotInDecimalAllowedBytes()
35 _testLeadingDotInDecimalAllowed(JSON_F, MODE_INPUT_STREAM_THROTTLED); in testLeadingDotInDecimalAllowedBytes()
39 _testLeadingDotInDecimalAllowed(JSON_F, MODE_READER); in testLeadingDotInDecimalAllowedReader()
DLocationOffsetsTest.java10 final JsonFactory JSON_F = new JsonFactory(); field in LocationOffsetsTest
20 p = JSON_F.createParser(DOC); in testSimpleInitialOffsets()
39 p = JSON_F.createParser(DOC.getBytes("UTF-8")); in testSimpleInitialOffsets()
66 p = JSON_F.createParser(b, 3, b.length-5); in testOffsetWithInputOffset()
92 p = JSON_F.createParser(b); in testOffsetWithoutInputOffset()
120 JsonParser p = createParser(JSON_F, MODE_DATA_INPUT, "[\"text\"]"); in testWithLazyStringReadDataInput()
131 JsonParser p = createParser(JSON_F, readMode, "[\"text\"]"); in _testWithLazyStringRead()
158 p = JSON_F.createParser(b); in testUtf8Bom()
184 p = JSON_F.createParser(b); in testUtf8BomWithPadding()
210 p = JSON_F.createParser(b); in testUtf8BomWithInputOffset()
[all …]
DDataInputTest.java11 private final JsonFactory JSON_F = new JsonFactory(); field in DataInputTest
15 JsonParser p = createParser(JSON_F, MODE_DATA_INPUT, "[ 1 ] "); in testEOFAfterArray()
25 JsonParser p = createParser(JSON_F, MODE_DATA_INPUT, "{ \"value\" : true }"); in testEOFAfterObject()
36 JsonParser p = createParser(JSON_F, MODE_DATA_INPUT, "\"foobar\" "); in testEOFAfterScalar()
/external/jackson-core/src/test/java/com/fasterxml/jackson/failing/
DSurrogate223Test.java15 private final JsonFactory JSON_F = new JsonFactory(); field in Surrogate223Test
29 g = JSON_F.createGenerator(out); in testSurrogatesByteBacked()
37 JsonParser p = JSON_F.createParser(out.toByteArray()); in testSurrogatesByteBacked()
45 g = JSON_F.createGenerator(out); in testSurrogatesByteBacked()
66 g = JSON_F.createGenerator(out); in testSurrogatesCharBacked()
74 JsonParser p = JSON_F.createParser(out.toString()); in testSurrogatesCharBacked()
82 g = JSON_F.createGenerator(out); in testSurrogatesCharBacked()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/
DAsyncScopeMatchingTest.java15 private final JsonFactory JSON_F = new JsonFactory(); field in AsyncScopeMatchingTest
19 AsyncReaderWrapper p = asyncForBytes(JSON_F, 3, _jsonDoc("[ 1, 2 "), 0); in testUnclosedArray()
35 AsyncReaderWrapper p = asyncForBytes(JSON_F, 3, _jsonDoc("{ \"key\" : 3 "), 0); in testUnclosedObject()
51 AsyncReaderWrapper p = asyncForBytes(JSON_F, 3, _jsonDoc(JSON), 0); in testEOFInName()
70 AsyncReaderWrapper p = asyncForBytes(JSON_F, 3, _jsonDoc(JSON), 0); in testMismatchArrayToObject()
86 AsyncReaderWrapper p = asyncForBytes(JSON_F, 3, _jsonDoc(JSON), 0); in testMismatchObjectToArray()
102 AsyncReaderWrapper p = asyncForBytes(JSON_F, 3, _jsonDoc(JSON), 0); in testMisssingColon()
DAsyncCharEscapingTest.java13 private final JsonFactory JSON_F = new JsonFactory(); field in AsyncCharEscapingTest
32 AsyncReaderWrapper r = asyncForBytes(JSON_F, readSize, doc, offset); in _testMissingLinefeedEscaping()
62 AsyncReaderWrapper r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping()
71 r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping()
79 r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping()
87 r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping()
97 AsyncReaderWrapper r = asyncForBytes(JSON_F, 1, _jsonDoc(DOC), 1); in test8DigitSequence()
DAsyncInvalidCharsTest.java15 private final JsonFactory JSON_F = new JsonFactory(); field in AsyncInvalidCharsTest
48 AsyncReaderWrapper p = asyncForBytes(JSON_F, readSize, doc, offset); in _testUTF8BomOk()
85 AsyncReaderWrapper p = asyncForBytes(JSON_F, readSize, doc, offset); in _testUTF8BomFail()
109 AsyncReaderWrapper p = asyncForBytes(JSON_F, readSize, _jsonDoc(doc), offset); in _testHandlingOfInvalidSpace()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/util/
DTestDefaultPrettyPrinter.java11 private final JsonFactory JSON_F = new JsonFactory(); field in TestDefaultPrettyPrinter
92 JsonGenerator gen = JSON_F.createGenerator(sw); in testRootSeparator()
102 gen = JSON_F.createGenerator(bytes); in testRootSeparator()
117 gen = JSON_F.createGenerator(sw); in testRootSeparator()
142 gen = JSON_F.createGenerator(bytes); in _printTestData()
146 gen = JSON_F.createGenerator(sw); in _printTestData()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/format/
DDataFormatMatcherTest.java13 private final JsonFactory JSON_F = new JsonFactory(); field in DataFormatMatcherTest
34 JSON_F, MatchStrength.NO_MATCH); in testCreatesDataFormatMatcherTwo()
45 JSON_F, in testGetMatchedFormatNameReturnsNameWhenMatches()
51 DataFormatDetector df0 = new DataFormatDetector(JSON_F); in testDetectorConfiguration()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/base64/
DBase64GenerationTest.java46 private final JsonFactory JSON_F = new JsonFactory(); field in Base64GenerationTest
50 _testStreamingWrites(JSON_F, true); in testStreamingBinaryWrites()
51 _testStreamingWrites(JSON_F, false); in testStreamingBinaryWrites()
99 g = JSON_F.createGenerator(sw); in testBinaryAsEmbeddedObject()
105 g = JSON_F.createGenerator(bytes); in testBinaryAsEmbeddedObject()

123