void testPreserveLastModified() { executeTarget("preserveLastModified"); } public void testFileset() { executeTarget("testFileset"); } public void testFilesetAndJar() { executeTarget("testFilesetAndJar"); } public void testFilesetAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS);
void testLocalhostURL() throws Exception { executeTarget("testLocalhostURL"); } public void testIpv4localhost() throws Exception { executeTarget("testIpv4localhost"); } public void testFTPURL() throws Exception { executeTarget("testFTPURL"); } public void testBoth() throws Exception { expectBuildExceptionContaining("testBoth", "error on two targets", IsReachable.ERROR_BOTH_TARGETS);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsReachableTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testPreserveLastModified() {
1
void testLocalhostURL() throws Exception {
2
        executeTarget("preserveLastModified");
2
        executeTarget("testLocalhostURL");
3
    }
3
    }
4
    public void testFileset() {
4
    public void testIpv4localhost() throws Exception {
5
        executeTarget("testFileset");
5
        executeTarget("testIpv4localhost");
6
    }
6
    }
7
    public void testFilesetAndJar() {
7
    public void testFTPURL() throws Exception {
8
        executeTarget("testFilesetAndJar");
8
        executeTarget("testFTPURL");
9
    }
9
    }
10
    public void testFilesetAndSignedJar() {
10
    public void testBoth() throws Exception {
11
        expectBuildExceptionContaining("testFilesetAndSignedJar",
11
        expectBuildExceptionContaining("testBoth",
12
                "incompatible attributes",
12
                "
13
                SignJar.ERROR_SIGNEDJAR_AND_PATH
13
error on two targets",
14
S);
14
                IsReachable.ERROR_BOTH_TARGETS);
15
    
15
    
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