1 package org.collectionspace.services.IntegrationTests.test;
3 import org.collectionspace.services.IntegrationTests.xmlreplay.ServiceResult;
4 import org.collectionspace.services.IntegrationTests.xmlreplay.XmlReplay;
5 import org.collectionspace.services.IntegrationTests.xmlreplay.XmlReplayTest;
6 import org.testng.annotations.Test;
12 * $LastChangedRevision: $
15 public class XmlReplayDevTest extends XmlReplayTest {
18 public void runMaster() throws Exception {
19 XmlReplay replay = createXmlReplayUsingIntegrationTestsModule("..");
20 List<List<ServiceResult>> list = replay.runMaster(XmlReplay.DEFAULT_DEV_MASTER_CONTROL);
21 logTestForGroup(list, "XmlReplayMasterTest");
24 Maven surefire doesn't let you pass stuff on the command line
25 unless you define it in command args in the pom.xml file.
26 So this doesn't work, because -D defines don't get passed through
27 when maven execs surefire.
29 String masterFile = System.getProperty("xmlReplayMaster");
30 if (Tools.notEmpty(masterFile)){
31 System.out.println("Using masterFile specified in System property: "+masterFile);
32 XmlReplay replay = createXmlReplayUsingIntegrationTestsModule("..");
33 List<List<ServiceResult>> list = replay.runMaster(masterFile);
34 logTestForGroup(list, "XmlReplayMasterTest");