com.google.api.ads.dfa.lib.testing.mocks.v1_12
Class LoginSoapBindingStub

java.lang.Object
  extended by com.google.api.ads.dfa.lib.testing.mocks.v1_12.LoginSoapBindingStub
All Implemented Interfaces:
LoginRemote

public class LoginSoapBindingStub
extends Object
implements LoginRemote

Mock login remote. Named similarly enough to be mistaken for the DFA API's login service. Used to test DfaServiceClient and LoginTokens.

Author:
Joseph DiLallo

Field Summary
static UserProfile USER_PROFILE
           
 
Constructor Summary
LoginSoapBindingStub()
           
 
Method Summary
 UserProfile authenticate(String username, String password)
          Mock of DFA's login service authenticate operation.
 UserProfile impersonateNetwork(String username, String password, long networkId)
          Mock of DFA's login service impersonateNetwork operation.
 UserProfile impersonateUser(String username, String password, String targetUsername)
          Mock of DFA's login service impersonateUser operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_PROFILE

public static final UserProfile USER_PROFILE
Constructor Detail

LoginSoapBindingStub

public LoginSoapBindingStub()
Method Detail

authenticate

public UserProfile authenticate(String username,
                                String password)
Mock of DFA's login service authenticate operation.

Specified by:
authenticate in interface LoginRemote
Parameters:
username - DFA user profile name
password - DFA user profile password
Returns:
a user profile

impersonateUser

public UserProfile impersonateUser(String username,
                                   String password,
                                   String targetUsername)
Mock of DFA's login service impersonateUser operation.

Specified by:
impersonateUser in interface LoginRemote
Parameters:
username - DFA superuser profile name
password - DFA superuser profile password
targetUsername - username to impersonate
Returns:
a user profile

impersonateNetwork

public UserProfile impersonateNetwork(String username,
                                      String password,
                                      long networkId)
Mock of DFA's login service impersonateNetwork operation.

Specified by:
impersonateNetwork in interface LoginRemote
Parameters:
username - DFA superuser profile name
password - DFA superuser profile token
networkId - network to impersonate
Returns:
a user profile


Copyright © 2012. All Rights Reserved.