public class ParsingTest
extends TestCase
Constructor and Description |
---|
ParsingTest() |
Modifier and Type | Method and Description |
---|---|
void |
test64BitHexValues() |
void |
testParsingArrays() |
void |
testParsingHexNumbers() |
void |
testParsingIntegersWithAdditionalPrecisionYieldDoubles() |
void |
testParsingLargeHexValues() |
void |
testParsingLiterals() |
void |
testParsingNegativeZero() |
void |
testParsingNoObjects() |
void |
testParsingNumbersThatAreBestRepresentedAsDoubles() |
void |
testParsingNumbersThatAreBestRepresentedAsIntegers() |
void |
testParsingNumbersThatAreBestRepresentedAsLongs()
Unfortunately the original implementation attempts to figure out what
Java number type best suits an input value.
|
void |
testParsingObjects() |
void |
testParsingOctalNumbers() |
void |
testParsingQuotedStrings() |
void |
testParsingSingleQuotedStrings() |
void |
testParsingUnquotedStrings() |
void |
testParsingWithCommentsAndWhitespace() |
void |
testSyntaxProblemEmptyString() |
void |
testSyntaxProblemMalformedObject() |
void |
testSyntaxProblemUnterminatedArray() |
void |
testSyntaxProblemUnterminatedObject() |
public void testParsingNoObjects()
public void testParsingLiterals() throws JSONException
JSONException
public void testParsingQuotedStrings() throws JSONException
JSONException
public void testParsingSingleQuotedStrings() throws JSONException
JSONException
public void testParsingUnquotedStrings() throws JSONException
JSONException
public void testParsingNumbersThatAreBestRepresentedAsLongs() throws JSONException
JSONException
public void testParsingNumbersThatAreBestRepresentedAsIntegers() throws JSONException
JSONException
public void testParsingNegativeZero() throws JSONException
JSONException
public void testParsingIntegersWithAdditionalPrecisionYieldDoubles() throws JSONException
JSONException
public void testParsingNumbersThatAreBestRepresentedAsDoubles() throws JSONException
JSONException
public void testParsingOctalNumbers() throws JSONException
JSONException
public void testParsingHexNumbers() throws JSONException
JSONException
public void testParsingLargeHexValues() throws JSONException
JSONException
public void test64BitHexValues() throws JSONException
JSONException
public void testParsingWithCommentsAndWhitespace() throws JSONException
JSONException
public void testParsingArrays() throws JSONException
JSONException
public void testParsingObjects() throws JSONException
JSONException
public void testSyntaxProblemUnterminatedObject()
public void testSyntaxProblemEmptyString()
public void testSyntaxProblemUnterminatedArray()
public void testSyntaxProblemMalformedObject()