public class TestInstallUtil
extends java.lang.Object
| Constructor and Description | 
|---|
TestInstallUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected static boolean | 
addTestData(java.lang.String host,
           int port,
           java.lang.String databaseName,
           java.lang.String user,
           java.lang.String pwd,
           java.lang.String filePath)
Adds data to the test database from a sql dump file 
 | 
protected static boolean | 
addZippedTestModules(java.io.InputStream in)
Extracts .omod files from the specified  
InputStream and copies them to the module
 repository of the test application data directory, the method always closes the InputStream
 before returning | 
protected static java.io.InputStream | 
getResourceInputStream(java.lang.String urlString,
                      java.lang.String openmrsUsername,
                      java.lang.String openmrsPassword)  | 
protected static boolean | 
testConnection(java.lang.String urlString)
Tests the connection to the specified URL 
 | 
protected static boolean addTestData(java.lang.String host,
                                     int port,
                                     java.lang.String databaseName,
                                     java.lang.String user,
                                     java.lang.String pwd,
                                     java.lang.String filePath)
host - port - databaseName - user - pwd - protected static boolean addZippedTestModules(java.io.InputStream in)
InputStream and copies them to the module
 repository of the test application data directory, the method always closes the InputStream
 before returningin - the InputStream for the zip fileprotected static boolean testConnection(java.lang.String urlString)
urlString - the url to testprotected static java.io.InputStream getResourceInputStream(java.lang.String urlString,
                                                            java.lang.String openmrsUsername,
                                                            java.lang.String openmrsPassword)
                                                     throws java.net.MalformedURLException,
                                                            java.io.IOException,
                                                            APIException
url - openmrsUsername - openmrsPassword - java.net.MalformedURLExceptionjava.io.IOExceptionAPIExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.