public class TestScalarArrays extends BaseJsonLoaderTest
Verifies that a single scalar is harmlessly treated as an array of one element. Verifies default type conversions. Verifies that null array elements are converted to a default value for the type (false, 0 or empty string.)
BaseJsonLoaderTest.JsonLoaderFixtureDrillTest.MemWatcherdirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestScalarArrays() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAllTextBoolean() |
void |
testAllTextDouble() |
void |
testAllTextInt() |
void |
testArrayWithObject()
Cannot shift to an object from a repeated scalar.
|
void |
testBoolean() |
void |
testBooleanWithSchema() |
void |
testDouble() |
void |
testDoubleWithSchema() |
void |
testInt() |
void |
testIntAsDouble() |
void |
testIntWithSchema() |
void |
testNestedArray()
Cannot shift to a nested array from a repeated scalar.
|
void |
testString() |
void |
testStringClassicNulls() |
void |
testStringWithSchema() |
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic void testBoolean()
public void testAllTextBoolean()
public void testBooleanWithSchema()
public void testInt()
public void testIntAsDouble()
public void testAllTextInt()
public void testIntWithSchema()
public void testDouble()
public void testAllTextDouble()
public void testDoubleWithSchema()
public void testString()
public void testStringClassicNulls()
public void testStringWithSchema()
public void testNestedArray()
public void testArrayWithObject()
Copyright © 2021 The Apache Software Foundation. All rights reserved.