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