Examples of UnexpectedErrorFault


Examples of com.sforce.soap.partner.fault.UnexpectedErrorFault

    public void testWhereQueryWithInvalidId() {
        mockQueryConn.setExpectedSoqlQuery("select id, date__c, entityType__c, Name, number__c from querytestentity__c qte"
                                            + "  where (qte.Id = 'deadbeef')");
               
        // Throw the exception that we'd get from Force.com
        UnexpectedErrorFault apiFault = new UnexpectedErrorFault();
        apiFault.setExceptionCode(ExceptionCode.INVALID_QUERY_FILTER_OPERATOR);
        apiFault.setExceptionMessage("querytestentity__c qte where (id = 'deadbeef')\n"
                                   + "                              ^               \n"
                                   + "ERROR at Row:1:Column:65\n"
                                   + "invalid ID field: deadbeef");
       
        mockQueryConn.setThrownConnectionException(apiFault);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.