Revision: 1786
Author: [email protected]
Date: Tue Dec 15 17:05:02 2009
Log: Add a test of building request using URL pathinfo
http://code.google.com/p/simal/source/detail?r=1786
Modified:
/trunk/uk.ac.osswatch.simal.rest/src/test/java/uk/ac/osswatch/simal/rest/TestProjectAPI.java
=======================================
---
/trunk/uk.ac.osswatch.simal.rest/src/test/java/uk/ac/osswatch/simal/rest/TestProjectAPI.java
Tue Dec 15 16:42:26 2009
+++
/trunk/uk.ac.osswatch.simal.rest/src/test/java/uk/ac/osswatch/simal/rest/TestProjectAPI.java
Tue Dec 15 17:05:02 2009
@@ -83,6 +83,15 @@
IAPIHandler handler = SimalHandlerFactory.createHandler(cmd,
getRepo());
String result = handler.execute();
+ assertNotNull("No XML Returned by getProject", result);
+ assertTrue("XML file does not appear to describe a project", result
+ .contains("Project>"));
+
+ cmd = RESTCommand.createCommand("/project/project-featured/xml");
+
+ handler = SimalHandlerFactory.createHandler(cmd, getRepo());
+ result = handler.execute();
+
assertNotNull("No XML Returned by getProject", result);
assertTrue("XML file does not appear to describe a project", result
.contains("Project>"));
--
You received this message because you are subscribed to the Google Groups
"Simal Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en.