Package com.sforce.async

Examples of com.sforce.async.BulkConnection


   */

  @Test
  public final void testMapper() throws IOException, InterruptedException, ConnectionException, AsyncApiException {
    ExportSalesforceMapper mapper = new ExportSalesforceMapper();
    BulkConnection conn = mock(BulkConnection.class);
    SFHandler mockSFHandler = mock(SFHandler.class);
    mapper.setConnection(conn);
    mapper.setSfHandler(mockSFHandler);
   
    Mapper.Context context = mock(Mapper.Context.class);
View Full Code Here


    config.setRestEndpoint(restEndpoint);
    // This should only be false when doing debugging.
    config.setCompression(true);
    // Set this to true to see HTTP requests and responses on stdout
    config.setTraceMessage(false);
    BulkConnection connection = new BulkConnection(config);
    return connection;
  }
View Full Code Here

    @Override
    protected boolean connectPostLogin(ConnectorConfig cc) {
        try {
            // Set up a connection object with the given config
            this.client = new BulkConnection(cc);

        } catch (AsyncApiException e) {
            logger.error(Messages.getMessage(getClass(), "loginError", cc.getAuthEndpoint(), e.getExceptionMessage()),
                    e);
            // Wrap exception. Otherwise, we'll have to change lots of signatures
View Full Code Here

    }
   
    @Mock
    public BulkConnection getBulkConnection() throws ConnectionException, AsyncApiException {
        // Just return a non-null BulkConnection
        return new BulkConnection(new ConnectorConfig());
    }
View Full Code Here

       
        ConnectorConfig configNew = new ConnectorConfig();
        configNew.setSessionId(config.getSessionId());
        configNew.setServiceEndpoint(config.getServiceEndpoint());
        configNew.setRestEndpoint(RESTAPI_URI_PATTERN.matcher(config.getServiceEndpoint()).replaceFirst("$1/async/$2/"));
        this.bulkConnection = new BulkConnection(configNew);
    }
View Full Code Here

TOP

Related Classes of com.sforce.async.BulkConnection

Copyright © 2018 www.massapicom. 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.