Package com.sforce.soap.enterprise

Examples of com.sforce.soap.enterprise.SoapBindingStub


                }
                return messageContext;
            }
        };

        final SoapBindingStub soapBindingStub = mock(SoapBindingStub.class);
        final LoginResult loginResult = new LoginResult();
        loginResult.setSessionId("something unique");
        when(soapBindingStub.login(anyString(), anyString())).thenReturn(loginResult);

        final SforceServiceLocator sforceServiceLocator = spy(new SforceServiceLocator());
        when(sforceServiceLocator.getSoap()).thenReturn(soapBindingStub);

        AuthenticationProxy proxy = new AuthenticationProxy(authenticator, messageContextProvider, sforceServiceLocator);
View Full Code Here

TOP

Related Classes of com.sforce.soap.enterprise.SoapBindingStub

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.