public class MongoArrayConverterTest extends Object
MongoDataConverter that verifies array types.| Modifier and Type | Field and Description |
|---|---|
private org.apache.kafka.connect.data.SchemaBuilder |
builder |
private static String |
EMPTY_ARRAY |
private static String |
HETEROGENOUS_ARRAY |
private static String |
HETEROGENOUS_DOCUMENT_IN_ARRAY |
private static String |
HOMOGENOUS_ARRAYS |
| Constructor and Description |
|---|
MongoArrayConverterTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup() |
void |
shouldCreateSchemaForEmptyArrayEncodingArray() |
void |
shouldCreateSchemaForEmptyArrayEncodingDocument() |
void |
shouldCreateSchemaForHeterogenousArray() |
void |
shouldCreateSchemaForHeterogenousDocumentInArray() |
void |
shouldCreateSchemaForHomogenousArray() |
void |
shouldCreateStructForEmptyArrayEncodingArray() |
void |
shouldCreateStructForEmptyArrayEncodingDocument() |
void |
shouldCreateStructForHeterogenousArray() |
void |
shouldCreateStructForHeterogenousDocumentInArray() |
void |
shouldCreateStructForHomogenousArray() |
void |
shouldDetectHeterogenousArray() |
void |
shouldDetectHeterogenousDocumentInArray() |
private static final String HETEROGENOUS_ARRAY
private static final String EMPTY_ARRAY
private static final String HETEROGENOUS_DOCUMENT_IN_ARRAY
private static final String HOMOGENOUS_ARRAYS
private org.apache.kafka.connect.data.SchemaBuilder builder
public void shouldDetectHeterogenousArray()
throws Exception
Exceptionpublic void shouldDetectHeterogenousDocumentInArray()
throws Exception
Exceptionpublic void shouldCreateSchemaForHomogenousArray()
throws Exception
Exceptionpublic void shouldCreateStructForHomogenousArray()
throws Exception
Exceptionpublic void shouldCreateSchemaForEmptyArrayEncodingArray()
throws Exception
Exceptionpublic void shouldCreateStructForEmptyArrayEncodingArray()
throws Exception
Exceptionpublic void shouldCreateSchemaForEmptyArrayEncodingDocument()
throws Exception
Exceptionpublic void shouldCreateStructForEmptyArrayEncodingDocument()
throws Exception
Exceptionpublic void shouldCreateSchemaForHeterogenousArray()
throws Exception
Exceptionpublic void shouldCreateStructForHeterogenousArray()
throws Exception
Exceptionpublic void shouldCreateSchemaForHeterogenousDocumentInArray()
throws Exception
ExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.