public class JsonParserTest extends Object
JsonParser
.Constructor and Description |
---|
JsonParserTest() |
Modifier and Type | Method and Description |
---|---|
void |
testArray()
Test for parsing a document.
|
void |
testDocument()
Test for parsing a document.
|
void |
testParseBadArray()
Test for parsing a document.
|
void |
testParseBadDocument()
Test for parsing a document.
|
void |
testParseBadDocument2()
Test for parsing a document.
|
void |
testParseBadDocument3()
Test for parsing a document.
|
void |
testParseBigLong()
Test parsing a integer value too big for an IntegerElement.
|
void |
testParseBigLongInArray()
Test parsing a integer value too big for an IntegerElement in an array.
|
void |
testParseBinData()
Test Parsing a BinData(..) element.
|
void |
testParseBinDataInArray()
Test Parsing a BinData(..) element.
|
void |
testParseBinDataStrict()
Test Parsing a BinData(..) element.
|
void |
testParseBinDataStrictHexType()
Test Parsing a BinData(..) element.
|
void |
testParseBinDataStrictInArray()
Test Parsing a BinData(..) element.
|
void |
testParseBinDataStrictInArrayHexType()
Test Parsing a BinData(..) element.
|
void |
testParseDbPointer()
Test Parsing a MinKey() element.
|
void |
testParseDbPointerInArray()
Test Parsing a MinKey() element.
|
void |
testParseHexData()
Test Parsing a HexData(..) element.
|
void |
testParseHexDataInArray()
Test Parsing a HexData(..) element.
|
void |
testParseIncompleteArray()
Test for parsing a document.
|
void |
testParseIncompleteDocument()
Test for parsing a document.
|
void |
testParseIncompleteDocument2()
Test for parsing a document.
|
void |
testParseISODate()
Test Parsing a ISODate(..) element.
|
void |
testParseISODateInArray()
Test Parsing a ISODate(..) element.
|
void |
testParseISODateInArrayStrict()
Test Parsing a ISODate(..) element.
|
void |
testParseISODateStrict()
Test Parsing a ISODate(..) element.
|
void |
testParseMaxKey()
Test Parsing a MaxKey() element.
|
void |
testParseMaxKeyInArray()
Test Parsing a MaxKey() element.
|
void |
testParseMaxKeyInArrayNoParens()
Test Parsing a MaxKey() element.
|
void |
testParseMaxKeyInArrayStrict()
Test Parsing a MaxKey() element.
|
void |
testParseMaxKeyNoParens()
Test Parsing a MaxKey() element.
|
void |
testParseMaxKeyStrict()
Test Parsing a MaxKey() element.
|
void |
testParseMinKey()
Test Parsing a MinKey() element.
|
void |
testParseMinKeyInArray()
Test Parsing a MinKey() element.
|
void |
testParseMinKeyInArrayNoParens()
Test Parsing a MinKey() element.
|
void |
testParseMinKeyInArrayStrict()
Test Parsing a MinKey() element.
|
void |
testParseMinKeyNoParens()
Test Parsing a MinKey() element.
|
void |
testParseMinKeyStrict()
Test Parsing a MinKey() element.
|
void |
testParseNegativeLong()
Test parsing a integer value too small for an IntegerElement.
|
void |
testParseNegativeLongInArray()
Test parsing a integer value too small for an IntegerElement in an array.
|
void |
testParseNonDocumentOrArray()
Test for parsing a document.
|
void |
testParseNumberLong()
Test Parsing a NumberLong(..) element.
|
void |
testParseNumberLongInArray()
Test Parsing a NumberLong(..) element.
|
void |
testParseObjectId()
Test Parsing a ObjectId(..) element.
|
void |
testParseObjectIdInArray()
Test Parsing a ObjectId(..) element.
|
void |
testParseObjectIdInArrayStrict()
Test Parsing a ObjectId(..) element.
|
void |
testParseObjectIdStrict()
Test Parsing a ObjectId(..) element.
|
void |
testParseRegularExpressionInArrayStrict()
Test Parsing a {$regex:"
|
void |
testParseRegularExpressionStrict()
Test Parsing a {$regex:"
|
void |
testParseTimestamp()
Test Parsing a Timestamp(..) element.
|
void |
testParseTimestampInArray()
Test Parsing a Timestamp(..) element.
|
void |
testParseTimestampInArrayStrict()
Test Parsing a Timestamp(..) element.
|
void |
testParseTimestampStrict()
Test Parsing a Timestamp(..) element.
|
public void testArray() throws IOException, ParseException
IOException
- On a test failure.ParseException
- On a test failure.public void testDocument() throws IOException, ParseException
IOException
- On a test failure.ParseException
- On a test failure.public void testParseBadArray() throws ParseException
ParseException
- On a test failure.public void testParseBadDocument() throws ParseException
ParseException
- On a test failure.public void testParseBadDocument2() throws ParseException
ParseException
- On a test failure.public void testParseBadDocument3() throws ParseException
ParseException
- On a test failure.public void testParseBigLong() throws ParseException
ParseException
- On a test failure.public void testParseBigLongInArray() throws ParseException
ParseException
- On a test failure.public void testParseBinData() throws ParseException, IllegalArgumentException, UnsupportedEncodingException
ParseException
- On a test failure.UnsupportedEncodingException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseBinDataInArray() throws ParseException, IllegalArgumentException, UnsupportedEncodingException
ParseException
- On a test failure.UnsupportedEncodingException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseBinDataStrict() throws ParseException, IllegalArgumentException, UnsupportedEncodingException
ParseException
- On a test failure.UnsupportedEncodingException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseBinDataStrictHexType() throws ParseException, IllegalArgumentException, UnsupportedEncodingException
ParseException
- On a test failure.UnsupportedEncodingException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseBinDataStrictInArray() throws ParseException, IllegalArgumentException, UnsupportedEncodingException
ParseException
- On a test failure.UnsupportedEncodingException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseBinDataStrictInArrayHexType() throws ParseException, IllegalArgumentException, UnsupportedEncodingException
ParseException
- On a test failure.UnsupportedEncodingException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseDbPointer() throws ParseException
ParseException
- On a test failure.public void testParseDbPointerInArray() throws ParseException
ParseException
- On a test failure.public void testParseHexData() throws ParseException, IllegalArgumentException
ParseException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseHexDataInArray() throws ParseException, IllegalArgumentException
ParseException
- On a test failure.IllegalArgumentException
- On a test failure.public void testParseIncompleteArray() throws ParseException
ParseException
- On a test failure.public void testParseIncompleteDocument() throws ParseException
ParseException
- On a test failure.public void testParseIncompleteDocument2() throws ParseException
ParseException
- On a test failure.public void testParseISODate() throws ParseException, ParseException
ParseException
- On a test failure.ParseException
- On a test failure.public void testParseISODateInArray() throws ParseException, ParseException
ParseException
- On a test failure.ParseException
- On a test failure.public void testParseISODateInArrayStrict() throws ParseException, ParseException
ParseException
- On a test failure.ParseException
- On a test failure.public void testParseISODateStrict() throws ParseException, ParseException
ParseException
- On a test failure.ParseException
- On a test failure.public void testParseMaxKey() throws ParseException
ParseException
- On a test failure.public void testParseMaxKeyInArray() throws ParseException
ParseException
- On a test failure.public void testParseMaxKeyInArrayNoParens() throws ParseException
ParseException
- On a test failure.public void testParseMaxKeyInArrayStrict() throws ParseException
ParseException
- On a test failure.public void testParseMaxKeyNoParens() throws ParseException
ParseException
- On a test failure.public void testParseMaxKeyStrict() throws ParseException
ParseException
- On a test failure.public void testParseMinKey() throws ParseException
ParseException
- On a test failure.public void testParseMinKeyInArray() throws ParseException
ParseException
- On a test failure.public void testParseMinKeyInArrayNoParens() throws ParseException
ParseException
- On a test failure.public void testParseMinKeyInArrayStrict() throws ParseException
ParseException
- On a test failure.public void testParseMinKeyNoParens() throws ParseException
ParseException
- On a test failure.public void testParseMinKeyStrict() throws ParseException
ParseException
- On a test failure.public void testParseNegativeLong() throws ParseException
ParseException
- On a test failure.public void testParseNegativeLongInArray() throws ParseException
ParseException
- On a test failure.public void testParseNonDocumentOrArray() throws ParseException
ParseException
- On a test failure.public void testParseNumberLong() throws ParseException
ParseException
- On a test failure.public void testParseNumberLongInArray() throws ParseException
ParseException
- On a test failure.public void testParseObjectId() throws ParseException
ParseException
- On a test failure.public void testParseObjectIdInArray() throws ParseException
ParseException
- On a test failure.public void testParseObjectIdInArrayStrict() throws ParseException
ParseException
- On a test failure.public void testParseObjectIdStrict() throws ParseException
ParseException
- On a test failure.public void testParseRegularExpressionInArrayStrict() throws ParseException
ParseException
- On a test failure.public void testParseRegularExpressionStrict() throws ParseException
ParseException
- On a test failure.public void testParseTimestamp() throws ParseException
ParseException
- On a test failure.public void testParseTimestampInArray() throws ParseException
ParseException
- On a test failure.public void testParseTimestampInArrayStrict() throws ParseException
ParseException
- On a test failure.public void testParseTimestampStrict() throws ParseException
ParseException
- On a test failure.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.