public class DSSTestCaseUtils extends Object
| Constructor and Description |
|---|
DSSTestCaseUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteService(String backEndUrl,
String sessionCookie,
String serviceName) |
String |
getContentFrom(String filePath) |
boolean |
isFaultyService(String backEndUrl,
String sessionCookie,
String serviceName) |
boolean |
isServiceDeleted(String backEndUrl,
String sessionCookie,
String serviceName) |
boolean |
isServiceDeployed(String backEndUrl,
String sessionCookie,
String serviceName) |
boolean |
isServiceExist(String backEndUrl,
String sessionCookie,
String serviceName) |
boolean |
isServiceFaulty(String backEndUrl,
String sessionCookie,
String serviceName) |
org.apache.axiom.om.OMElement |
loadResourceFrom(String filePath)
Loads the specified resource from the file system and returns its content as an OMElement.
|
boolean |
uploadArtifact(String serviceUrl,
String sessionCookie,
String fileName,
DataHandler dh) |
public org.apache.axiom.om.OMElement loadResourceFrom(String filePath) throws FileNotFoundException, XMLStreamException
filePath - A relative path to the resource fileFileNotFoundExceptionXMLStreamExceptionpublic String getContentFrom(String filePath) throws IOException
filePath - to the resource fileIOExceptionpublic boolean uploadArtifact(String serviceUrl, String sessionCookie, String fileName, DataHandler dh) throws org.wso2.carbon.dataservices.ui.fileupload.stub.ExceptionException, RemoteException
serviceUrl - sessionCookie - fileName - dh - org.wso2.carbon.dataservices.ui.fileupload.stub.ExceptionExceptionRemoteExceptionpublic boolean isServiceDeployed(String backEndUrl, String sessionCookie, String serviceName) throws RemoteException
backEndUrl - sessionCookie - serviceName - RemoteExceptionpublic boolean isServiceFaulty(String backEndUrl, String sessionCookie, String serviceName) throws RemoteException
backEndUrl - sessionCookie - serviceName - RemoteExceptionpublic boolean isServiceExist(String backEndUrl, String sessionCookie, String serviceName) throws RemoteException
backEndUrl - sessionCookie - serviceName - RemoteExceptionpublic boolean isFaultyService(String backEndUrl, String sessionCookie, String serviceName) throws RemoteException
backEndUrl - sessionCookie - serviceName - RemoteExceptionpublic void deleteService(String backEndUrl, String sessionCookie, String serviceName) throws RemoteException
backEndUrl - sessionCookie - serviceName - RemoteExceptionpublic boolean isServiceDeleted(String backEndUrl, String sessionCookie, String serviceName) throws RemoteException
backEndUrl - sessionCookie - serviceName - RemoteExceptionCopyright © 2018 WSO2. All rights reserved.