com.google.api.ads.common.lib.soap.testing
Class MockSoapClient

java.lang.Object
  extended by com.google.api.ads.common.lib.soap.testing.MockSoapClient
All Implemented Interfaces:
MockSoapClientInterface

public class MockSoapClient
extends Object
implements MockSoapClientInterface

Mock SOAP client with a few methods.

Author:
Adam Rogal

Field Summary
static RuntimeException EXCEPTION
           
 
Constructor Summary
MockSoapClient()
           
 
Method Summary
 void emptyCall()
          Empty call.
 Object identityCall(Object[] arg)
          Returns the passed in arg as a single Object.
 Object identityCallSingle(Object arg)
          Returns the passed in arg as a single Object.
 Object lotsOfArgsCall(Object arg, Object[] arg1, Object arg2, Object arg3)
          Returns the passed in arg as a single Object.
 Object testOverloaded(int arg1)
          Returns arg1 and has an overloaded name.
 Object testOverloaded(String arg1, String arg2)
          Returns arg1 and has an overloaded name.
 Object throwException(Object[] arg)
          Throws an exception.
 void voidCall(Object[] arg)
          Void call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCEPTION

public static final RuntimeException EXCEPTION
Constructor Detail

MockSoapClient

public MockSoapClient()
Method Detail

identityCall

public Object identityCall(Object[] arg)
Returns the passed in arg as a single Object.

Specified by:
identityCall in interface MockSoapClientInterface

identityCallSingle

public Object identityCallSingle(Object arg)
Returns the passed in arg as a single Object.

Specified by:
identityCallSingle in interface MockSoapClientInterface

testOverloaded

public Object testOverloaded(String arg1,
                             String arg2)
Returns arg1 and has an overloaded name.

Specified by:
testOverloaded in interface MockSoapClientInterface

testOverloaded

public Object testOverloaded(int arg1)
Returns arg1 and has an overloaded name.

Specified by:
testOverloaded in interface MockSoapClientInterface

lotsOfArgsCall

public Object lotsOfArgsCall(Object arg,
                             Object[] arg1,
                             Object arg2,
                             Object arg3)
Returns the passed in arg as a single Object.

Specified by:
lotsOfArgsCall in interface MockSoapClientInterface

voidCall

public void voidCall(Object[] arg)
Void call.

Specified by:
voidCall in interface MockSoapClientInterface

emptyCall

public void emptyCall()
Empty call.

Specified by:
emptyCall in interface MockSoapClientInterface

throwException

public Object throwException(Object[] arg)
Throws an exception.

Specified by:
throwException in interface MockSoapClientInterface


Copyright © 2012. All Rights Reserved.