Enable tests in ValidateJSONSchemaTestCase
@@ -65,9 +65,8 @@ public class ValidateJSONSchemaTestCase extends ESBIntegrationTest {
"Valid Request failed. Response: " + response.getData());
}
- // TODO enable this test case once https://github.com/wso2/micro-integrator/issues/388 is fixed
@Test(groups = "wso2.esb", description = "Validating the request payload against the JSON Schema "
- + "stored in config registry", enabled = false)
+ + "stored in config registry")
public void validRequestTest2() throws Exception {
String payload = "{" + " \"getQuote\": {" + " \"request\": { \"symbol\": \"WSO2\" }" + " }" + "}";
HttpResponse response = doPost(new URL(getProxyServiceURLHttp("validateMediatorJsonSchemaFromRegTestProxy")),
@@ -88,9 +87,8 @@ public class ValidateJSONSchemaTestCase extends ESBIntegrationTest {
"Validation must be failed. Response: " + response.getData());
}
- // TODO enable this test case once https://github.com/wso2/micro-integrator/issues/388 is fixed
@Test(groups = "wso2.esb", description = "Validating the invalid request payload having invalid "
- + "element against the JSON Schema stored in config registry", enabled = false)
+ + "element against the JSON Schema stored in config registry")
public void inValidRequestTest2() throws Exception {
String payload = "{" + " \"getQuote\": {" + " \"request\": { \"symbol1\": \"WSO2\" }" + " }" + "}";
HttpResponse response = doPost(new URL(getProxyServiceURLHttp("validateMediatorJsonSchemaFromRegTestProxy")),
@@ -123,8 +121,6 @@ public class ValidateJSONSchemaTestCase extends ESBIntegrationTest {
"Validation must be failed. Response: " + response.getData());
}
- // TODO enable this test case once https://github.com/wso2/micro-integrator/issues/388 is fixed
-
/**
* Send a series of valid and invalid requests and see if
* validation works in the expected way
@@ -132,7 +128,7 @@ public class ValidateJSONSchemaTestCase extends ESBIntegrationTest {
* @throws Exception on a test exception
*/
@Test(groups = "wso2.esb", description = "Validating the valid and invalid requests series against the JSON " +
- "Schema", enabled = false)
+ "Schema")
public void validAndInvalidRequestTest() throws Exception {
sendInvalidRequestAndAssert();
sendInvalidRequestAndAssert();
