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