public class JsonReaderTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.modeshape.schematic.document.Document |
doc |
protected boolean |
print |
protected org.modeshape.schematic.internal.document.JsonReader |
reader |
| Constructor and Description |
|---|
JsonReaderTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTest() |
protected void |
assertField(String name,
Object value) |
void |
beforeTest() |
void |
shouldNotParseJsonWithInvalidArray() |
void |
shouldNotParseJsonWithInvalidComments() |
void |
shouldParseDocumentWithMultipleFieldsAndExtraDelimiters() |
void |
shouldParseDocumentWithSingleFieldWithBooleanFalseValue() |
void |
shouldParseDocumentWithSingleFieldWithBooleanTrueValue() |
void |
shouldParseDocumentWithSingleFieldWithDoubleValue() |
void |
shouldParseDocumentWithSingleFieldWithIntegerValue() |
void |
shouldParseDocumentWithSingleFieldWithLongValue() |
void |
shouldParseDocumentWithSingleFieldWithStringValue() |
void |
shouldParseEmptyDocument() |
void |
shouldParseEmptyDocumentWithEmbeddedWhitespace() |
void |
shouldParseEmptyDocumentWithLeadingWhitespace() |
void |
shouldParseJsonWithComments() |
void |
shouldParseJsonWithControlCharactersInFieldValues() |
void |
shouldParseMultipleDocuments() |
void |
shouldParseNonUnicodeEscapeSequence() |
protected org.modeshape.schematic.internal.document.JsonReader reader
protected boolean print
protected org.modeshape.schematic.document.Document doc
public JsonReaderTest()
public void beforeTest()
public void afterTest()
public void shouldParseEmptyDocument() throws Exception
Exceptionpublic void shouldParseEmptyDocumentWithLeadingWhitespace() throws Exception
Exceptionpublic void shouldParseEmptyDocumentWithEmbeddedWhitespace() throws Exception
Exceptionpublic void shouldParseDocumentWithSingleFieldWithStringValue() throws Exception
Exceptionpublic void shouldParseDocumentWithSingleFieldWithBooleanFalseValue() throws Exception
Exceptionpublic void shouldParseDocumentWithSingleFieldWithBooleanTrueValue() throws Exception
Exceptionpublic void shouldParseDocumentWithSingleFieldWithIntegerValue() throws Exception
Exceptionpublic void shouldParseDocumentWithSingleFieldWithLongValue() throws Exception
Exceptionpublic void shouldParseDocumentWithSingleFieldWithDoubleValue() throws Exception
Exceptionpublic void shouldParseDocumentWithMultipleFieldsAndExtraDelimiters() throws Exception
Exceptionpublic void shouldParseMultipleDocuments() throws Exception
Exception@FixFor(value="MODE-2309") public void shouldParseJsonWithControlCharactersInFieldValues() throws Exception
Exception@FixFor(value="MODE-2082") public void shouldParseJsonWithComments() throws Exception
Exception@FixFor(value="MODE-2082") public void shouldNotParseJsonWithInvalidComments() throws Exception
Exception@FixFor(value="MODE-2214") public void shouldNotParseJsonWithInvalidArray() throws Exception
Exception@FixFor(value="MODE-2317") public void shouldParseNonUnicodeEscapeSequence() throws Exception
Exceptionprotected void assertField(String name, Object value)
Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.