1 | sosGet.setVersion(VERSION);↵ | | 1 | sosCheckin.setPassword(SOS_PASSWORD);↵
|
2 | sosGet.setLocalPath(new Path(project, LOCAL_PATH));↵ | | 2 | sosCheckin.setLocalPath(new Path(project, LOCAL_PATH));↵
|
3 | sosGet.setNoCache(true);↵ | | 3 | sosCheckin.setNoCache(true);↵
|
4 | sosGet.setNoCompress(true);↵ | | 4 | sosCheckin.setNoCompress(true);↵
|
5 | sosGet.setVerbose(true);↵ | | 5 | sosCheckin.setVerbose(true);↵
|
6 | sosGet.setRecursive(true);↵ | | 6 | sosCheckin.setRecursive(true);↵
|
|
7 | commandline = sosGet.buildCmdLine();↵ | | 7 | commandline = sosCheckin.buildCmdLine();↵
|
|
8 | checkCommandLines(sTestCmdLine, commandline.getCommandline());↵ | | 8 | checkCommandLines(sTestCmdLine, commandline.getCommandline());↵
|
9 | }↵ | | 9 | }↵
|
|
10 | /** Test SOSGetProject flags & commandline generation */↵ | | 10 | /** Test CheckInProject option flags */↵
|
11 | public void testGetProjectFlags() {↵ | | 11 | public void testCheckinProjectFlags() {↵
|
12 | String[] sTestCmdLine = {"soscmd", "-command", "GetProject", "-recursive",↵ | | 12 | String[] sTestCmdLine = {"soscmd", "-command", "CheckInProject",↵
|
13 | "-label", SRC_LABEL, "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME,↵ | | 13 | "-recursive", "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME,↵
|
14 | "-password", "", "-database", VSS_SERVER_PATH, "-project",↵ | | 14 | "-password", "", "-database", VSS_SERVER_PATH, "-project",↵
|
15 | DS_VSS_PROJECT_PATH, "", "", "-soshome", SOS_HOME, "-workdir",↵ | | 15 | DS_VSS_PROJECT_PATH, "", "", "-soshome", SOS_HOME, "-workdir",↵
|
16 | project.getBaseDir().getAbsolutePath()};↵ | | 16 | project.getBaseDir().getAbsolutePath(), "-log", SRC_COMMENT,};↵
|
|
17 | // Set up a SOSGet task↵ | | 17 | // Set up a SOSCheckin task↵
|
18 | SOSGet sosGet = new SOSGet();↵ | | 18 | SOSCheckin sosCheckin = new SOSCheckin();↵
|
19 | sosGet.setProject(project);↵ | | 19 | sosCheckin.setProject(project);↵
|
20 | sosGet.setVssServerPath(VSS_SERVER_PATH);↵ | | 20 | sosCheckin.setVssServerPath(VSS_SERVER_PATH);↵
|
21 | sosGet.setSosServerPath(SOS_SERVER_PATH);↵ | | 21 | sosCheckin.setSosServerPath(SOS_SERVER_PATH);↵
|
22 | sosGet.setProjectPath(DS_VSS_PROJECT_PATH);↵ | | 22 | sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH);↵
|
23 | sosGet.setLabel(SRC_LABEL);↵ | | 23 | sosCheckin.setComment(SRC_COMMENT);↵
|
24 | sosGet.setUsername(SOS_USERNAME);↵ | | 24 | sosCheckin.setUsername(SOS_USERNAME);↵
|
25 | sosGet | | 25 | sosCheckin
|