Search in sources :

Example 1 with SalesForce41ExecutionFactory

use of org.teiid.translator.salesforce.SalesForce41ExecutionFactory in project teiid by teiid.

the class TestSalesForce41ExecutionFactory method testCreateResults.

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

Aggregations

QueryResult (com.sforce.soap.partner.QueryResult)1 Test (org.junit.Test)1 SalesForce41ExecutionFactory (org.teiid.translator.salesforce.SalesForce41ExecutionFactory)1