1 | (true);↵ | | 1 | (true);↵
|
2 | sosCheckin.setNoCompress(true);↵ | | 2 | sosGet.setNoCompress(true);↵
|
3 | sosCheckin.setVerbose(true);↵ | | 3 | sosGet.setVerbose(true);↵
|
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 CheckInProject option flags */↵ | | 8 | /** Test SOSGetProject flags & commandline generation */↵
|
9 | public void testCheckinProjectFlags() {↵ | | 9 | public void testGetProjectFlags() {↵
|
10 | String[] sTestCmdLine = {"soscmd", "-command", "CheckInProject",↵ | | 10 | String[] sTestCmdLine = {"soscmd", "-command", "GetProject", "-recursive",↵
|
11 | "-recursive", "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME,↵ | | 11 | "-label", SRC_LABEL, "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME,↵
|
12 | "-password", "", "-database", VSS_SERVER_PATH, "-project",↵ | | 12 | "-password", "", "-database", VSS_SERVER_PATH, "-project",↵
|
13 | DS_VSS_PROJECT_PATH, "", "", "-soshome", SOS_HOME, "-workdir",↵ | | 13 | DS_VSS_PROJECT_PATH, "", "", "-soshome", SOS_HOME, "-workdir",↵
|
14 | project.getBaseDir().getAbsolutePath(), "-log", SRC_COMMENT,};↵ | | 14 | project.getBaseDir().getAbsolutePath()};↵
|
|
15 | // Set up a SOSCheckin task↵ | | 15 | // Set up a SOSGet task↵
|
16 | SOSCheckin sosCheckin = new SOSCheckin();↵ | | 16 | SOSGet sosGet = new SOSGet();↵
|
17 | sosCheckin.setProject(project);↵ | | 17 | sosGet.setProject(project);↵
|
18 | sosCheckin.setVssServerPath(VSS_SERVER_PATH);↵ | | 18 | sosGet.setVssServerPath(VSS_SERVER_PATH);↵
|
19 | sosCheckin.setSosServerPath(SOS_SERVER_PATH);↵ | | 19 | sosGet.setSosServerPath(SOS_SERVER_PATH);↵
|
20 | sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH);↵ | | 20 | sosGet.setProjectPath(DS_VSS_PROJECT_PATH);↵
|
21 | sosCheckin.setComment(SRC_COMMENT);↵ | | 21 | sosGet.setLabel(SRC_LABEL);↵
|
22 | sosCheckin.setUsername(SOS_USERNAME);↵ | | 22 | sosGet.setUsername(SOS_USERNAME);↵
|
23 | sosCheckin.setSosHom | | 23 | sosGet.setSosHom
|