1 | sosCheckin.setSosHome(SOS_HOME);↵ | | 1 | sosCheckout.setSosHome(SOS_HOME);↵
|
2 | sosCheckin.setNoCache(true);↵ | | 2 | sosCheckout.setNoCache(true);↵
|
3 | sosCheckin.setNoCompress(false);↵ | | 3 | sosCheckout.setNoCompress(false);↵
|
4 | sosCheckin.setVerbose(false);↵ | | 4 | sosCheckout.setVerbose(false);↵
|
5 | sosCheckin.setRecursive(true);↵ | | 5 | sosCheckout.setRecursive(true);↵
|
|
6 | commandline = sosCheckin.buildCmdLine();↵ | | 6 | commandline = sosCheckout.buildCmdLine();↵
|
|
7 | checkCommandLines(sTestCmdLine, commandline.getCommandline());↵ | | 7 | checkCommandLines(sTestCmdLine, commandline.getCommandline());↵
|
8 | }↵ | | 8 | }↵
|
|
9 | /** Test SOSCheckIn required attributes. */↵ | | 9 | /** Test SOSCheckout required attributes. */↵
|
10 | public void testCheckinExceptions() {↵ | | 10 | public void testCheckoutExceptions() {↵
|
11 | configureProject("src/etc/testcases/taskdefs/optional/sos/sos.xml");↵ | | 11 | configureProject("src/etc/testcases/taskdefs/optional/sos/sos.xml");↵
|
12 | expectSpecificBuildException("soscheckin.1", "some cause", "sosserverpath attribute must be set!");↵ | | 12 | expectSpecificBuildException("soscheckout.1", "some cause", "sosserverpath attribute must be set!");↵
|
13 | expectSpecificBuildException("soscheckin.2", "some cause", "username attribute must be set!");↵ | | 13 | expectSpecificBuildException("soscheckout.2", "some cause", "username attribute must be set!");↵
|
14 | expectSpecificBuildException("soscheckin.3", "some cause", "vssserverpath attribute must be set!");↵ | | 14 | expectSpecificBuildException("soscheckout.3", "some cause", "vssserverpath attribute must be set!");↵
|
15 | expectSpecificBuildException("soscheckin.4", "some cause", "projectpath attribute must be set!");↵ | | 15 | expectSpecificBuildException("soscheckout.4", "some cause", "projectpath attribute must be set!");↵
|
16 | }↵ | | 16 | }↵
|
|
17 | /** Test CheckOutFile option flags */↵ | | 17 | /** Test Label option flags */↵
|
18 | public void testCheckoutFileFlags() {↵ | | 18 | public void testLabelFlags() {↵
|
19 | String[] sTestCmdLine = {"soscmd", "-command", "CheckOutFile", "-file",↵ | | 19 | String[] sTestCmdLine = {"soscmd", "-command", "↵
|
20 | SRC_FILE, "-server",↵ | | 20 | AddLabel", "-server",↵
|
21 | SOS_SERVER_PATH, "-name", SOS_USERNAME,↵ | | 21 | SOS_SERVER_PATH, "-name", SOS_USERNAME,↵
|
22 | "-password", SOS_PASSWORD, "-database",↵ | | 22 | "-password", "", "-database",↵
|
23 | VSS_SERVER_PATH, "-project",↵ | | 23 | VSS_SERVER_PATH, "-project",↵
|
24 | DS_VSS_PROJECT_PATH, "-verbose", "-nocompress", "-nocache",↵ | | 24 | DS_VSS_PROJECT_PATH, "-↵
|
25 | "-workdir", project.getBaseDir().getAbsolutePath()↵ | | |
|
26 | + File.separator + LOCAL_PATH↵ | | 25 | label",↵
|
27 | };↵ | | 26 | SRC_LABEL, "-verbose", "-log", SRC_COMMENT};↵
|
|
28 | // Set up a SOSCheckout task↵ | | 27 | // Set up a sosCheckout task↵
|
29 | SOSCheckout sosCheckout = new SOSCheckout();↵ | | 28 | SOS↵
|
30 | sosCheckout.setProject(project);↵ | | 29 | Label sosLabel = new SOSLabel();↵
|
31 | sosCheckout.setVssServerPath(VSS_SERVER_PATH);↵ | | 30 | sosLabel.setVssServerPath(VSS_SERVER_PATH);↵
|
32 | sosCheckout.setSosServerPath(SOS_SERVER_PATH);↵ | | 31 | sosLabel.setSosServerPath(SOS_SERVER_PATH);↵
|
33 | sosCheckout.setProjectPath(DS_VSS_PROJECT_PATH);↵ | | 32 | sosLabel.setProjectPath(DS_VSS_PROJECT_PATH);↵
|
34 | sosCheckout | | 33 | sosLabel.setUsername(SOS_USERNAME);↵
|
| | | 34 | sosLabel
|