public class DatabaseServer extends Object
| Constructor and Description |
|---|
DatabaseServer(String database,
String sqlFile,
String csv,
String connectionStringParameters) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
execute(String sql)
Executes the SQL query received as parameter
|
List<Map<String,String>> |
executeQuery(String sql)
Executes a SQL query
|
void |
start()
Starts the server
|
void |
stop()
Stops the server.
|
void |
validateThat(String query,
String returns)
Executes a SQL query
|
public void start()
Starts the server
Executes the correspondent queries if an SQL file has been included in the dbserver configuration
Creates the correspondent tables in the database if a CSV file has been included in the dbserver configuration
public Boolean execute(String sql)
Executes the SQL query received as parameter
sql - query to be executedpublic List<Map<String,String>> executeQuery(String sql)
Executes a SQL query
sql - query to be executedpublic void validateThat(String query, String returns)
Executes a SQL query
query - query to be executedreturns - Expected valuepublic void stop()
Stops the server.
Copyright © 2018 MuleSoft, Inc.. All rights reserved.