use of org.teiid.translator.couchbase.CouchbaseMetadataProcessor in project teiid by teiid.
the class TestCouchbaseMetadataProcessor method testCustomerOrder.
@Test
public void testCustomerOrder() throws ResourceException {
CouchbaseMetadataProcessor mp = new CouchbaseMetadataProcessor();
MetadataFactory mf = new MetadataFactory("vdb", 1, "couchbase", SystemMetadata.getInstance().getRuntimeTypeMap(), new Properties(), null);
Table table = createTable(mf, KEYSPACE, KEYSPACE);
mp.scanRow(KEYSPACE, KEYSPACE_SOURCE, formCustomer(), mf, table, KEYSPACE, false, new Dimension());
mp.scanRow(KEYSPACE, KEYSPACE_SOURCE, formOder(), mf, table, KEYSPACE, false, new Dimension());
helpTest("customerOrder.expected", mf);
}
use of org.teiid.translator.couchbase.CouchbaseMetadataProcessor in project teiid by teiid.
the class TestCouchbaseMetadataProcessor method testNestedArray.
@Test
public void testNestedArray() throws ResourceException {
CouchbaseMetadataProcessor mp = new CouchbaseMetadataProcessor();
MetadataFactory mf = new MetadataFactory("vdb", 1, "couchbase", SystemMetadata.getInstance().getRuntimeTypeMap(), new Properties(), null);
Table table = createTable(mf, KEYSPACE, KEYSPACE);
mp.scanRow(KEYSPACE, KEYSPACE_SOURCE, nestedArray(), mf, table, KEYSPACE, false, new Dimension());
helpTest("nestedArray.expected", mf);
}
use of org.teiid.translator.couchbase.CouchbaseMetadataProcessor in project teiid by teiid.
the class TestCouchbaseMetadataProcessor method testMetadataCaseSensitive.
@Ignore("not resolved so far")
@Test
public void testMetadataCaseSensitive() throws ResourceException {
CouchbaseMetadataProcessor mp = new CouchbaseMetadataProcessor();
MetadataFactory mf = new MetadataFactory("vdb", 1, "couchbase", SystemMetadata.getInstance().getRuntimeTypeMap(), new Properties(), null);
JsonObject json = JsonObject.create().put("name", "value").put("Name", "value").put("nAmE", "value");
Table table = createTable(mf, KEYSPACE, KEYSPACE);
mp.scanRow(KEYSPACE, KEYSPACE_SOURCE, json, mf, table, KEYSPACE, false, new Dimension());
helpTest("TODO.expected", mf);
}
use of org.teiid.translator.couchbase.CouchbaseMetadataProcessor in project teiid by teiid.
the class TestCouchbaseMetadataProcessor method testNullValue.
@Test
public void testNullValue() throws ResourceException {
CouchbaseMetadataProcessor mp = new CouchbaseMetadataProcessor();
MetadataFactory mf = new MetadataFactory("vdb", 1, "couchbase", SystemMetadata.getInstance().getRuntimeTypeMap(), new Properties(), null);
Table table = createTable(mf, KEYSPACE, KEYSPACE);
mp.scanRow(KEYSPACE, KEYSPACE_SOURCE, formNullValueJson(), mf, table, KEYSPACE, false, new Dimension());
helpTest("nullValue.expected", mf);
}
Aggregations