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