Class NewsAppSoapMockStub
- java.lang.Object
-
- com.collabnet.ce.soap60.webservices.ClientSoapStub
-
- com.collabnet.ce.soap60.webservices.ClientSoapMockStub
-
- com.collabnet.ce.soap60.webservices.news.NewsAppSoapMockStub
-
- All Implemented Interfaces:
INewsAppSoap
public class NewsAppSoapMockStub extends ClientSoapMockStub implements INewsAppSoap
-
-
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 Constructor Description NewsAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsPostSoapDOcreateNewsPost(String sessionId, String projectId, String title, String body)Simulate a call to createNewsPostvoiddeleteNewsPost(String sessionId, String postId)Simulate a call to deleteNewsPostvoideditNewsPost(String sessionId, String postId, String title, String body)Simulate a call to editNewsPostNewsPostSoapListfindNews(String sessionId, String queryString, String projectId, boolean searchAttachments)Simulate a call to findNewsNewsPostSoapListgetAllNewsPostList(String sessionId)Simulate a call to getAllNewsPostListNewsPostSoapListgetNewsPostList(String sessionId, String projectId)Simulate a call to getNewsPostListNewsPostSoapListgetNewsPostSoapList(List newsDataList)Simulate a call to getNewsPostSoapListvoidprepareCreateNewsPost(String sessionId, String projectId, String title, String body, Object returnValue)Prepare a simulated response to createNewsPostvoidprepareDeleteNewsPost(String sessionId, String postId)Prepare a simulated response to deleteNewsPostvoidprepareDeleteNewsPost(String sessionId, String postId, Exception exception)Prepare a simulated response to deleteNewsPostvoidprepareEditNewsPost(String sessionId, String postId, String title, String body)Prepare a simulated response to editNewsPostvoidprepareEditNewsPost(String sessionId, String postId, String title, String body, Exception exception)Prepare a simulated response to editNewsPostvoidprepareFindNews(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue)Prepare a simulated response to findNewsvoidprepareGetAllNewsPostList(String sessionId, Object returnValue)Prepare a simulated response to getAllNewsPostListvoidprepareGetNewsPostList(String sessionId, String projectId, Object returnValue)Prepare a simulated response to getNewsPostListvoidprepareGetNewsPostSoapList(List newsDataList, Object returnValue)Prepare a simulated response to getNewsPostSoapList-
Methods 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 Detail
-
NewsAppSoapMockStub
public NewsAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
prepareGetNewsPostList
public void prepareGetNewsPostList(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getNewsPostList
-
getNewsPostList
public NewsPostSoapList getNewsPostList(String sessionId, String projectId) throws RemoteException
Simulate a call to getNewsPostList- Specified by:
getNewsPostListin interfaceINewsAppSoap- Parameters:
sessionId- User session id.projectId- Project id.- Returns:
- List of news posts associated with this project.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
NewsAppSoap.getNewsPostList(java.lang.String, java.lang.String)
-
prepareGetNewsPostSoapList
public void prepareGetNewsPostSoapList(List newsDataList, Object returnValue)
Prepare a simulated response to getNewsPostSoapList
-
getNewsPostSoapList
public NewsPostSoapList getNewsPostSoapList(List newsDataList) throws RemoteException
Simulate a call to getNewsPostSoapList- Throws:
RemoteException- See Also:
NewsAppSoap.getNewsPostSoapList(java.util.List)
-
prepareGetAllNewsPostList
public void prepareGetAllNewsPostList(String sessionId, Object returnValue)
Prepare a simulated response to getAllNewsPostList
-
getAllNewsPostList
public NewsPostSoapList getAllNewsPostList(String sessionId) throws RemoteException
Simulate a call to getAllNewsPostList- Specified by:
getAllNewsPostListin interfaceINewsAppSoap- Parameters:
sessionId- User session id.- Returns:
- List of all news posts associated with user's projects.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
NewsAppSoap.getAllNewsPostList(java.lang.String)
-
prepareCreateNewsPost
public void prepareCreateNewsPost(String sessionId, String projectId, String title, String body, Object returnValue)
Prepare a simulated response to createNewsPost
-
createNewsPost
public NewsPostSoapDO createNewsPost(String sessionId, String projectId, String title, String body) throws RemoteException
Simulate a call to createNewsPost- Specified by:
createNewsPostin interfaceINewsAppSoap- Parameters:
sessionId- User session id.projectId- Project id.title- News post title.body- News post body.- Returns:
- Newly created new item data.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.IllegalArgumentFault- when one or more parameters are invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
NewsAppSoap.createNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareEditNewsPost
public void prepareEditNewsPost(String sessionId, String postId, String title, String body)
Prepare a simulated response to editNewsPost
-
prepareEditNewsPost
public void prepareEditNewsPost(String sessionId, String postId, String title, String body, Exception exception)
Prepare a simulated response to editNewsPost
-
editNewsPost
public void editNewsPost(String sessionId, String postId, String title, String body) throws RemoteException
Simulate a call to editNewsPost- Specified by:
editNewsPostin interfaceINewsAppSoap- Parameters:
sessionId- User session id.postId- Post id.title- News post title.body- News post body.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified post id is invalid.IllegalArgumentFault- when one or more parameters are invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
NewsAppSoap.editNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareDeleteNewsPost
public void prepareDeleteNewsPost(String sessionId, String postId)
Prepare a simulated response to deleteNewsPost
-
prepareDeleteNewsPost
public void prepareDeleteNewsPost(String sessionId, String postId, Exception exception)
Prepare a simulated response to deleteNewsPost
-
deleteNewsPost
public void deleteNewsPost(String sessionId, String postId) throws RemoteException
Simulate a call to deleteNewsPost- Specified by:
deleteNewsPostin interfaceINewsAppSoap- Parameters:
sessionId- User session id.postId- News post id.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
NewsAppSoap.deleteNewsPost(java.lang.String, java.lang.String)
-
prepareFindNews
public void prepareFindNews(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue)
Prepare a simulated response to findNews
-
findNews
public NewsPostSoapList findNews(String sessionId, String queryString, String projectId, boolean searchAttachments) throws RemoteException
Simulate a call to findNews- Specified by:
findNewsin interfaceINewsAppSoap- Parameters:
sessionId- User session id.queryString- Query string.projectId- The project in which to find news posts. (if null, search all projects)searchAttachments- Whether to search attachments.- Returns:
- List of posts matching search criteria.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SearchQuerySyntaxFault- when the specified search query string is syntactically invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
NewsAppSoap.findNews(java.lang.String, java.lang.String, java.lang.String, boolean)
-
-