--- /dev/null
+To See XMLReplay test reports, look in the source directory: ..\services\IntegrationTests\target\xml-replay-reports\index.xml-replay-master.xml.html
+
+### To run a subset of XMLReplay tests
+
+Modify the dev-master.xml file to include just the tests you are debugging:
+ ..\services\services\IntegrationTests\src\test\resources\test-data\xmlreplay\dev-master.xml
+
+Then run this command:
+
+ mvn test -Dtest=XmlReplayDevTest -Dmaven.surefire.debug=true
+
+Notes on Using XMLReplay with CollectionSpace Services - http://wiki.collectionspace.org/display/~remillet/Notes+on+Using+XMLReplay+with+CollectionSpace+Services
+
public Response create(@Context UriInfo ui,
String xmlPayload) {
String result = null;
- ResponseBuilder rb = Response.serverError();
+ ResponseBuilder rb = Response.serverError(); // Assume we'll fail to successfully fulfill the request.
try {
ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext(ui);
// result = createFromInputSource(inputSource);
String inputFilename = payloadToFilename(xmlPayload);
result = createFromFilename(inputFilename, timeout);
+ if (result.contains("ERROR") == false) {
+ rb = Response.ok(); // SUCCESS
+ }
rb.entity(result);
} catch (Exception e) {
result = e.getMessage();