Fix up unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18777 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2010-02-23 02:36:53 +00:00
parent 298a29ab48
commit 494b7252e9

View File

@@ -53,7 +53,7 @@ import org.springframework.extensions.webscripts.TestWebScriptServer.Response;
/** /**
* Unit test to test rules Web Script API * Unit test to test rules Web Script API
* *
* @author unknown * @author Roy Wetherall
* *
*/ */
public class RuleServiceTest extends BaseWebScriptTest public class RuleServiceTest extends BaseWebScriptTest
@@ -374,7 +374,7 @@ public class RuleServiceTest extends BaseWebScriptTest
} }
} }
public void off_testGetActionConstraints() throws Exception public void testGetActionConstraints() throws Exception
{ {
Response response = sendRequest(new GetRequest(URL_ACTIONCONSTRAINTS), 200); Response response = sendRequest(new GetRequest(URL_ACTIONCONSTRAINTS), 200);
JSONObject result = new JSONObject(response.getContentAsString()); JSONObject result = new JSONObject(response.getContentAsString());
@@ -404,9 +404,9 @@ public class RuleServiceTest extends BaseWebScriptTest
} }
} }
public void off_testGetActionConstraint() throws Exception public void testGetActionConstraint() throws Exception
{ {
Response response = sendRequest(new GetRequest(formateActionConstraintUrl("compare-operations")), 200); Response response = sendRequest(new GetRequest(formateActionConstraintUrl("ac-compare-operations")), 200);
JSONObject result = new JSONObject(response.getContentAsString()); JSONObject result = new JSONObject(response.getContentAsString());
assertNotNull(result); assertNotNull(result);