public class TestPlanRunner extends Object
| Constructor and Description |
|---|
TestPlanRunner()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertJson(RestTest restTest,
org.codehaus.jackson.JsonNode expectedJson,
org.codehaus.jackson.JsonNode actualJson)
Asserts that the JSON payload matches what we expected, as defined
in the configuration of the rest test.
|
URI |
getUri(String baseApiUrl,
String path)
Gets the absolute URL to use to invoke a rest service at a given path.
|
void |
runTest(RestTest restTest,
String baseApiUrl)
Runs a single REST test.
|
void |
runTestPlan(String resourcePath,
ClassLoader cl,
String baseApiUrl)
Called to run a test plan.
|
public void runTestPlan(String resourcePath, ClassLoader cl, String baseApiUrl)
resourcePath - cl - baseApiUrl - public void runTest(RestTest restTest, String baseApiUrl) throws Error
restTest - baseApiUrl - Errorpublic void assertJson(RestTest restTest, org.codehaus.jackson.JsonNode expectedJson, org.codehaus.jackson.JsonNode actualJson)
restTest - expectedJson - actualJson - public URI getUri(String baseApiUrl, String path) throws URISyntaxException
path - URISyntaxExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.