(SOS_USERNAME); sosCheckout.setSosHome(SOS_HOME); sosCheckout.setNoCache(true); sosCheckout.setNoCompress(false); sosCheckout.setVerbose(false); sosCheckout.setRecursive(true); commandline = sosCheckout.buildCmdLine(); checkCommandLines(sTestCmdLine, commandline.getCommandline()); } /** Test SOSCheckout required attributes. */ public void testCheckoutExceptions() { configureProject("src/etc/testcases/taskdefs/optional/sos/sos.xml"); expectSpecificBuildException("soscheckout.1", "some cause", "sosserverpath attribute must be set!"); expectSpecificBuildException("soscheckout.2", "some cause", "username attribute must be set!"); expectSpecificBuildException("soscheckout.3", "some cause", "vssserverpath attribute must be set!"); expectSpecificBuildException("soscheckout.4", "some cause", "projectpath attribute must be set!");
(SOS_USERNAME); sosGet.setSosHome(SOS_HOME); sosGet.setNoCache(true); sosGet.setNoCompress(false); sosGet.setVerbose(false); sosGet.setRecursive(true); commandline = sosGet.buildCmdLine(); checkCommandLines(sTestCmdLine, commandline.getCommandline()); } /** Tests SOSGet required attributes. */ public void testGetExceptions() { configureProject("src/etc/testcases/taskdefs/optional/sos/sos.xml"); expectSpecificBuildException("sosget.1", "some cause", "sosserverpath attribute must be set!"); expectSpecificBuildException("sosget.2", "some cause", "username attribute must be set!"); expectSpecificBuildException("sosget.3", "some cause", "vssserverpath attribute must be set!"); expectSpecificBuildException("sosget.4", "some cause", "projectpath attribute must be set!");
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
(SOS_USERNAME);
1
(SOS_USERNAME);
2
        sosCheckout.setSosHome(SOS_HOME);
2
        sosGet.setSosHome(SOS_HOME);
3
        sosCheckout.setNoCache(true);
3
        sosGet.setNoCache(true);
4
        sosCheckout.setNoCompress(false);
4
        sosGet.setNoCompress(false);
5
        sosCheckout.setVerbose(false);
5
        sosGet.setVerbose(false);
6
        sosCheckout.setRecursive(true);
6
        sosGet.setRecursive(true);
7
        commandline = sosCheckout.buildCmdLine();
7
        commandline = sosGet.buildCmdLine();
8
        checkCommandLines(sTestCmdLine, commandline.getCommandline());
8
        checkCommandLines(sTestCmdLine, commandline.getCommandline());
9
    }
9
    }
10
    /**  Test SOSCheckout required attributes.  */
10
    /**  Tests SOSGet required attributes.  */
11
    public void testCheckoutExceptions() {
11
    public void testGetExceptions() {
12
        configureProject("src/etc/testcases/taskdefs/optional/sos/sos.xml");
12
        configureProject("src/etc/testcases/taskdefs/optional/sos/sos.xml");
13
        expectSpecificBuildException("soscheckout.1", "some cause", "sosserverpath attribute must be set!");
13
        expectSpecificBuildException("sosget.1", "some cause", "sosserverpath attribute must be set!");
14
        expectSpecificBuildException("soscheckout.2", "some cause", "username attribute must be set!");
14
        expectSpecificBuildException("sosget.2", "some cause", "username attribute must be set!");
15
        expectSpecificBuildException("soscheckout.3", "some cause", "vssserverpath attribute must be set!");
15
        expectSpecificBuildException("sosget.3", "some cause", "vssserverpath attribute must be set!");
16
        expectSpecificBuildException("soscheckout.4", "some cause", "projectpath attribute must be set!");
16
        expectSpecificBuildException("sosget.4", "some cause", "projectpath attribute must be set!");
17
    
17
    
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