public class

TestJsonParser

extends BaseTest
java.lang.Object
   ↳ TestCase
     ↳ com.fasterxml.jackson.test.BaseTest
       ↳ com.fasterxml.jackson.core.json.TestJsonParser

Class Overview

Set of basic unit tests for verifying that the basic parser functionality works as expected.

Summary

[Expand]
Inherited Constants
From class com.fasterxml.jackson.test.BaseTest
Public Constructors
TestJsonParser()
Public Methods
void testBytesAsSource()
Simple unit test that verifies that passing in a byte array as source works as expected.
void testConfig()
void testInterningWithReaders()
void testInterningWithStreams()
void testInvalidKeywords()
void testKeywords()
Unit test that verifies that 3 basic keywords (null, true, false) are properly parsed in various contexts.
void testLongText()
Unit test that verifies that long text segments are handled correctly; mostly to stress-test underlying segment-based text buffer(s).
void testNameEscaping()
void testSkipping()
void testSpecExampleFully()
Unit test that verifies that the spec example JSON is completely parsed, and proper values are given for contents of all events/tokens.
void testSpecExampleSkipping()
This basic unit test verifies that example given in the Json specification (RFC-4627 or later) is properly parsed at high-level, without verifying values.
void testUtf8BOMHandling()
[Expand]
Inherited Methods
From class com.fasterxml.jackson.test.BaseTest
From class java.lang.Object

Public Constructors

public TestJsonParser ()

Public Methods

public void testBytesAsSource ()

Simple unit test that verifies that passing in a byte array as source works as expected.

Throws
Exception

public void testConfig ()

Throws
Exception

public void testInterningWithReaders ()

Throws
Exception

public void testInterningWithStreams ()

Throws
Exception

public void testInvalidKeywords ()

Throws
Exception

public void testKeywords ()

Unit test that verifies that 3 basic keywords (null, true, false) are properly parsed in various contexts.

Throws
Exception

public void testLongText ()

Unit test that verifies that long text segments are handled correctly; mostly to stress-test underlying segment-based text buffer(s).

Throws
Exception

public void testNameEscaping ()

Throws
IOException

public void testSkipping ()

Throws
Exception

public void testSpecExampleFully ()

Unit test that verifies that the spec example JSON is completely parsed, and proper values are given for contents of all events/tokens.

Throws
Exception

public void testSpecExampleSkipping ()

This basic unit test verifies that example given in the Json specification (RFC-4627 or later) is properly parsed at high-level, without verifying values.

Throws
Exception

public void testUtf8BOMHandling ()

Throws
Exception