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