public class TestInstallUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
addTestData(String host,
int port,
String databaseName,
String user,
String pwd,
String filePath)
Adds data to the test database from a sql dump file
|
protected static boolean |
addZippedTestModules(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 InputStream |
getResourceInputStream(String url,
String openmrsUsername,
String openmrsPassword) |
protected static boolean |
testConnection(String urlString)
Tests the connection to the specified URL
|
protected static boolean addTestData(String host, int port, String databaseName, String user, String pwd, String filePath)
host - port - databaseName - user - pwd - protected static boolean addZippedTestModules(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(String urlString)
urlString - the url to testprotected static InputStream getResourceInputStream(String url, String openmrsUsername, String openmrsPassword) throws MalformedURLException, IOException, APIException
url - openmrsUsername - openmrsPassword - MalformedURLExceptionIOExceptionAPIExceptionCopyright © 2024 OpenMRS Inc.. All rights reserved.