(true); sosCheckout.setNoCompress(true); sosCheckout.setVerbose(true); sosCheckout.setRecursive(true); commandline = sosCheckout.buildCmdLine(); checkCommandLines(sTestCmdLine, commandline.getCommandline()); } /** Test CheckOutProject option flags */ public void testCheckoutProjectFlags() { String[] sTestCmdLine = {"soscmd", "-command", "CheckOutProject", "-recursive", "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME, "-password", "", "-database", VSS_SERVER_PATH, "-project", DS_VSS_PROJECT_PATH, "", "", "-soshome", SOS_HOME, "-workdir", project.getBaseDir().getAbsolutePath()}; // Set up a sosCheckout task SOSCheckout sosCheckout = new SOSCheckout(); sosCheckout.setProject(project); sosCheckout.setVssServerPath(VSS_SERVER_PATH); sosCheckout.setSosServerPath(SOS_SERVER_PATH); sosCheckout.setProjectPath(VSS_PROJECT_PATH); sosCheckout.setUsername(SOS_USERNAME); sosCheckout.setSosHome(SOS_HOME); sosCheckout.setNoCach
(true); sosCheckin.setNoCompress(true); sosCheckin.setVerbose(true); sosCheckin.setRecursive(true); commandline = sosCheckin.buildCmdLine(); checkCommandLines(sTestCmdLine, commandline.getCommandline()); } /** Test CheckInProject option flags */ public void testCheckinProjectFlags() { String[] sTestCmdLine = {"soscmd", "-command", "CheckInProject", "-recursive", "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME, "-password", "", "-database", VSS_SERVER_PATH, "-project", DS_VSS_PROJECT_PATH, "", "", "-soshome", SOS_HOME, "-workdir", project.getBaseDir().getAbsolutePath(), "-log", SRC_COMMENT,}; // Set up a SOSCheckin task SOSCheckin sosCheckin = new SOSCheckin(); sosCheckin.setProject(project); sosCheckin.setVssServerPath(VSS_SERVER_PATH); sosCheckin.setSosServerPath(SOS_SERVER_PATH); sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH); sosCheckin.setComment(SRC_COMMENT); sosCheckin.setUsername(SOS_USERNAME); sosCheckin.setSosHom
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
(true);
1
(true);
2
        sosCheckout.setNoCompress(true);
2
        sosCheckin.setNoCompress(true);
3
        sosCheckout.setVerbose(true);
3
        sosCheckin.setVerbose(true);
4
        sosCheckout.setRecursive(true);
4
        sosCheckin.setRecursive(true);
5
        commandline = sosCheckout.buildCmdLine();
5
        commandline = sosCheckin.buildCmdLine();
6
        checkCommandLines(sTestCmdLine, commandline.getCommandline());
6
        checkCommandLines(sTestCmdLine, commandline.getCommandline());
7
    }
7
    }
8
    /**  Test CheckOutProject option flags  */
8
    /**  Test CheckInProject option flags  */
9
    public void testCheckoutProjectFlags() {
9
    public void testCheckinProjectFlags() {
10
        String[] sTestCmdLine = {"soscmd", "-command", "CheckOutProject",
10
        String[] sTestCmdLine = {"soscmd", "-command", "CheckInProject",
11
                "-recursive", "-server", SOS_SERVER_PATH, "-name", SOS_USERNAME,
11
                "-recursive", "-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()};
14
                project.getBaseDir().getAbsolutePath(), "-log", SRC_COMMENT,};
15
        // Set up a sosCheckout task
15
        // Set up a SOSCheckin task
16
        SOSCheckout sosCheckout = new SOSCheckout();
16
        SOSCheckin sosCheckin = new SOSCheckin();
17
        sosCheckout.setProject(project);
17
        sosCheckin.setProject(project);
18
        sosCheckout.setVssServerPath(VSS_SERVER_PATH);
18
        sosCheckin.setVssServerPath(VSS_SERVER_PATH);
19
        sosCheckout.setSosServerPath(SOS_SERVER_PATH);
19
        sosCheckin.setSosServerPath(SOS_SERVER_PATH);
20
        sosCheckout.setProjectPath(VSS_PROJECT_PATH);
20
        sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH);
21
        sosCheckout.setUsername(SOS_USERNAME);
21
        sosCheckin.setComment(SRC_COMMENT);
22
        sosCheckout.setSosHome(SOS_HOME);
22
        sosCheckin.setUsername(SOS_USERNAME);
23
        sosCheckout.setNoCach
23
        sosCheckin.setSosHom
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0