public class TestMessageParser extends BaseJsonLoaderTest
BaseJsonLoaderTest.JsonLoaderFixtureDrillTest.MemWatcherdirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestMessageParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
testComplexDataPath() |
void |
testDataPathArray()
Test the case where the returned message has an array
objects:
{ data: [ { ... |
void |
testDataPathErrorLeaf() |
void |
testDataPathErrorRoot() |
void |
testDataPathMissing() |
void |
testDataPathNull()
Test the case where the returned message has a null in place
of the data:
{ data: null }. |
void |
testDataPathObject()
Test the case where the returned message has a single data
object:
{ data: { ... |
void |
testMessageParser()
Test the ability to wrap the data objects with a custom message
structure, typical of a REST call.
|
void |
testMessageParserEOF()
Test the ability to cancel the data load if a message header
indicates that there is no data.
|
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic void testMessageParser()
public void testMessageParserEOF()
public void testDataPathObject()
{ data: { ... } }.public void testDataPathArray()
{ data: [ { ... }, { ... } ... ] }.public void testComplexDataPath()
public void testDataPathNull()
{ data: null }. This is harmlessly
treated as no data and is needed for the case where the
message normally returns a single object.public void testDataPathMissing()
public void testDataPathErrorRoot()
public void testDataPathErrorLeaf()
Copyright © 2021 The Apache Software Foundation. All rights reserved.