Search in sources :

Example 1 with SalesForce34ExecutionFactory

use of org.teiid.translator.salesforce34.SalesForce34ExecutionFactory in project teiid by teiid.

the class TestSalesForce34ExecutionFactory method testCreateResults.

@Test
public void testCreateResults() {
    SalesForce34ExecutionFactory ef = new SalesForce34ExecutionFactory();
    QueryResult qr = ef.buildQueryResult(new SObject[1]);
    assertTrue(qr.isDone());
    assertEquals(1, qr.getSize());
}
Also used : QueryResult(com.sforce.soap.partner.QueryResult) SalesForce34ExecutionFactory(org.teiid.translator.salesforce34.SalesForce34ExecutionFactory) Test(org.junit.Test)

Aggregations

QueryResult (com.sforce.soap.partner.QueryResult)1 Test (org.junit.Test)1 SalesForce34ExecutionFactory (org.teiid.translator.salesforce34.SalesForce34ExecutionFactory)1