]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
b4fae5c87daeed62a1ed93e0eef0311d2c3b449c
[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.XmlReplay;
5 import org.collectionspace.services.IntegrationTests.xmlreplay.XmlReplayTest;
6 import org.testng.annotations.Test;
7
8 import java.util.List;
9
10 /**
11  * User: laramie
12  * $LastChangedRevision:  $
13  * $LastChangedDate:  $
14  */
15 public class XmlReplayDevTest extends XmlReplayTest {
16
17     @Test
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");
22
23         /*
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.
28
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");
35         } */
36     }
37 }