public class NewsAppSoapMockStub extends com.collabnet.ce.soap60.webservices.ClientSoapMockStub implements INewsAppSoap
Constructor and Description |
---|
NewsAppSoapMockStub(String soapServerUrl) |
Modifier and Type | Method and Description |
---|---|
NewsPostSoapDO |
createNewsPost(String sessionId,
String projectId,
String title,
String body)
Simulate a call to createNewsPost
|
void |
deleteNewsPost(String sessionId,
String postId)
Simulate a call to deleteNewsPost
|
void |
editNewsPost(String sessionId,
String postId,
String title,
String body)
Simulate a call to editNewsPost
|
NewsPostSoapList |
findNews(String sessionId,
String queryString,
String projectId,
boolean searchAttachments)
Simulate a call to findNews
|
NewsPostSoapList |
getAllNewsPostList(String sessionId)
Simulate a call to getAllNewsPostList
|
NewsPostSoapList |
getNewsPostList(String sessionId,
String projectId)
Simulate a call to getNewsPostList
|
NewsPostSoapList |
getNewsPostSoapList(List newsDataList)
Simulate a call to getNewsPostSoapList
|
void |
prepareCreateNewsPost(String sessionId,
String projectId,
String title,
String body,
Object returnValue)
Prepare a simulated response to createNewsPost
|
void |
prepareDeleteNewsPost(String sessionId,
String postId)
Prepare a simulated response to deleteNewsPost
|
void |
prepareDeleteNewsPost(String sessionId,
String postId,
Exception exception)
Prepare a simulated response to deleteNewsPost
|
void |
prepareEditNewsPost(String sessionId,
String postId,
String title,
String body)
Prepare a simulated response to editNewsPost
|
void |
prepareEditNewsPost(String sessionId,
String postId,
String title,
String body,
Exception exception)
Prepare a simulated response to editNewsPost
|
void |
prepareFindNews(String sessionId,
String queryString,
String projectId,
boolean searchAttachments,
Object returnValue)
Prepare a simulated response to findNews
|
void |
prepareGetAllNewsPostList(String sessionId,
Object returnValue)
Prepare a simulated response to getAllNewsPostList
|
void |
prepareGetNewsPostList(String sessionId,
String projectId,
Object returnValue)
Prepare a simulated response to getNewsPostList
|
void |
prepareGetNewsPostSoapList(List newsDataList,
Object returnValue)
Prepare a simulated response to getNewsPostSoapList
|
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
public NewsAppSoapMockStub(String soapServerUrl)
public void prepareGetNewsPostList(String sessionId, String projectId, Object returnValue)
NewsAppSoap.getNewsPostList(java.lang.String, java.lang.String)
public NewsPostSoapList getNewsPostList(String sessionId, String projectId) throws RemoteException
getNewsPostList
in interface INewsAppSoap
sessionId
- User session id.projectId
- Project id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified project id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
NewsAppSoap.getNewsPostList(java.lang.String, java.lang.String)
public void prepareGetNewsPostSoapList(List newsDataList, Object returnValue)
NewsAppSoap.getNewsPostSoapList(java.util.List)
public NewsPostSoapList getNewsPostSoapList(List newsDataList) throws RemoteException
RemoteException
NewsAppSoap.getNewsPostSoapList(java.util.List)
public void prepareGetAllNewsPostList(String sessionId, Object returnValue)
NewsAppSoap.getAllNewsPostList(java.lang.String)
public NewsPostSoapList getAllNewsPostList(String sessionId) throws RemoteException
getAllNewsPostList
in interface INewsAppSoap
sessionId
- User session id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified project id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
NewsAppSoap.getAllNewsPostList(java.lang.String)
public void prepareCreateNewsPost(String sessionId, String projectId, String title, String body, Object returnValue)
NewsAppSoap.createNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public NewsPostSoapDO createNewsPost(String sessionId, String projectId, String title, String body) throws RemoteException
createNewsPost
in interface INewsAppSoap
sessionId
- User session id.projectId
- Project id.title
- News post title.body
- News post body.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified project id is invalid.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when one or more parameters are invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
NewsAppSoap.createNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void prepareEditNewsPost(String sessionId, String postId, String title, String body)
NewsAppSoap.editNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void prepareEditNewsPost(String sessionId, String postId, String title, String body, Exception exception)
NewsAppSoap.editNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void editNewsPost(String sessionId, String postId, String title, String body) throws RemoteException
editNewsPost
in interface INewsAppSoap
sessionId
- User session id.postId
- Post id.title
- News post title.body
- News post body.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified post id is invalid.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when one or more parameters are invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
NewsAppSoap.editNewsPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void prepareDeleteNewsPost(String sessionId, String postId)
NewsAppSoap.deleteNewsPost(java.lang.String, java.lang.String)
public void prepareDeleteNewsPost(String sessionId, String postId, Exception exception)
NewsAppSoap.deleteNewsPost(java.lang.String, java.lang.String)
public void deleteNewsPost(String sessionId, String postId) throws RemoteException
deleteNewsPost
in interface INewsAppSoap
sessionId
- User session id.postId
- News post id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified project id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
NewsAppSoap.deleteNewsPost(java.lang.String, java.lang.String)
public void prepareFindNews(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue)
NewsAppSoap.findNews(java.lang.String, java.lang.String, java.lang.String, boolean)
public NewsPostSoapList findNews(String sessionId, String queryString, String projectId, boolean searchAttachments) throws RemoteException
findNews
in interface INewsAppSoap
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.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified project id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SearchQuerySyntaxFault
- when the specified search query string is syntactically invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
NewsAppSoap.findNews(java.lang.String, java.lang.String, java.lang.String, boolean)
Copyright © 2016 CollabNet. All Rights Reserved.