]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
98876f0b4199fcd3dcbde4f8c5ff06f217eba28f
[tmp/jakarta-migration.git] /
1 package org.collectionspace.services.IntegrationTests.test;
2
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;
8
9 import java.util.List;
10
11 /**
12  * User: laramie
13  * $LastChangedRevision:  $
14  * $LastChangedDate:  $
15  */
16 public class XmlReplayDevTest extends XmlReplayTest {
17
18     @Test
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");
23
24         /*
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.
29
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");
36         } */
37     }
38 }