Class IntegrationDataAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.integrationdata.IntegrationDataAppSoapMockStub
- All Implemented Interfaces:
IIntegrationDataAppSoap
public class IntegrationDataAppSoapMockStub
extends ClientSoapMockStub
implements IIntegrationDataAppSoap
-
Field Summary
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
DATE_WILDCARD, GUIDKEY_WILDCARD, INTEGER_WILDCARD, LONG_WILDCARD, STRING_WILDCARD
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSimulate a call to getDatagetDataByKey
(String sessionId, String namespaceId, String objectId, String key) Simulate a call to getDataByKeygetNamespaceId
(String sessionId, String name) Simulate a call to getNamespaceIdvoid
prepareGetData
(String sessionId, String namespaceId, String objectId, Object returnValue) Prepare a simulated response to getDatavoid
prepareGetDataByKey
(String sessionId, String namespaceId, String objectId, String key, Object returnValue) Prepare a simulated response to getDataByKeyvoid
prepareGetNamespaceId
(String sessionId, String name, Object returnValue) Prepare a simulated response to getNamespaceIdvoid
preparePutData
(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) Prepare a simulated response to putDatavoid
preparePutData
(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues, Exception exception) Prepare a simulated response to putDatavoid
preparePutDataByKey
(String sessionId, String namespaceId, String objectId, String key, String value) Prepare a simulated response to putDataByKeyvoid
preparePutDataByKey
(String sessionId, String namespaceId, String objectId, String key, String value, Exception exception) Prepare a simulated response to putDataByKeyvoid
prepareRegisterNamespace
(String sessionId, String name, Object returnValue) Prepare a simulated response to registerNamespacevoid
prepareRemoveData
(String sessionId, String namespaceId, String objectId, String[] keys) Prepare a simulated response to removeDatavoid
prepareRemoveData
(String sessionId, String namespaceId, String objectId, String[] keys, Exception exception) Prepare a simulated response to removeDatavoid
prepareRemoveDataByKey
(String sessionId, String namespaceId, String objectId, String key) Prepare a simulated response to removeDataByKeyvoid
prepareRemoveDataByKey
(String sessionId, String namespaceId, String objectId, String key, Exception exception) Prepare a simulated response to removeDataByKeyvoid
putData
(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) Simulate a call to putDatavoid
Simulate a call to putDataByKeyregisterNamespace
(String sessionId, String name) Simulate a call to registerNamespacevoid
removeData
(String sessionId, String namespaceId, String objectId, String[] keys) Simulate a call to removeDatavoid
removeDataByKey
(String sessionId, String namespaceId, String objectId, String key) Simulate a call to removeDataByKeyMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
Constructor Details
-
IntegrationDataAppSoapMockStub
-
-
Method Details
-
prepareRegisterNamespace
Prepare a simulated response to registerNamespace -
registerNamespace
Simulate a call to registerNamespace- Specified by:
registerNamespace
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.name
- The name of the namespace to register- Returns:
- Integration data namespace id
- Throws:
InvalidSessionFault
- when the sessionId is invalid.ObjectAlreadyExistsFault
- when the specified name already existsSystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetNamespaceId
Prepare a simulated response to getNamespaceId -
getNamespaceId
Simulate a call to getNamespaceId- Specified by:
getNamespaceId
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.name
- The name of the namespace to get- Returns:
- Integration data namespace id
- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the specified name doesn't exist.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
preparePutData
public void preparePutData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) Prepare a simulated response to putData -
preparePutData
public void preparePutData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues, Exception exception) Prepare a simulated response to putData -
putData
public void putData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) throws RemoteException Simulate a call to putData- Specified by:
putData
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.namespaceId
- The namespace to store data underobjectId
- The object to associate the data withnamedValues
- Key value pairs of data to associate- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the object id doesn't existSystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user doesn't have permission to store data on the objectRemoteException
- See Also:
-
preparePutDataByKey
public void preparePutDataByKey(String sessionId, String namespaceId, String objectId, String key, String value) Prepare a simulated response to putDataByKey -
preparePutDataByKey
public void preparePutDataByKey(String sessionId, String namespaceId, String objectId, String key, String value, Exception exception) Prepare a simulated response to putDataByKey -
putDataByKey
public void putDataByKey(String sessionId, String namespaceId, String objectId, String key, String value) throws RemoteException Simulate a call to putDataByKey- Specified by:
putDataByKey
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.namespaceId
- The namespace to store data underobjectId
- The object to associate the data withkey
- The key of the piece of data to storevalue
- The value to store- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the object id doesn't existSystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user doesn't have permission to store data on the objectRemoteException
- See Also:
-
prepareRemoveData
Prepare a simulated response to removeData -
prepareRemoveData
public void prepareRemoveData(String sessionId, String namespaceId, String objectId, String[] keys, Exception exception) Prepare a simulated response to removeData -
removeData
public void removeData(String sessionId, String namespaceId, String objectId, String[] keys) throws RemoteException Simulate a call to removeData- Specified by:
removeData
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.namespaceId
- The namespace to store data underobjectId
- The object to associate the data withkeys
- Integration data keys (and associated values) to remove.- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the object id doesn't existSystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user doesn't have permission to store data on the objectRemoteException
- See Also:
-
prepareRemoveDataByKey
public void prepareRemoveDataByKey(String sessionId, String namespaceId, String objectId, String key) Prepare a simulated response to removeDataByKey -
prepareRemoveDataByKey
public void prepareRemoveDataByKey(String sessionId, String namespaceId, String objectId, String key, Exception exception) Prepare a simulated response to removeDataByKey -
removeDataByKey
public void removeDataByKey(String sessionId, String namespaceId, String objectId, String key) throws RemoteException Simulate a call to removeDataByKey- Specified by:
removeDataByKey
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.namespaceId
- The namespace to store data underobjectId
- The object to associate the data withkey
- Integration data key (and associated value) to remove.- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the object id doesn't existSystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user doesn't have permission to store data on the objectRemoteException
- See Also:
-
prepareGetData
public void prepareGetData(String sessionId, String namespaceId, String objectId, Object returnValue) Prepare a simulated response to getData -
getData
public SoapNamedValues getData(String sessionId, String namespaceId, String objectId) throws RemoteException Simulate a call to getData- Specified by:
getData
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.namespaceId
- The namespace to get data underobjectId
- The object to get the data for- Returns:
- A SoapNamedValues collection of key/value pair stored data
- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the object id doesn't existSystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user doesn't have permission to get data on the objectRemoteException
- See Also:
-
prepareGetDataByKey
public void prepareGetDataByKey(String sessionId, String namespaceId, String objectId, String key, Object returnValue) Prepare a simulated response to getDataByKey -
getDataByKey
public String getDataByKey(String sessionId, String namespaceId, String objectId, String key) throws RemoteException Simulate a call to getDataByKey- Specified by:
getDataByKey
in interfaceIIntegrationDataAppSoap
- Parameters:
sessionId
- SOAP session id.namespaceId
- The namespace to get data underobjectId
- The object to get the data forkey
- The key of the piece of data to retrieve- Returns:
- The value of the stored piece of data
- Throws:
InvalidSessionFault
- when the sessionId is invalid.NoSuchObjectFault
- when the object id doesn't existSystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user doesn't have permission to get data on the objectRemoteException
- See Also:
-